PDF3D/IDTF.Net/Parent.cs

33 lines
717 B
C#
Raw Normal View History

2023-04-24 16:20:24 +08:00
using System;
using System.IO;
2023-04-25 15:48:55 +08:00
namespace IDTF.Net
2023-04-24 16:20:24 +08:00
{
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}");
}
}
}