コード例 #1
0
 // PROTECTED READERS / WRITERS
 // See description of this method in the abstract base class SRZoneProperty.
 protected override void ReadData(SRBinaryReader binaryReader, int size)
 {
     base.ReadData(binaryReader, 12);    // Read the position part
     orientation = new SRQuaternionOrientation(binaryReader);
     SRTrace.WriteLine("                   Orientation (x,y,z,w):  " + orientation.ToString());
     if (size != 28)
         throw new SRZoneFileException("Transform/Orientation length is wrong.");
 }
コード例 #2
0
 // See description of this method in the abstract base class SRZoneProperty.
 protected override void ReadXmlData(XmlNode parentNode)
 {
     base.ReadXmlData(parentNode);          // Read the position part
     orientation = new SRQuaternionOrientation(parentNode);
 }
コード例 #3
0
 // CONSTRUCTORS
 public SRZoneTransformOrientationProperty(Int32 nameCrc, SRPosition position = null, SRQuaternionOrientation orientation = null)
     : base(nameCrc, position)
 {
     this.orientation = orientation != null ? orientation : new SRQuaternionOrientation();
 }