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) { DxfTextStyle textStyle = this.TextStyle; if (textStyle == null) { return; } ShxFile shxFile = textStyle.GetShxFile(); if (shxFile == null) { return; } ShxShape shapeByIndex = shxFile.GetShapeByIndex(this.ushort_0); if (shapeByIndex == null) { return; } WW.Math.Point2D endPoint; new Class396((DxfEntity)this, context, graphicsFactory).DrawPath(shapeByIndex.GetGlyphShape(false, out endPoint), this.Transform, this.Color.ToColor(), context.GetLineWeight((DxfEntity)this), false, false, this.double_1); }
public void Draw(IWireframeGraphicsFactory2 graphicsFactory) { foreach (IWireframeDrawable2 wireframeDrawable2 in this.linkedList_0) { wireframeDrawable2.Draw(graphicsFactory); } }
public void DrawFrame(DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { foreach (DxfEntity dxfEntity in (DxfHandledObjectCollection <DxfViewport>) this.dxfViewportCollection_0) { dxfEntity.Draw(context, graphicsFactory); } }
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 static void CreateDrawables( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, DxfLayout layout, ICollection <DxfViewport> viewports) { if (layout.PaperSpace) { if (viewports == null) { viewports = (ICollection <DxfViewport>)layout.Viewports; } bool flag; if (flag = (layout.PlotLayoutFlags & PlotLayoutFlags.DrawViewportsFirst) != PlotLayoutFlags.None) { WireframeGraphicsFactory2Util.smethod_0(graphicsFactory, graphicsConfig, model, layout, (IEnumerable <DxfViewport>)viewports); } using (DrawContext.Wireframe.PaperToPaperSpace paperToPaperSpace = new DrawContext.Wireframe.PaperToPaperSpace(model, layout, graphicsConfig, Matrix4D.Identity)) layout.Draw((DrawContext.Wireframe)paperToPaperSpace, graphicsFactory); if (flag) { return; } WireframeGraphicsFactory2Util.smethod_0(graphicsFactory, graphicsConfig, model, layout, (IEnumerable <DxfViewport>)viewports); } else { WireframeGraphicsFactory2Util.CreateDrawables(graphicsFactory, graphicsConfig, model, Matrix4D.Identity); } }
public static void CreateDrawables( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, IList <DxfEntity> modelSpaceEntities, IList <DxfEntity> paperSpaceEntities, DxfLayout layout, ICollection <DxfViewport> viewports) { if (viewports == null) { viewports = (ICollection <DxfViewport>)layout.Viewports; } bool flag; if (flag = (layout.PlotLayoutFlags & PlotLayoutFlags.DrawViewportsFirst) != PlotLayoutFlags.None) { WireframeGraphicsFactory2Util.smethod_1(graphicsFactory, graphicsConfig, model, modelSpaceEntities, layout, viewports); } using (DrawContext.Wireframe.PaperToPaperSpace paperToPaperSpace = new DrawContext.Wireframe.PaperToPaperSpace(model, layout, graphicsConfig, Matrix4D.Identity)) { foreach (DxfEntity paperSpaceEntity in (IEnumerable <DxfEntity>)paperSpaceEntities) { paperSpaceEntity.Draw((DrawContext.Wireframe)paperToPaperSpace, graphicsFactory); } } if (flag) { return; } WireframeGraphicsFactory2Util.smethod_1(graphicsFactory, graphicsConfig, model, modelSpaceEntities, layout, viewports); }
public WireframeGraphicsFactory2ColorChanger( IWireframeGraphicsFactory2 graphicsFactory, Func <ArgbColor, ArgbColor> colorChanger) { this.iwireframeGraphicsFactory2_0 = graphicsFactory; this.func_0 = colorChanger; }
public void UpdateDrawables( DxfEntity entity, System.Action <DrawContext.Wireframe, IWireframeGraphicsFactory2> updateDrawables, Func <IWireframeGraphicsFactory2, IWireframeGraphicsFactory2> graphicsFactoryWrapper) { if (!this.bool_0) { throw new Exception("Property AreDrawablesUpdateable is false."); } List <WpfWireframeGraphics3D.Class451> class451List; if (!this.dictionary_0.TryGetValue(entity, out class451List)) { return; } WpfWireframeGraphics3D.Class451[] array = class451List.ToArray(); WpfWireframeGraphics3D.Class452 graphicsFactory = (WpfWireframeGraphics3D.Class452) this.CreateGraphicsFactory(); IWireframeGraphicsFactory2 graphicsFactory2 = (IWireframeGraphicsFactory2)graphicsFactory; if (graphicsFactoryWrapper != null) { graphicsFactory2 = graphicsFactoryWrapper((IWireframeGraphicsFactory2)graphicsFactory); } foreach (WpfWireframeGraphics3D.Class451 entityDrawablesInfo in array) { this.RemoveDrawables(entityDrawablesInfo, true); graphicsFactory.CurrentColoredDrawableNode = new LinkedListNodeRef <Interface37>(entityDrawablesInfo.EntityDrawableNode.List, entityDrawablesInfo.EntityDrawableNode); graphicsFactory.CurrentEntityDrawablesInfo = entityDrawablesInfo.Parent; graphicsFactory.ExistingEntityDrawablesInfo = entityDrawablesInfo; updateDrawables(entityDrawablesInfo.DrawContext, graphicsFactory2); } }
public void Draw(DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { foreach (DxfEntity dxfEntity in this.GetEntitiesInDrawingOrder(context.Config)) { dxfEntity.Draw(context, graphicsFactory); } this.DrawFrame(context, graphicsFactory); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { graphicsFactory.BeginInsert(this); this.DrawInternal((DxfInsert.Interface46) new DxfInsert.Class1020((DxfEntity)this, context, graphicsFactory), true); graphicsFactory.EndInsert(); }
public Class396( DxfEntity entity, DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { this.dxfEntity_0 = entity; this.wireframe_0 = context; this.iwireframeGraphicsFactory2_0 = graphicsFactory; }
public void Draw(DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { graphicsFactory.BeginEntity(this, context); if (this.IsEntityVisibleInContext((DrawContext)context, this.UseLayerEnabled)) { this.DrawInternal(context, graphicsFactory); } graphicsFactory.EndEntity(); }
public Class1020( DxfEntity insert, DrawContext.Wireframe drawContext, IWireframeGraphicsFactory2 graphicsFactory) { this.dxfEntity_0 = insert; this.wireframe_0 = drawContext; this.iwireframeGraphicsFactory2_0 = graphicsFactory; }
public static void CreateDrawables( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, Matrix4D modelTransform) { using (DrawContext.Wireframe context = (DrawContext.Wireframe) new DrawContext.Wireframe.ModelSpace(model, graphicsConfig, modelTransform)) model.Draw(context, graphicsFactory); }
private void UpdateWpfGraphics() { wpfGraphics.DrawingVisuals.Clear(); IWireframeGraphicsFactory2 graphicsFactory = wpfGraphics.CreateGraphicsFactory(); foreach (IWireframeDrawable2 drawable in graphicsCache.Drawables) { drawable.Draw(graphicsFactory); } }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { if (!this.method_17((DrawContext)context)) { return; } base.DrawInternal(context, graphicsFactory); }
public void Draw(DrawContext drawContext, IWireframeGraphicsFactory2 graphicsFactory) { foreach (WireframeGraphics2Cache.Class923 class923 in this.list_0) { if (drawContext.HaveSameBlockContextChain((DrawContext)class923.DrawContext) && class923.EntityDrawable != null) { class923.EntityDrawable.Draw(graphicsFactory); } } }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { if (this.proxyGraphics_0 == null) { return; } this.proxyGraphics_0.Draw((DxfEntity)this, context.CreateChildContext((DxfEntity)this, Matrix4D.Identity), graphicsFactory); }
public override void DrawInternal( DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory) { foreach (Segment4D segment in (IEnumerable <Segment4D>)context.GetTransformer().Transform(new Segment3D(this.point3D_0, this.point3D_0 + 10000000.0 * this.vector3D_0))) { graphicsFactory.BeginGeometry((DxfEntity)this, context, context.GetPlotColor((DxfEntity)this), false, false, true, true); graphicsFactory.CreateRay((DxfEntity)this, segment); graphicsFactory.EndGeometry(); } }
public void Draw(IWireframeGraphicsFactory2 graphicsFactory) { graphicsFactory.BeginEntity(this.dxfEntity_0, this.wireframe_0); if (this.linkedList_0 != null) { for (LinkedListNode <IWireframeDrawable2> linkedListNode = this.linkedList_0.First; linkedListNode != null; linkedListNode = linkedListNode.Next) { linkedListNode.Value.Draw(graphicsFactory); } } graphicsFactory.EndEntity(); }
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 void Draw(IWireframeGraphicsFactory2 graphicsFactory) { if (this.linkedList_0 == null) { return; } graphicsFactory.BeginGeometry(this.dxfEntity_0, this.wireframe_0, this.argbColor_0, this.bool_0, this.bool_1, this.bool_2, this.bool_3); for (LinkedListNode <IWireframeDrawable2> linkedListNode = this.linkedList_0.First; linkedListNode != null; linkedListNode = linkedListNode.Next) { linkedListNode.Value.Draw(graphicsFactory); } graphicsFactory.EndGeometry(); }
public static void smethod_4( DxfEntity entity, DrawContext.Wireframe context, IWireframeGraphicsFactory2 graphicsFactory, IList <Polyline4D> polylines) { int count = polylines.Count; for (int index = 0; index < count; ++index) { graphicsFactory.CreatePolyline(entity, polylines[index]); } }
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 static void smethod_1( DxfEntity entity, DrawContext.Wireframe drawContext, IWireframeGraphicsFactory2 graphicsFactory, ArgbColor color, bool forText, bool fill, bool stroke, Polyline4D polyline) { graphicsFactory.BeginGeometry(entity, drawContext, color, false, fill, stroke, true); graphicsFactory.CreatePolyline(entity, polyline); graphicsFactory.EndGeometry(); }
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 static void CreateDrawables( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, IList <DxfEntity> entities, Matrix4D modelTransform) { using (DrawContext.Wireframe context = (DrawContext.Wireframe) new DrawContext.Wireframe.ModelSpace(model, graphicsConfig, modelTransform)) { foreach (DxfEntity entity in (IEnumerable <DxfEntity>)entities) { entity.Draw(context, graphicsFactory); } } }
private static void smethod_0( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, DxfLayout layout, IEnumerable <DxfViewport> viewports) { foreach (DxfViewport viewport in viewports) { if (viewport.ModelSpaceVisible) { using (DrawContext.Wireframe.ModelToPaperSpace modelToPaperSpace = new DrawContext.Wireframe.ModelToPaperSpace(model, layout, graphicsConfig, viewport, Matrix4D.Identity)) model.Draw((DrawContext.Wireframe)modelToPaperSpace, graphicsFactory); } } }
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(); } }