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; }
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; }
public DxfBlockReferenceObjectContextData(DxfInsertBase insert, DxfScale scale) : base(scale) { this.vector3D_0 = insert.ScaleFactor; this.point3D_0 = insert.InsertionPoint; this.Rotation = insert.Rotation; }
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; }
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(); }
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)); }
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) }); }
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); }
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"); }
public DxfAttributeDefinition(string text, WW.Math.Point3D alignmentPoint1, double height) : base(text, alignmentPoint1, height) { }
public Radial(DxfDimension.Radial dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.ArcLineIntersectionPoint; }
protected DxfAttributeBase(string text, WW.Math.Point3D alignmentPoint1, double height) : base(text, alignmentPoint1, height) { }
public Point3D(WW.Math.Point3D value) { this.point3D_0 = value; }
public DxfAttribute(string text, WW.Math.Point3D alignmentPoint1) : base(text, alignmentPoint1) { }
public void Add(DxfValueFormat format, WW.Math.Point3D value) { this.Add(new DxfTableCellContent(format, value)); }
public Diametric(DxfDimension.Diametric dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.ArcLineIntersectionPoint1; this.point3D_1 = dimension.ArcLineIntersectionPoint2; }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); this.point3D_0 = ((DxfDimensionObjectContextData.Angular)from).DimensionLineArcPoint; }
public Angular(DxfDimension.Angular4Point dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.DimensionLineArcPoint; }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); this.point3D_0 = ((DxfDimensionObjectContextData.Aligned)from).DimensionLineLocation; }
public Aligned(DxfDimension.Aligned dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.DimensionLineLocation; }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); this.point3D_0 = ((DxfDimensionObjectContextData.Radial)from).ArcLineIntersectionPoint; }
public void SetValue(WW.Math.Point3D value) { this.object_0 = (object)value; this.string_0 = (string)null; }
public DxfToleranceObjectContextData(DxfTolerance tolerance, DxfScale scale) : base(scale) { this.point3D_0 = tolerance.InsertionPoint; this.vector3D_0 = tolerance.XAxis; }
public Ordinate(DxfDimension.Ordinate dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.UcsOrigin; this.point3D_1 = dimension.LeaderEndPoint; }
public void Add(WW.Math.Point3D vertex) { this.Add(new DxfVertex3D(vertex)); }
protected DxfAttributeBase(string text, WW.Math.Point3D alignmentPoint1) : base(text, alignmentPoint1) { }
private void CopyFrom(DxfTableBreakHeight from) { this.point3D_0 = from.point3D_0; this.double_0 = from.double_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(); }
public void CopyFrom(DxfTableBreakRowRange from) { this.point3D_0 = from.point3D_0; this.int_0 = from.int_0; this.int_1 = from.int_1; }