public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { if (context.Config.TryDrawingTextAsText && graphicsFactory.SupportsText) { graphicsFactory.BeginGeometry((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), true, true, false, true); graphicsFactory.CreateMText(this); graphicsFactory.EndGeometry(); } else { this.method_16((DrawContext)context, (IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory)); if (!context.Config.ShowTextAlignmentPoints) { return; } IList <Polyline4D> polylines = DxfUtil.smethod_36(this.method_18(), false, context.GetTransformer()); if (polylines.Count <= 0) { return; } Class940.smethod_3((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), true, false, true, polylines); } }
protected void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory, double startAngle, double endAngle) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); IList <WW.Math.Geometry.Polyline3D> polylines; IList <FlatShape4D> shapes; this.GetPolylines((DrawContext)context, context.GetTransformer().LineTypeScaler, startAngle, endAngle, out polylines, out shapes); if (this.Thickness != 0.0) { Class940.Extrude((DxfEntity)this, context, graphicsFactory, polylines, false, this.Thickness * this.ZAxis); } else { Class940.smethod_16((DxfEntity)this, context, graphicsFactory, polylines, false); } if (shapes == null) { return; } Class940.smethod_24((IPathDrawer) new Class473((DxfEntity)this, context, graphicsFactory), (IEnumerable <FlatShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this), this.Thickness); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { IList <Polyline4D> polylines4D; IList <FlatShape4D> shapes; bool fill; this.GetPolylines4D((DrawContext)context, context.GetTransformer(), out polylines4D, out shapes, out fill); ArgbColor plotColor = context.GetPlotColor((DxfEntity)this); if (polylines4D.Count > 0) { Class940.smethod_3((DxfEntity)this, context, graphicsFactory, plotColor, false, fill, !fill, polylines4D); } if (shapes == null) { return; } IPathDrawer pathDrawer = (IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory); foreach (FlatShape4D flatShape4D in (IEnumerable <FlatShape4D>)shapes) { pathDrawer.DrawPath(flatShape4D.FlatShape, flatShape4D.Transformation, this.Color.ToColor(), (short)0, flatShape4D.IsFilled, false, this.Thickness); } }
public override void DrawInternal( DrawContext.Surface context, Graphics graphics, IGraphicElementBlock parentGraphicElementBlock) { if (this.list_0.Count <= 0) { return; } ArgbColor plotColor = context.GetPlotColor((DxfEntity)this); if (!graphics.AddExistingGraphicElement1(parentGraphicElementBlock, (DxfEntity)this, plotColor)) { return; } GraphicElement1 graphicElement = new GraphicElement1(plotColor); graphics.AddNewGraphicElement((DxfEntity)this, parentGraphicElementBlock, graphicElement); List <WW.Math.Point3D> point3DList = new List <WW.Math.Point3D>(4); foreach (DxfMeshFace dxfMeshFace in this.list_0) { point3DList.Clear(); foreach (DxfMeshFace.Corner corner in dxfMeshFace.Corners) { if (corner.Vertex != null) { point3DList.Add(corner.Vertex.Position); } } Class940.smethod_22(graphicElement.Geometry, (IList <WW.Math.Point3D>)point3DList); } }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); IList <WW.Math.Geometry.Polyline3D> polylines; IList <FlatShape4D> shapes; this.GetPolylines((DrawContext)context, context.GetTransformer().LineTypeScaler, out polylines, out shapes); Interface41 transformer = (Interface41)context.GetTransformer().Clone(); transformer.SetPreTransform(this.Transform); IList <Polyline4D> polyline4DList = DxfUtil.smethod_51(polylines, transformer); if (polyline4DList.Count > 0) { foreach (Polyline4D polyline4D in (IEnumerable <Polyline4D>)polyline4DList) { graphicsFactory.CreatePolyline((IList <Vector4D>)polyline4D, polyline4D.Closed); } } if (shapes == null) { return; } Class940.smethod_24((IPathDrawer) new Class473((DxfEntity)this, context, graphicsFactory), (IEnumerable <FlatShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this), 0.0); }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); IList <WW.Math.Geometry.Polyline3D> polylines; IList <FlatShape4D> shapes; this.GetPolylines((DrawContext)context, context.GetTransformer().LineTypeScaler, out polylines, out shapes); if (this.double_1 != 0.0) { Class940.Extrude((DxfEntity)this, context, graphicsFactory, polylines, false, this.double_1 * this.vector3D_0); } else { Class940.smethod_16((DxfEntity)this, context, graphicsFactory, polylines, false); } if (shapes == null) { return; } IPathDrawer pathDrawer = (IPathDrawer) new Class473((DxfEntity)this, context, graphicsFactory); foreach (FlatShape4D flatShape4D in (IEnumerable <FlatShape4D>)shapes) { pathDrawer.DrawPath(flatShape4D.FlatShape, flatShape4D.Transformation, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this), flatShape4D.IsFilled, false, this.double_1); } }
public void Draw(WW.Math.Geometry.Polyline3D polygon) { this.isurfaceGraphicsFactory_0.SetColor(this.surface_0.GetPlotColor(this.dxfEntity_0)); IList <WW.Math.Geometry.Polyline3D> polylines = (IList <WW.Math.Geometry.Polyline3D>) new List <WW.Math.Geometry.Polyline3D>(1); polylines.Add(polygon); Class940.smethod_16(this.dxfEntity_0, this.surface_0, this.isurfaceGraphicsFactory_0, polylines, false); }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); IList <Polyline3D> polylines = this.GetPolylines(); Class940.smethod_16((DxfEntity)this, context, graphicsFactory, polylines, false); }
public void DrawPath( IShape2D path, Matrix4D transform, Color color, short lineWeight, bool filled, bool forText, double extrusion) { if (!path.HasSegments) { return; } IClippingTransformer transformer = (IClippingTransformer)this.wireframe_0.GetTransformer().Clone(); transformer.SetPreTransform(transform); if (extrusion == 0.0) { IShape4D shape1 = (IShape4D) new FlatShape4D(path, filled); IShape4D shape2 = transformer.Transform(shape1); if (shape2.IsEmpty) { return; } this.iwireframeGraphicsFactory2_0.BeginGeometry(this.dxfEntity_0, this.wireframe_0, this.wireframe_0.GetPlotColor(this.dxfEntity_0, color), false, filled, !filled, true); this.iwireframeGraphicsFactory2_0.CreateShape(this.dxfEntity_0, shape2); this.iwireframeGraphicsFactory2_0.EndGeometry(); } else { IList <Polyline2D> flattened = (IList <Polyline2D>)ShapeTool.GetFlattened(path, this.wireframe_0.Config.ShapeFlattenEpsilon); IList <Polyline4D> polylines1 = DxfUtil.smethod_39(flattened, filled, transformer); ArgbColor plotColor = this.wireframe_0.GetPlotColor(this.dxfEntity_0, color); Class940.smethod_3(this.dxfEntity_0, this.wireframe_0, this.iwireframeGraphicsFactory2_0, plotColor, forText, false, true, polylines1); transformer.SetPreTransform(Transformation4D.Translation(0.0, 0.0, extrusion)); IList <Polyline4D> polylines2 = DxfUtil.smethod_39(flattened, filled, transformer); Class940.smethod_3(this.dxfEntity_0, this.wireframe_0, this.iwireframeGraphicsFactory2_0, plotColor, forText, false, true, polylines2); Polyline4D polyline4D1 = new Polyline4D(2); polyline4D1.Add(Vector4D.Zero); polyline4D1.Add(Vector4D.Zero); IList <Polyline4D> polylines3 = (IList <Polyline4D>) new List <Polyline4D>(1); polylines3.Add(polyline4D1); for (int index1 = polylines1.Count - 1; index1 >= 0; --index1) { Polyline4D polyline4D2 = polylines1[index1]; Polyline4D polyline4D3 = polylines2[index1]; for (int index2 = polyline4D2.Count - 1; index2 >= 0; --index2) { polyline4D1[0] = polyline4D2[index2]; polyline4D1[1] = polyline4D3[index2]; Class940.smethod_2(this.dxfEntity_0, this.wireframe_0, this.iwireframeGraphicsFactory2_0, plotColor, forText, false, true, polylines3); } } } }
uint Interface67.imethod_0(ref Struct34 A_0, ref Struct33 A_1) { if (this.class941_0.Count > 0) { Class940 class2 = (Class940)this.class941_0[0]; A_0 = class2.method_1(); A_1 = class2.method_0(); return(0); } return(0x80040064); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { IList <Polyline4D> polylines4D = this.GetPolylines4D(context.GetTransformer()); if (polylines4D.Count <= 0) { return; } Class940.smethod_3((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), false, false, true, polylines4D); }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); List <bool> edgeVisibleList = new List <bool>(this.list_0.Count); for (int index = 0; index < this.list_0.Count; ++index) { edgeVisibleList.Add((this.invisibleEdgeFlags_0 & Dxf3DFace.invisibleEdgeFlags_1[index]) == InvisibleEdgeFlags.None); } Class940.smethod_19((DxfEntity)this, context, graphicsFactory, this.list_0, edgeVisibleList); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { if (!this.PaperSpace || !(context is DrawContext.Wireframe.PaperToPaperSpace) || (!this.method_22((DrawContext)context) || this.UseNonRectangularClipBoundary)) { return; } foreach (Polyline4D polyline in (IEnumerable <Polyline4D>) this.method_21((DrawContext)context, context.GetTransformer())) { Class940.smethod_1((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), false, false, true, polyline); } }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { IList <IList <Polyline2D2N> > polylines1; IList <IList <Polyline2D2N> > polylines2; IList <FlatShape4D> shapes; bool fill; this.GetPolylines((DrawContext)context, context.GetTransformer().LineTypeScaler, out polylines1, out polylines2, out shapes, out fill); ArgbColor plotColor = context.GetPlotColor((DxfEntity)this); graphicsFactory.SetColor(plotColor); int count = polylines1.Count; for (int index = 0; index < count; ++index) { IList <Polyline2D2N> polyline2D2NList = polylines1[index]; IList <Polyline2D2N> polylinesB = polylines2[index]; bool flag = this.Thickness != 0.0; if (polylinesB == null) { if (flag) { Class940.smethod_5((DxfEntity)this, context, graphicsFactory, polyline2D2NList, fill, this.Transform, this.ZAxis, this.Thickness); } else { IList <Polyline3D> polyline3DList = (IList <Polyline3D>) new List <Polyline3D>(); DxfUtil.smethod_15(polyline2D2NList, (IList <Polyline2D2N>)null, this.Transform, polyline3DList, false); Class940.smethod_15((DxfEntity)this, context, graphicsFactory, polyline3DList); } } else if (flag) { Class940.smethod_7((DxfEntity)this, context, graphicsFactory, polyline2D2NList, polylinesB, fill, this.Transform, this.ZAxis, this.Thickness); } else { Class940.smethod_10((DxfEntity)this, context, graphicsFactory, polyline2D2NList, polylinesB, this.Transform, this.ZAxis, fill); } if (shapes != null) { Class473 class473 = new Class473((DxfEntity)this, context, graphicsFactory); foreach (FlatShape4D flatShape4D in (IEnumerable <FlatShape4D>)shapes) { class473.DrawPath(flatShape4D.FlatShape, flatShape4D.Transformation, this.Color.ToColor(), (short)0, flatShape4D.IsFilled, false, this.Thickness); } } } }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { IList <Polyline4D> polylines4D = this.GetPolylines4D(context.GetTransformer()); if (polylines4D.Count <= 0) { return; } bool fill = context.Model.Header.FillMode && this.vector3D_0.X == 0.0 && this.vector3D_0.Y == 0.0; Class940.smethod_3((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), false, fill, !fill, polylines4D); }
protected DrawContext(DxfModel model, DxfLayout layout, GraphicsConfig config) { this.dxfModel_0 = model; this.dxfLayout_0 = layout; this.graphicsConfig_0 = config; this.dxfLineType_0 = model.ContinuousLineType; this.short_0 = (short)-3; this.dxfLayer_0 = model.ZeroLayer; this.dxfLayer_1 = model.method_14(); this.dxfWipeoutVariables_0 = model.DictionaryRoot.Entries.GetFirstValue("ACAD_WIPEOUT_VARS") as DxfWipeoutVariables ?? new DxfWipeoutVariables(); this.dictionary_0 = new Dictionary <DxfEntity, object>(); this.image_0 = (Image) new Bitmap(1, 1); this.graphics_0 = Class940.smethod_0(this.image_0); this.method_0(); }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); WW.Math.Geometry.Polyline3D polyline = this.method_13(); if (this.Thickness != 0.0) { Class940.Extrude((DxfEntity)this, context, graphicsFactory, polyline, this.Model.Header.FillMode, this.Thickness * this.ZAxis); } else { Class940.smethod_17((DxfEntity)this, context, graphicsFactory, polyline, this.Model.Header.FillMode); } }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); IList <WW.Math.Geometry.Polyline3D> polylines; IList <FlatShape4D> shapes; this.GetPolylines((DrawContext)context, context.GetTransformer().LineTypeScaler, out polylines, out shapes); Class940.smethod_16((DxfEntity)this, context, graphicsFactory, polylines, false); if (shapes == null) { return; } Class940.smethod_24((IPathDrawer) new Class473((DxfEntity)this, context, graphicsFactory), (IEnumerable <FlatShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this), 0.0); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { IList <Polyline3D> polylines1; IList <FlatShape4D> shapes; this.method_14((DrawContext)context, context.GetTransformer().LineTypeScaler, out polylines1, out shapes); IList <Polyline4D> polylines2 = DxfUtil.smethod_36(polylines1, false, context.GetTransformer()); if (polylines2.Count > 0) { graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this, this.dxfDimensionStyleOverrides_0.DimensionLineColor), false, polylines2, false, true); } if (shapes != null) { Class940.smethod_23((IPathDrawer) new ns0.Class0((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, this.dxfDimensionStyleOverrides_0.DimensionLineColor, context.GetLineWeight((DxfEntity)this)); } if (!DxfLeader.smethod_7((ILeader)this, (IList <WW.Math.Point3D>) this.list_0)) { return; } if (this.dxfDimensionStyleOverrides_0.LeaderArrowBlock == null) { Polyline3D polyline = this.method_15(); if (polyline == null) { return; } IClippingTransformer clippingTransformer = (IClippingTransformer)context.GetTransformer().Clone(); clippingTransformer.SetPreTransform(this.method_16()); List <Polyline4D> polyline4DList = new List <Polyline4D>((IEnumerable <Polyline4D>)clippingTransformer.Transform(polyline, polyline.Closed)); if (polyline4DList.Count <= 0) { return; } graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this, this.dxfDimensionStyleOverrides_0.DimensionLineColor), false, (IList <Polyline4D>)polyline4DList, true, true); } else { DxfInsert.Interface46 nterface46 = (DxfInsert.Interface46) new DxfInsert.Class1019((DxfEntity)this, context, graphicsFactory); nterface46.imethod_0(0, 0, this.method_16()); nterface46.Draw(this.dxfDimensionStyleOverrides_0.LeaderArrowBlock, true); } }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { this.method_16((DrawContext)context, (IPathDrawer) new Class473((DxfEntity)this, context, graphicsFactory)); if (!context.Config.ShowTextAlignmentPoints) { return; } graphicsFactory.SetColor(ArgbColors.White); IList <WW.Math.Geometry.Polyline3D> polylines = this.method_18(); if (polylines.Count <= 0) { return; } Class940.smethod_15((DxfEntity)this, context, graphicsFactory, polylines); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { IList <Polyline4D> polylines4D; IList <IShape4D> shapes; this.GetPolylines4D((DrawContext)context, context.GetTransformer(), out polylines4D, out shapes); if (polylines4D.Count > 0) { Class940.smethod_3((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), false, false, true, polylines4D); } if (shapes == null) { return; } Class940.smethod_23((IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this)); }
protected void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory graphicsFactory, double startAngle, double endAngle) { IList <Polyline4D> polylines4D; IList <FlatShape4D> shapes; this.GetPolylines4D((DrawContext)context, context.GetTransformer(), startAngle, endAngle, out polylines4D, out shapes); if (polylines4D.Count > 0) { graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, polylines4D, false, true); } if (shapes == null) { return; } Class940.smethod_23((IPathDrawer) new ns0.Class0((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this)); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { IClippingTransformer transformer = context.GetTransformer(); IList <WW.Math.Geometry.Polyline3D> polylines1; IList <FlatShape4D> flatShapes; this.method_13((DrawContext)context, transformer, out polylines1, out flatShapes); IList <Polyline4D> polylines2 = DxfUtil.smethod_36(polylines1, false, transformer); if (polylines2.Count > 0) { Class940.smethod_3((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), false, false, true, polylines2); } if (flatShapes == null) { return; } Class940.smethod_23((IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)flatShapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this)); }
public override void DrawInternal( DrawContext.Surface context, Graphics graphics, IGraphicElementBlock parentGraphicElementBlock) { ArgbColor plotColor = context.GetPlotColor((DxfEntity)this); DxfLineType lineType = this.GetLineType((DrawContext)context); bool plinegen = (this.Flags & Enum21.flag_8) != Enum21.flag_0; double lineTypeScale = context.TotalLineTypeScale * this.LineTypeScale; if (!graphics.AddExistingGraphicElement2(parentGraphicElementBlock, (DxfEntity)this, plotColor, lineType, lineTypeScale, plinegen)) { return; } GraphicElement2 graphicElement2 = new GraphicElement2(plotColor, lineType, lineTypeScale, plinegen); graphics.AddNewGraphicElement((DxfEntity)this, parentGraphicElementBlock, (GraphicElement1)graphicElement2); if (this.Thickness != 0.0) { graphicElement2.Geometry.Extrusion = this.Thickness * Vector3D.ZAxis; } Class940.smethod_12((DrawContext)context, (IVertex2DCollection)this.dxfVertex2DCollection_0, this.Closed, this.Transform, this.Thickness, this.DefaultStartWidth, this.DefaultEndWidth, graphicElement2.Geometry); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { IList <Polyline4D> polyline4DList = context.GetTransformer().Transform(this.method_14(), true); if (polyline4DList == null || polyline4DList.Count <= 0) { return; } IList <Polyline4D> polylines4D; IList <IShape4D> shapes; this.GetPolylines4D((DrawContext)context, context.GetTransformer(), out polylines4D, out shapes); Bitmap bitmap = this.Preview(context.Config.OleImageSize, context.Config.OleImageSize); if (bitmap != null) { DxfRasterImage rasterImage; Vector4D transformedOrigin; Vector4D transformedXAxis; Vector4D transformedYAxis; this.method_15(context, bitmap, out rasterImage, out transformedOrigin, out transformedXAxis, out transformedYAxis); graphicsFactory.BeginGeometry((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, false, true, true); graphicsFactory.CreateImage(rasterImage, new WW.Math.Point2D(0.0, 0.0), new WW.Math.Point2D((double)(bitmap.Width - 1), (double)(bitmap.Height - 1)), transformedOrigin, transformedXAxis, transformedYAxis, context); graphicsFactory.EndGeometry(); } if (polylines4D.Count > 0) { Class940.smethod_3((DxfEntity)this, context, graphicsFactory, context.GetPlotColor((DxfEntity)this), false, false, true, polylines4D); } if (shapes == null) { return; } Class940.smethod_23((IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this)); }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { WW.Math.Geometry.Polyline3D polyline3D = this.method_17(context); if (polyline3D.Count <= 0) { return; } graphicsFactory.SetColor(context.Config.BackColor); Class940.smethod_16((DxfEntity)this, context, graphicsFactory, (IList <WW.Math.Geometry.Polyline3D>) new WW.Math.Geometry.Polyline3D[1] { polyline3D }, true); if (!context.WipeoutVariables.DisplayFrame) { return; } graphicsFactory.SetColor(this.GetColor((DrawContext)context)); Class940.smethod_16((DxfEntity)this, context, graphicsFactory, (IList <WW.Math.Geometry.Polyline3D>) new WW.Math.Geometry.Polyline3D[1] { polyline3D }, false); }
public override void DrawInternal( DrawContext.Surface context, Graphics graphics, IGraphicElementBlock parentGraphicElementBlock) { ArgbColor plotColor = context.GetPlotColor((DxfEntity)this); if (!graphics.AddExistingGraphicElement1(parentGraphicElementBlock, (DxfEntity)this, plotColor)) { return; } GraphicElement1 graphicElement = new GraphicElement1(plotColor); graphics.AddNewGraphicElement((DxfEntity)this, parentGraphicElementBlock, graphicElement); WW.Math.Geometry.Polyline3D polyline = this.method_13(); if (this.double_1 != 0.0) { Class940.Extrude(graphicElement.Geometry, polyline, this.Model.Header.FillMode, this.Thickness * this.ZAxis); } else { Class940.smethod_21((DxfEntity)this, context, graphicElement.Geometry, polyline, this.Model.Header.FillMode); } }
public override void DrawInternal( DrawContext.Surface context, ISurfaceGraphicsFactory graphicsFactory) { if (this.list_0.Count <= 0) { return; } graphicsFactory.SetColor(context.GetPlotColor((DxfEntity)this)); foreach (DxfMeshFace dxfMeshFace in this.list_0) { WW.Math.Geometry.Polyline3D boundary = new WW.Math.Geometry.Polyline3D(4); List <bool> edgeVisibleList = new List <bool>(4); foreach (DxfMeshFace.Corner corner in dxfMeshFace.Corners) { if (corner.Vertex != null) { boundary.Add(corner.Vertex.Position); edgeVisibleList.Add(corner.EdgeVisible); } } Class940.smethod_18((DxfEntity)this, context, graphicsFactory, boundary, edgeVisibleList); } }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { IList <Polyline4D> polyline4DList = context.GetTransformer().Transform(this.method_14(), true); if (polyline4DList == null || polyline4DList.Count <= 0) { return; } IList <Polyline4D> polylines4D; IList <IShape4D> shapes; this.GetPolylines4D((DrawContext)context, context.GetTransformer(), out polylines4D, out shapes); IClippingTransformer clippingTransformer = (IClippingTransformer)context.GetTransformer().Clone(); Matrix4D preTransform = Transformation4D.Translation((WW.Math.Vector3D) this.point3D_3); clippingTransformer.SetPreTransform(preTransform); Matrix4D matrix = clippingTransformer.Matrix; WW.Math.Point3D zero = WW.Math.Point3D.Zero; Vector4D transformedOrigin = matrix.TransformTo4D(zero); Vector4D transformedXAxis = matrix.TransformTo4D(zero + WW.Math.Vector3D.XAxis); Vector4D transformedYAxis = matrix.TransformTo4D(zero + WW.Math.Vector3D.YAxis); graphicsFactory.CreateScalableImage((DxfEntity)this, context, (IBitmapProvider)this, polyline4DList[0], new Size2D((this.point3D_2 - this.point3D_3).GetLength(), (this.point3D_0 - this.point3D_3).GetLength()), transformedOrigin, transformedXAxis, transformedYAxis); if (polylines4D.Count > 0) { graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, polylines4D, false, true); } if (shapes == null) { return; } Class940.smethod_23((IPathDrawer) new ns0.Class0((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this)); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { if (this.list_0.Count == 0) { return; } DxfLayer layer = this.GetLayer((DrawContext)context); int minElementCount = this.method_15(); DxfMLineStyle style = this.Style; for (int elementIndex = 0; elementIndex < style.Elements.Count; ++elementIndex) { DxfMLineStyle.Element element = style.Elements[elementIndex]; IList <Polyline4D> polylines4D; IList <IShape4D> shapes; this.GetPolylines4D((DrawContext)context, elementIndex, minElementCount, element, context.GetTransformer(), out polylines4D, out shapes); ArgbColor color = DxfEntity.GetColor(context.Config.IndexedColors, element.Color, context.ByBlockColor, context.ByBlockDxfColor, layer); if (polylines4D.Count > 0) { foreach (Polyline4D polyline4D in (IEnumerable <Polyline4D>)polylines4D) { if (polyline4D.Count <= 2) { polyline4D.Closed = false; } } Class940.smethod_3((DxfEntity)this, context, graphicsFactory, color, false, false, true, polylines4D); } if (shapes != null) { Class940.smethod_23((IPathDrawer) new Class396((DxfEntity)this, context, graphicsFactory), (IEnumerable <IShape4D>)shapes, element.Color, context.GetLineWeight((DxfEntity)this)); } } IList <Polyline4D> polylines1 = this.method_14((DrawContext)context, context.GetTransformer()); if (polylines1.Count > 0) { foreach (Polyline4D polyline4D in (IEnumerable <Polyline4D>)polylines1) { if (polyline4D.Count <= 2) { polyline4D.Closed = false; } } ArgbColor color = this.method_13((DrawContext)context, layer); Class940.smethod_3((DxfEntity)this, context, graphicsFactory, color, false, false, true, polylines1); } if (!style.IsFillOn) { return; } IList <Polyline4D> polylines2 = this.method_16(context.GetTransformer()); if (polylines2 == null || polylines2.Count <= 0) { return; } Class940.smethod_2((DxfEntity)this, context, graphicsFactory, DxfEntity.GetColor(context.Config.IndexedColors, style.FillColor, context.ByBlockColor, context.ByBlockDxfColor, this.GetLayer((DrawContext)context)), false, true, false, polylines2); }