예제 #1
0
 public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
 {
     base.CopyFrom(from, cloneContext);
     DxfDimensionObjectContextData.Diametric diametric = (DxfDimensionObjectContextData.Diametric)from;
     this.point3D_0 = diametric.point3D_0;
     this.point3D_1 = diametric.point3D_1;
 }
예제 #2
0
 public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
 {
     base.CopyFrom(from, cloneContext);
     DxfDimensionObjectContextData.Ordinate ordinate = (DxfDimensionObjectContextData.Ordinate)from;
     this.point3D_0 = ordinate.point3D_0;
     this.point3D_1 = ordinate.point3D_1;
 }
예제 #3
0
 public DxfBlockReferenceObjectContextData(DxfInsertBase insert, DxfScale scale)
     : base(scale)
 {
     this.vector3D_0 = insert.ScaleFactor;
     this.point3D_0  = insert.InsertionPoint;
     this.Rotation   = insert.Rotation;
 }
예제 #4
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfToleranceObjectContextData objectContextData = (DxfToleranceObjectContextData)from;

            this.point3D_0  = objectContextData.InsertionPoint;
            this.vector3D_0 = objectContextData.XAxis;
        }
예제 #5
0
        internal override void Read(Class434 or, Class259 ob)
        {
            base.Read(or, ob);
            Interface30 objectBitStream = or.ObjectBitStream;

            this.point3D_0  = objectBitStream.imethod_39();
            this.vector3D_0 = objectBitStream.imethod_51();
        }
예제 #6
0
        internal void Write(DxfXRecord xrecord)
        {
            xrecord.Values.Add((short)93, (object)this.int_0);
            xrecord.Values.Add((short)90, (object)(int)this.Format.DataType);
            switch (this.Format.DataType)
            {
            case ValueDataType.None:
                xrecord.Values.Add((short)91, (object)0);
                break;

            case ValueDataType.Int:
                xrecord.Values.Add((short)91, (object)Convert.ToInt32(this.Value));
                break;

            case ValueDataType.Double:
                xrecord.Values.Add((short)140, (object)Convert.ToDouble(this.Value));
                break;

            case ValueDataType.String:
                xrecord.Values.Add((short)1, (object)(string)this.Value);
                break;

            case ValueDataType.Date:
                xrecord.Values.Add((short)92, (object)16);
                byte[] numArray = DxfValue.smethod_2((DateTime)this.Value);
                xrecord.Values.Add((short)310, (object)numArray);
                break;

            case ValueDataType.Point2D:
            case ValueDataType.Point3D:
                WW.Math.Point3D point3D = (WW.Math.Point3D) this.Value;
                xrecord.Values.Add((short)11, (object)point3D);
                break;

            case ValueDataType.ObjectHandle:
                DxfHandledObject dxfHandledObject = (DxfHandledObject)this.Value;
                if (dxfHandledObject != null)
                {
                    xrecord.Values.Add((short)330, (object)dxfHandledObject);
                    break;
                }
                break;

            case ValueDataType.Buffer:
                throw new NotImplementedException("Not yet implemented: Export of value data type 'Buffer'!");

            case ValueDataType.ResultBuffer:
                throw new NotImplementedException("Not yet implemented: Export of value data type 'ResultBuffer'!");

            case ValueDataType.General:
                xrecord.Values.Add((short)1, this.Value == null ? (object)string.Empty : (object)(string)this.Value);
                break;
            }
            xrecord.Values.Add((short)94, (object)(int)this.Format.UnitType);
            xrecord.Values.Add((short)300, (object)this.Format._FormatString);
            xrecord.Values.Add((short)302, (object)this.GetValueString(this.Format));
        }
