33 lines
717 B
C#
33 lines
717 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace IDTF.Net
|
|
{
|
|
|
|
public class Parent
|
|
{
|
|
public Parent()
|
|
{
|
|
Transform = new Transform4x4();
|
|
}
|
|
|
|
public Parent(string name) : this()
|
|
{
|
|
this.Name = name;
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
public Transform4x4 Transform { get; set; }
|
|
|
|
internal void Export(StreamWriter toStream)
|
|
{
|
|
var tempName = (String.IsNullOrWhiteSpace(this.Name)) ? "<NULL>" : this.Name;
|
|
|
|
toStream.WriteLine(String.Format("\t\t\tPARENT_NAME \"{0}\"", tempName));
|
|
toStream.WriteLine("\t\t\tPARENT_TM {");
|
|
this.Transform.Export(toStream);
|
|
toStream.WriteLine("\t\t\t}");
|
|
}
|
|
}
|
|
}
|