internal static DxfScale smethod_4(DxfLayer layer, out DxfLayer oldLayer) { oldLayer = (DxfLayer)null; if (layer.ExtensionDictionary == null) { return((DxfScale)null); } IDictionaryEntry first = layer.ExtensionDictionary.Entries.GetFirst("ASDK_XREC_ANNO_SCALE_INFO"); if (first == null) { return((DxfScale)null); } DxfXRecord dxfXrecord = first.Value as DxfXRecord; if (dxfXrecord == null) { return((DxfScale)null); } if (dxfXrecord.Values.Count < 2) { return((DxfScale)null); } DxfScale dxfScale = dxfXrecord.Values[1].Value as DxfScale; if (dxfXrecord.Values.Count > 2) { oldLayer = dxfXrecord.Values[2].Value as DxfLayer; } return(dxfScale); }
public DxfAttributeObjectContextData(DxfAttributeDefinition attribute, DxfScale scale) : base((DxfText)attribute, scale) { DxfMText mtext = attribute.method_21(); this.dxfMTextObjectContextData_0 = mtext != null ? new DxfMTextObjectContextData(mtext, scale) : (DxfMTextObjectContextData)null; }
public DxfBlockReferenceObjectContextData(DxfInsertBase insert, DxfScale scale) : base(scale) { this.vector3D_0 = insert.ScaleFactor; this.point3D_0 = insert.InsertionPoint; this.Rotation = insert.Rotation; }
public DxfLeaderObjectContextData(DxfLeader leader, DxfScale scale) : base(scale) { this.list_0 = new List <WW.Math.Point3D>((IEnumerable <WW.Math.Point3D>)leader.Vertices); this.vector3D_0 = leader.LastVertexOffsetFromBlock; this.vector3D_1 = leader.LastVertexOffsetFromAnnotation; this.vector3D_2 = leader.HorizontalDirection; this.hookLineDirection_0 = leader.HookLineDirection; }
protected DxfDimensionObjectContextData(DxfDimension dimension, DxfScale scale) : base(scale) { this.Block = dimension.Block; this.double_0 = dimension.TextRotation; this.bool_2 = !dimension.UseTextMiddlePoint; this.enum33_0 = (DxfDimensionObjectContextData.Enum33) 0; if (dimension.DimensionStyleOverrides.OverrideSuppressOutsideExtensions) { this.bool_3 = dimension.DimensionStyleOverrides.SuppressOutsideExtensions; } else { this.enum33_0 |= DxfDimensionObjectContextData.Enum33.flag_1; this.bool_3 = false; } if (dimension.DimensionStyleOverrides.OverrideTextOutsideExtensions) { this.bool_4 = dimension.DimensionStyleOverrides.TextOutsideExtensions; } else { this.enum33_0 |= DxfDimensionObjectContextData.Enum33.flag_0; this.bool_4 = false; } if (dimension.DimensionStyleOverrides.OverrideArrowsTextFit) { this.short_1 = (short)dimension.DimensionStyleOverrides.ArrowsTextFit; this.enum33_0 |= DxfDimensionObjectContextData.Enum33.flag_2; } else { this.short_1 = (short)0; } if (dimension.DimensionStyleOverrides.OverrideTextInsideExtensions) { this.bool_5 = dimension.DimensionStyleOverrides.TextInsideExtensions; this.enum33_0 |= DxfDimensionObjectContextData.Enum33.flag_3; } else { this.bool_5 = false; } if (dimension.DimensionStyleOverrides.OverrideTextMovement) { this.short_2 = (short)dimension.DimensionStyleOverrides.TextMovement; this.enum33_0 |= DxfDimensionObjectContextData.Enum33.flag_4; } else { this.short_2 = (short)0; } this.bool_6 = false; this.bool_7 = false; this.bool_8 = false; }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfScale dxfScale = (DxfScale)from; this.string_0 = dxfScale.string_0; this.double_0 = dxfScale.double_0; this.double_1 = dxfScale.double_1; this.bool_0 = dxfScale.bool_0; this.bool_1 = dxfScale.bool_1; }
public DxfMTextObjectContextData(DxfMText mtext, DxfScale scale) : base(scale) { this.size2D_0.X = mtext.ReferenceRectangleWidth; this.size2D_0.Y = mtext.ReferenceRectangleHeight; this.size2D_1.X = mtext.BoxWidth; this.size2D_1.Y = mtext.BoxHeight; this.vector3D_0 = mtext.XAxis; this.point3D_0 = mtext.InsertionPoint; this.attachmentPoint_0 = mtext.AttachmentPoint; }
public override IGraphCloneable Clone(CloneContext cloneContext) { DxfScale dxfScale = (DxfScale)cloneContext.GetExistingClone((IGraphCloneable)this); if (dxfScale == null) { dxfScale = new DxfScale(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfScale); dxfScale.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)dxfScale); }
public DxfTextObjectContextData(DxfText text, DxfScale scale) : base(scale) { this.textHorizontalAlignment_0 = text.HorizontalAlignment; this.double_0 = text.Rotation; this.point2D_1.X = text.AlignmentPoint1.X; this.point2D_1.Y = text.AlignmentPoint1.Y; if (text.AlignmentPoint2.HasValue) { this.point2D_0.X = text.AlignmentPoint2.Value.X; this.point2D_0.Y = text.AlignmentPoint2.Value.Y; } else { this.point2D_0 = this.point2D_1; } }
internal static void smethod_8(DxfEntity obj) { if (DxfScale.smethod_2(obj.Layer) == null) { return; } DxfLayer oldLayer; DxfScale scale = DxfScale.smethod_4(obj.Layer, out oldLayer); if (scale == null) { return; } DxfAnnotationScaleObjectContextData contextData = ((IAnnotative)obj).CreateContextData(scale); obj.Layer = oldLayer; DxfDictionary dxfDictionary = DxfAnnotationScaleObjectContextData.smethod_6((DxfHandledObject)obj); dxfDictionary.Entries.Clear(); dxfDictionary.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry("*A", (DxfObject)contextData)); }
internal static double smethod_9(DxfEntity obj, DxfScale scale) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfAnnotationScaleObjectContextData.Class357 class357 = new DxfAnnotationScaleObjectContextData.Class357(); // ISSUE: reference to a compiler-generated field class357.dxfScale_0 = scale; if (obj.ExtensionDictionary == null) { return(1.0); } DxfDictionary valueByName1 = obj.ExtensionDictionary.GetValueByName("AcDbContextDataManager") as DxfDictionary; if (valueByName1 == null) { return(1.0); } DxfDictionary valueByName2 = valueByName1.GetValueByName("ACDB_ANNOTATIONSCALES") as DxfDictionary; if (valueByName2 == null) { return(1.0); } // ISSUE: reference to a compiler-generated method DxfAnnotationScaleObjectContextData objectContextData1 = valueByName2.Entries.Select <IDictionaryEntry, DxfAnnotationScaleObjectContextData>((Func <IDictionaryEntry, DxfAnnotationScaleObjectContextData>)(ctxDataEntry => (DxfAnnotationScaleObjectContextData)ctxDataEntry.Value)).FirstOrDefault <DxfAnnotationScaleObjectContextData>(new Func <DxfAnnotationScaleObjectContextData, bool>(class357.method_0)); if (objectContextData1 == null || objectContextData1.IsDefault) { return(1.0); } DxfAnnotationScaleObjectContextData objectContextData2 = valueByName2.Entries.Select <IDictionaryEntry, DxfAnnotationScaleObjectContextData>((Func <IDictionaryEntry, DxfAnnotationScaleObjectContextData>)(ctxDataEntry => (DxfAnnotationScaleObjectContextData)ctxDataEntry.Value)).FirstOrDefault <DxfAnnotationScaleObjectContextData>((Func <DxfAnnotationScaleObjectContextData, bool>)(ctx => ctx.IsDefault)); if (objectContextData2 == null) { return(1.0); } return(objectContextData1.Scale.ScaleFactor / objectContextData2.Scale.ScaleFactor); }
internal static DxfAnnotationScaleObjectContextData smethod_4( DxfHandledObject obj, DxfScale scale, bool ignoreDefault) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type DxfAnnotationScaleObjectContextData.Class356 class356 = new DxfAnnotationScaleObjectContextData.Class356(); // ISSUE: reference to a compiler-generated field class356.dxfScale_0 = scale; // ISSUE: reference to a compiler-generated field if (obj.ExtensionDictionary == null || class356.dxfScale_0 == null) { return((DxfAnnotationScaleObjectContextData)null); } DxfDictionary valueByName1 = obj.ExtensionDictionary.GetValueByName("AcDbContextDataManager") as DxfDictionary; if (valueByName1 == null) { return((DxfAnnotationScaleObjectContextData)null); } DxfDictionary valueByName2 = valueByName1.GetValueByName("ACDB_ANNOTATIONSCALES") as DxfDictionary; if (valueByName2 == null) { return((DxfAnnotationScaleObjectContextData)null); } // ISSUE: reference to a compiler-generated method DxfAnnotationScaleObjectContextData objectContextData = valueByName2.Entries.Select <IDictionaryEntry, DxfAnnotationScaleObjectContextData>((Func <IDictionaryEntry, DxfAnnotationScaleObjectContextData>)(ctxDataEntry => (DxfAnnotationScaleObjectContextData)ctxDataEntry.Value)).FirstOrDefault <DxfAnnotationScaleObjectContextData>(new Func <DxfAnnotationScaleObjectContextData, bool>(class356.method_0)); if (ignoreDefault && objectContextData != null && objectContextData.IsDefault) { return((DxfAnnotationScaleObjectContextData)null); } return(objectContextData); }
public DxfHatchScaleContextData(DxfHatch hatch, DxfScale scale) : base(scale) { this.dxfPattern_0 = hatch.Pattern == null ? (DxfPattern)null : hatch.Pattern.Clone(); this.double_0 = scale.ScaleFactor; }
public Radial(DxfDimension.Radial dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.ArcLineIntersectionPoint; }
public Aligned(DxfDimension.Aligned dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.DimensionLineLocation; }
public Angular(DxfDimension.Angular4Point dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.DimensionLineArcPoint; }
public DxfHatchViewContextData(DxfHatch hatch, DxfScale scale) : base(hatch, scale) { }
public Diametric(DxfDimension.Diametric dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.ArcLineIntersectionPoint1; this.point3D_1 = dimension.ArcLineIntersectionPoint2; }
public Ordinate(DxfDimension.Ordinate dimension, DxfScale scale) : base((DxfDimension)dimension, scale) { this.point3D_0 = dimension.UcsOrigin; this.point3D_1 = dimension.LeaderEndPoint; }
protected DxfAnnotationScaleObjectContextData(DxfScale scale) { this.dxfObjectReference_3 = DxfObjectReference.GetReference((IDxfHandledObject)scale); }
public DxfToleranceObjectContextData(DxfTolerance tolerance, DxfScale scale) : base(scale) { this.point3D_0 = tolerance.InsertionPoint; this.vector3D_0 = tolerance.XAxis; }