예제 #7
0
 internal Struct18[] method_0()
 {
     if (Class820.smethod_2((int)this.short_0) == Enum5.const_13)
     {
         WW.Math.Point3D object0 = (WW.Math.Point3D) this.object_0;
         return(new Struct18[3] {
             new Struct18((int)this.short_0, (object)object0.X), new Struct18((int)this.short_0 + 10, (object)object0.Y), new Struct18((int)this.short_0 + 20, (object)object0.Z)
         });
     }
     return(new Struct18[1] {
         new Struct18((int)this.short_0, this.Value)
     });
 }
예제 #8
0
        internal bool method_1(DxfHandledObject sourceObject, string fieldName, ref WW.Math.Point3D p)
        {
            bool   flag = false;
            string str  = (string)null;

            if (DxfModelRepairer.smethod_0(p.X))
            {
                p.X  = 0.0;
                flag = true;
                str  = "X";
            }
            if (DxfModelRepairer.smethod_0(p.Y))
            {
                p.Y  = 0.0;
                flag = true;
                str  = !string.IsNullOrEmpty(str) ? str + ", Y" : "Y";
            }
            if (DxfModelRepairer.smethod_0(p.Z))
            {
                p.Z  = 0.0;
                flag = true;
                str  = !string.IsNullOrEmpty(str) ? str + " and Z" : "Z";
            }
            if (flag)
            {
                this.ilist_0.Add(new DxfMessage(DxfStatus.InvalidPoint, Severity.Warning, "FieldName", (object)fieldName)
                {
                    Parameters =
                    {
                        {
                            "Object",
                            (object)sourceObject
                        },
                        {
                            "InvalidCoordinates",
                            (object)str
                        }
                    }
                });
            }
            return(flag);
        }
예제 #9
0
        internal void Write(DxfWriter w)
        {
            DxfModel model = w.Model;

            if (model.Header.Dxf19OrHigher)
            {
                w.Write(93, (object)this.int_0);
            }
            w.Write(90, (object)(int)this.Format.DataType);
            switch (this.Format.DataType)
            {
            case ValueDataType.None:
                if (!model.Header.Dxf19OrHigher)
                {
                    w.Write(91, (object)0);
                    break;
                }
                break;

            case ValueDataType.Int:
                w.Write(91, (object)Convert.ToInt32(this.object_0));
                break;

            case ValueDataType.Double:
                w.Write(140, (object)Convert.ToDouble(this.object_0));
                break;

            case ValueDataType.String:
                w.method_142(1, 2, (string)this.object_0, true);
                break;

            case ValueDataType.Date:
                w.Write(92, (object)16);
                DateTime object0_1 = (DateTime)this.object_0;
                byte[]   numArray  = DxfValue.smethod_0(w.Model.Header.AcadVersion, object0_1);
                w.Write(310, (object)numArray);
                break;

            case ValueDataType.Point2D:
            case ValueDataType.Point3D:
                WW.Math.Point3D object0_2 = (WW.Math.Point3D) this.object_0;
                w.Write(11, object0_2);
                break;

            case ValueDataType.ObjectHandle:
                DxfHandledObject dxfHandledObject = (DxfHandledObject)this.Value;
                if (dxfHandledObject != null)
                {
                    w.method_218(330, dxfHandledObject);
                    break;
                }
                break;

            case ValueDataType.Buffer:
                throw new NotImplementedException("Not yet implemented: Export of value data type 'Buffer'!");

            case ValueDataType.ResultBuffer:
                throw new NotImplementedException("Not yet implemented: Export of value data type 'ResultBuffer'!");

            case ValueDataType.General:
                w.method_142(1, 2, (string)this.object_0, true);
                break;
            }
            if (!model.Header.Dxf19OrHigher)
            {
                return;
            }
            w.Write(94, (object)(int)this.Format.UnitType);
            w.Write(300, (object)this.Format._FormatString);
            w.method_142(302, 303, this.GetValueString(this.Format), true);
            w.Write(304, (object)"ACVALUE_END");
        }
예제 #10
0
 public DxfAttributeDefinition(string text, WW.Math.Point3D alignmentPoint1, double height)
     : base(text, alignmentPoint1, height)
 {
 }
