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)) ? "" : 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}"); } } }