Exemple #1
0
 public void ToStream(System.IO.BinaryWriter bw)
 {
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.ModelName, 30));
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.StringName, 20));
     bw.Write(this.XMin);
     bw.Write(this.YMin);
     bw.Write(this.TextSize);
     bw.Write(this.Rotation);
 }
Exemple #2
0
 public void ToStream(BinaryWriter bw)
 {
     bw.Write(this.tx);
     bw.Write(this.ty);
     bw.Write(this.tz);
     bw.Write(this.ts);
     bw.Write(this.tr);
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.tg, 60));
 }
Exemple #3
0
 public void ToStream(System.IO.BinaryWriter bw)
 {
     bw.Write(this.elatt);
     bw.Write(this.scatt);
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.Layer, 20));
     bw.Write(this.laatt);
     bw.Write(this.xc);
     bw.Write(this.yc);
     bw.Write(this.Radius);
     bw.Write(this.color);
     bw.Write(this.style);
     bw.Write(this.Width);
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.Label, 20));
 }
Exemple #4
0
 public void ToStream(System.IO.BinaryWriter bw)
 {
     bw.Write(this.Length);
     bw.Write(this.scatt);
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.Layer, 20));
     bw.Write(this.laatt);
     bw.Write(this.x1);
     bw.Write(this.y1);
     bw.Write(this.Size);
     bw.Write(this.rotn);
     bw.Write(this.Color);
     bw.Write(this.style);
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.text, 60));
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.Label, 20));
 }
Exemple #5
0
        public string label;      //20 char

        public void ToStream(System.IO.BinaryWriter bw)
        {
            bw.Write(elatt);
            bw.Write(scatt);
            bw.Write(ViewerUtils.ConvertStringToByteArray(layer, 20));
            bw.Write(laatt);
            bw.Write(x1);
            bw.Write(y1);
            bw.Write(z1);
            bw.Write(x2);
            bw.Write(y2);
            bw.Write(z2);
            bw.Write(color);
            bw.Write(style);
            bw.Write(width);
            bw.Write(ViewerUtils.ConvertStringToByteArray(label, 20));
        }
Exemple #6
0
 public void ToStream(BinaryWriter bw)
 {
     bw.Write(this.OffsetType);
     bw.Write(this.AcceptCode);
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.ModelName, 30));
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.StringName, 20));
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.OffsetModel, 30));
     bw.Write(ViewerUtils.ConvertStringToByteArray(this.OffsetString, 20));
     bw.Write(this.StartChainage);
     bw.Write(this.EndChainage);
     bw.Write(this.StartHOffset);
     bw.Write(this.EndHOffset);
     bw.Write(this.StartVOffset);
     bw.Write(this.EndVOffset);
     bw.Write(this.StartSuper);
     bw.Write(this.EndSuper);
 }
Exemple #7
0
 public void ToStream(BinaryWriter bw)
 {
     bw.Write(this.attrVal);
     if (this.attr == Type.Model)
     {
         CModType mod = (CModType)this.Tag;
         bw.Write(ViewerUtils.ConvertStringToByteArray(mod.Name, 30));
     }
     else if (this.attr == Type.String)
     {
         CStgType stg = (CStgType)this.Tag;
         bw.Write(ViewerUtils.ConvertStringToByteArray(stg.label, 20));
     }
     else if (this.attr == Type.Point)
     {
         CPTStype pts = (CPTStype)this.Tag;
         pts.ToStream(bw);
     }
     else if (this.attr == Type.Text)
     {
         CTXTtype txt = (CTXTtype)this.Tag;
         txt.ToStream(bw);
     }
 }
Exemple #8
0
        public string strStg  = ""; //20

        public void ToStream(BinaryWriter bw)
        {
            bw.Write(ViewerUtils.ConvertStringToByteArray(this.strMod1, 30));
            bw.Write(ViewerUtils.ConvertStringToByteArray(this.strStg, 20));
        }