예제 #11
0
 public Radial(DxfDimension.Radial dimension, DxfScale scale)
     : base((DxfDimension)dimension, scale)
 {
     this.point3D_0 = dimension.ArcLineIntersectionPoint;
 }
예제 #12
0
 protected DxfAttributeBase(string text, WW.Math.Point3D alignmentPoint1, double height)
     : base(text, alignmentPoint1, height)
 {
 }
예제 #13
0
 public Point3D(WW.Math.Point3D value)
 {
     this.point3D_0 = value;
 }
예제 #14
0
 public DxfAttribute(string text, WW.Math.Point3D alignmentPoint1)
     : base(text, alignmentPoint1)
 {
 }
예제 #15
0
 public void Add(DxfValueFormat format, WW.Math.Point3D value)
 {
     this.Add(new DxfTableCellContent(format, value));
 }
예제 #16
0
 public Diametric(DxfDimension.Diametric dimension, DxfScale scale)
     : base((DxfDimension)dimension, scale)
 {
     this.point3D_0 = dimension.ArcLineIntersectionPoint1;
     this.point3D_1 = dimension.ArcLineIntersectionPoint2;
 }
예제 #17
0
 public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
 {
     base.CopyFrom(from, cloneContext);
     this.point3D_0 = ((DxfDimensionObjectContextData.Angular)from).DimensionLineArcPoint;
 }
예제 #18
0
 public Angular(DxfDimension.Angular4Point dimension, DxfScale scale)
     : base((DxfDimension)dimension, scale)
 {
     this.point3D_0 = dimension.DimensionLineArcPoint;
 }
예제 #19
0
 public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
 {
     base.CopyFrom(from, cloneContext);
     this.point3D_0 = ((DxfDimensionObjectContextData.Aligned)from).DimensionLineLocation;
 }
예제 #20
0
 public Aligned(DxfDimension.Aligned dimension, DxfScale scale)
     : base((DxfDimension)dimension, scale)
 {
     this.point3D_0 = dimension.DimensionLineLocation;
 }
예제 #21
0
 public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
 {
     base.CopyFrom(from, cloneContext);
     this.point3D_0 = ((DxfDimensionObjectContextData.Radial)from).ArcLineIntersectionPoint;
 }
예제 #22
0
 public void SetValue(WW.Math.Point3D value)
 {
     this.object_0 = (object)value;
     this.string_0 = (string)null;
 }
예제 #23
0
 public DxfToleranceObjectContextData(DxfTolerance tolerance, DxfScale scale)
     : base(scale)
 {
     this.point3D_0  = tolerance.InsertionPoint;
     this.vector3D_0 = tolerance.XAxis;
 }
예제 #24
0
 public Ordinate(DxfDimension.Ordinate dimension, DxfScale scale)
     : base((DxfDimension)dimension, scale)
 {
     this.point3D_0 = dimension.UcsOrigin;
     this.point3D_1 = dimension.LeaderEndPoint;
 }
예제 #25
0
 public void Add(WW.Math.Point3D vertex)
 {
     this.Add(new DxfVertex3D(vertex));
 }
예제 #26
0
 protected DxfAttributeBase(string text, WW.Math.Point3D alignmentPoint1)
     : base(text, alignmentPoint1)
 {
 }
예제 #27
0
 private void CopyFrom(DxfTableBreakHeight from)
 {
     this.point3D_0 = from.point3D_0;
     this.double_0  = from.double_0;
 }
예제 #28
0
 internal override void Read(Class434 or, Class259 ob)
 {
     base.Read(or, ob);
     this.point3D_0 = or.ObjectBitStream.imethod_39();
     this.point3D_1 = or.ObjectBitStream.imethod_39();
 }
예제 #29
0
 public void CopyFrom(DxfTableBreakRowRange from)
 {
     this.point3D_0 = from.point3D_0;
     this.int_0     = from.int_0;
     this.int_1     = from.int_1;
 }