public override IGraphCloneable Clone(CloneContext cloneContext) { DxfTolerance dxfTolerance = (DxfTolerance)cloneContext.GetExistingClone((IGraphCloneable)this); if (dxfTolerance == null) { dxfTolerance = new DxfTolerance(cloneContext.TargetModel); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfTolerance); dxfTolerance.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)dxfTolerance); }
public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfTolerance dxfTolerance = (DxfTolerance)from; this.dxfDimensionStyleOverrides_0 = dxfTolerance.dxfDimensionStyleOverrides_0 != null?dxfTolerance.dxfDimensionStyleOverrides_0.Clone(cloneContext) : (DxfDimensionStyleOverrides)null; this.point3D_0 = dxfTolerance.point3D_0; this.string_0 = dxfTolerance.string_0; this.vector3D_0 = dxfTolerance.vector3D_0; this.vector3D_1 = dxfTolerance.vector3D_1; }
internal double Draw( DxfTolerance tolerance, IPathDrawer pathDrawer, Matrix4D preTransform, Color color, short lineWeight, double scale) { double effectiveTextHeight = DxfDimensionStyle.GetEffectiveTextHeight((IDimensionStyle)tolerance.DimensionStyleOverrides, scale); double num1 = tolerance.dxfDimensionStyleOverrides_0.TextHeight * scale; float num2 = (float)(num1 * 0.5); Class985 resultLayoutInfo = new Class985(); IList <Class908> class908List = Class666.smethod_0(this.string_0, effectiveTextHeight, tolerance.DimensionStyleOverrides.TextStyle, tolerance.DimensionStyleOverrides.TextStyle.WidthFactor, color, lineWeight, preTransform * Transformation4D.Translation((double)num2, 0.0, 0.0), resultLayoutInfo, Enum24.flag_3); float x = (float)resultLayoutInfo.Bounds.Corner2.X; float num3 = (float)(num1 * 2.0 * 0.5); Rectangle2D rectangle2D = new Rectangle2D(0.0, -(double)num3, (double)x + (double)num2 * 2.0, 2.0 * (double)num3 - (double)num3); pathDrawer.DrawPath((IShape2D)rectangle2D, preTransform, color, lineWeight, false, false, 0.0); foreach (Class908 class908 in (IEnumerable <Class908>)class908List) { class908.Draw(pathDrawer, Matrix4D.Identity, 0.0); } return((double)x + (double)num2 * 2.0); }
public virtual void Visit(DxfTolerance tolerance) { }
public virtual void Visit(DxfTolerance tolerance) { this.VisitEntity((DxfEntity)tolerance); }