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); } }
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.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.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { foreach (Segment4D segment in (IEnumerable <Segment4D>)context.GetTransformer().Transform(new Segment3D(this.point3D_0, this.point3D_0 + 10000000.0 * this.vector3D_0))) { graphicsFactory.CreateRay((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), segment); } }
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.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { IList <Polyline4D> polylines4D = this.GetPolylines4D(context.GetTransformer()); if (polylines4D.Count <= 0) { return; } graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, polylines4D, context.Model.Header.FillMode && this.vector3D_0.X == 0.0 && this.vector3D_0.Y == 0.0, true); }
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.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); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { IList <Polyline4D> polylines4D; bool fill; this.GetPolylines4D(context.GetTransformer(), out polylines4D, out fill); if (polylines4D.Count <= 0) { return; } graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, polylines4D, fill, true); }
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.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { IClippingTransformer transformer = context.GetTransformer(); Vector3D vector3D = 10000000.0 * this.vector3D_0; WW.Math.Point3D start = this.point3D_0 - vector3D; WW.Math.Point3D end = this.point3D_0 + vector3D; foreach (Segment4D segment in (IEnumerable <Segment4D>)transformer.Transform(new Segment3D(start, end))) { Vector4D?startPoint = transformer.Transform(this.point3D_0); graphicsFactory.CreateXLine((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), startPoint, segment); } }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory graphicsFactory) { if (!this.PaperSpace || !(context is DrawContext.Wireframe.PaperToPaperSpace) || (!this.method_22((DrawContext)context) || this.UseNonRectangularClipBoundary)) { return; } IList <Polyline4D> polylines = this.method_21((DrawContext)context, context.GetTransformer()); if (polylines.Count <= 0) { return; } graphicsFactory.CreatePath((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, polylines, false, true); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { PointDisplayMode pointDisplayMode = context.Model.Header.PointDisplayMode; bool flag = this.Layer != null && this.Layer == context.DefPointsLayer; if (pointDisplayMode == PointDisplayMode.None && !flag) { return; } ArgbColor plotColor = context.GetPlotColor((DxfEntity)this); IClippingTransformer transformer = context.GetTransformer(); if (this.double_1 != 0.0) { foreach (Segment4D segment4D in (IEnumerable <Segment4D>)transformer.Transform(new Segment3D(this.point3D_0, this.point3D_0 + this.double_1 * this.vector3D_0))) { graphicsFactory.BeginGeometry((DxfEntity)this, context, plotColor, false, false, true, true); graphicsFactory.CreateLine((DxfEntity)this, segment4D.Start, segment4D.End); graphicsFactory.EndGeometry(); } } else if (pointDisplayMode != PointDisplayMode.Point && context.Model.Header.PointDisplaySize > 0.0 && !flag) { IShape4D shape = transformer.Transform((IShape4D) new FlatShape4D(context.PointShape2D, Transformation4D.Translation(this.point3D_0.X, this.point3D_0.Y, this.point3D_0.Z), false)); if (shape.IsEmpty) { return; } graphicsFactory.BeginGeometry((DxfEntity)this, context, plotColor, false, true, false, true); graphicsFactory.CreateShape((DxfEntity)this, shape); graphicsFactory.EndGeometry(); } else { Vector4D?nullable = transformer.Transform(this.point3D_0); if (!nullable.HasValue) { return; } graphicsFactory.BeginGeometry((DxfEntity)this, context, plotColor, false, true, false, true); graphicsFactory.CreateDot((DxfEntity)this, nullable.Value); graphicsFactory.EndGeometry(); } }
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)); }
private void method_3( IList <Class908> chunks, DxfEntity entity, DrawContext.Wireframe drawContext) { LinkedListNodeRef <Interface12> linkedListNodeRef = !this.bool_0 ? this.linkedListNodeRef_0 : this.linkedListNodeRef_1; bool?nullable0 = this.nullable_0; if ((!nullable0.GetValueOrDefault() ? 1 : (!nullable0.HasValue ? 1 : 0)) != 0) { linkedListNodeRef.Insert((Interface12) new Class807()); this.nullable_0 = new bool?(true); } System.Drawing.Color color = (System.Drawing.Color) this.GetColor(drawContext.GetPlotColor(entity)); short lineWeight = drawContext.GetLineWeight(entity); foreach (Class908 chunk in (IEnumerable <Class908>)chunks) { Class1036 class1036 = new Class1036(chunk, color, lineWeight); linkedListNodeRef.Insert((Interface12)class1036); } }
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 void CreateImage( DxfRasterImage rasterImage, DrawContext.Wireframe drawContext, Polyline4D clipPolygon, Polyline4D imageBoundary, Vector4D transformedOrigin, Vector4D transformedXAxis, Vector4D transformedYAxis) { if (!this.graphicsConfig_0.DrawImages || rasterImage.ImageDef == null || !rasterImage.ImageDef.Bitmap.IsValid) { return; } this.method_4(false, (Interface12) new Class344((Image)rasterImage.ImageDef.Bitmap.Image, clipPolygon, imageBoundary, transformedOrigin, transformedXAxis, transformedYAxis, (System.Drawing.Color)drawContext.GetPlotColor((DxfEntity)rasterImage), drawContext.GetLineWeight((DxfEntity)rasterImage))); }