Beispiel #1
0
 public void CopyFrom(DxfPattern.Line from)
 {
     this.double_0   = from.double_0;
     this.point2D_0  = from.point2D_0;
     this.vector2D_0 = from.vector2D_0;
     this.list_0.AddRange((IEnumerable <double>)from.list_0);
 }
Beispiel #2
0
 internal void Read(DxfReader r, int lineCount)
 {
     for (uint index = 0; (long)index < (long)lineCount; ++index)
     {
         DxfPattern.Line line = new DxfPattern.Line();
         line.Read(r);
         this.Lines.Add(line);
     }
 }
Beispiel #3
0
 internal void Write(Interface29 objectWriter)
 {
     objectWriter.imethod_32((short)this.Lines.Count);
     for (int index1 = 0; index1 < this.Lines.Count; ++index1)
     {
         DxfPattern.Line line = this.Lines[index1];
         objectWriter.imethod_16(line.Angle);
         objectWriter.imethod_23(line.BasePoint);
         objectWriter.imethod_27(line.Offset);
         objectWriter.imethod_32((short)line.DashLengths.Count);
         for (int index2 = 0; index2 < line.DashLengths.Count; ++index2)
         {
             objectWriter.imethod_16(line.DashLengths[index2]);
         }
     }
 }
Beispiel #4
0
        internal void Read(Interface30 objectMainBitStream)
        {
            int num1 = (int)objectMainBitStream.imethod_14();

            for (int index1 = 0; index1 < num1; ++index1)
            {
                DxfPattern.Line line = new DxfPattern.Line();
                line.Angle     = objectMainBitStream.imethod_8();
                line.BasePoint = objectMainBitStream.imethod_36();
                line.Offset    = objectMainBitStream.imethod_49();
                int num2 = (int)objectMainBitStream.imethod_14();
                for (int index2 = 0; index2 < num2; ++index2)
                {
                    double num3 = objectMainBitStream.imethod_8();
                    line.DashLengths.Add(num3);
                }
                this.list_0.Add(line);
            }
        }
Beispiel #5
0
 public DxfPattern.Line GetTransformed(Matrix3D transform)
 {
     DxfPattern.Line line = this.Clone();
     line.TransformMe(new TransformConfig(), transform);
     return(line);
 }
Beispiel #6
0
 public DxfPattern.Line Clone()
 {
     DxfPattern.Line line = new DxfPattern.Line();
     line.CopyFrom(this);
     return(line);
 }