public void GetBounds( DxfModel model, DxfLayout layout, ICollection <DxfViewport> viewports, Matrix4D postTransform) { if (viewports == null) { viewports = (ICollection <DxfViewport>)layout.Viewports; } IWireframeGraphicsFactory graphicsFactory = this.CreateGraphicsFactory(); using (DrawContext.Wireframe.PaperToPaperSpace paperToPaperSpace = new DrawContext.Wireframe.PaperToPaperSpace(layout.Model, layout, this.graphicsConfig_0, postTransform)) { foreach (DxfEntity entity in (DxfHandledObjectCollection <DxfEntity>)layout.Entities) { entity.Draw((DrawContext.Wireframe)paperToPaperSpace, graphicsFactory); } layout.DrawFrame((DrawContext.Wireframe)paperToPaperSpace, graphicsFactory); } foreach (DxfViewport viewport in (IEnumerable <DxfViewport>)viewports) { if (viewport.ModelSpaceVisible) { using (DrawContext.Wireframe.ModelToPaperSpace modelToPaperSpace = new DrawContext.Wireframe.ModelToPaperSpace(layout.Model, layout, this.graphicsConfig_0, viewport, postTransform)) { foreach (DxfEntity entity in (DxfHandledObjectCollection <DxfEntity>)model.Entities) { entity.Draw((DrawContext.Wireframe)modelToPaperSpace, graphicsFactory); } } } } }
public override DrawContext.Wireframe CreateChildContext( DxfEntity blockContext, Matrix4D preTransform) { DrawContext.Wireframe.ModelToPaperSpace modelToPaperSpace = new DrawContext.Wireframe.ModelToPaperSpace(this); modelToPaperSpace.SetParent((DrawContext)this, blockContext); modelToPaperSpace.clippingTransformerChain_0.SetPreTransform(preTransform); return((DrawContext.Wireframe)modelToPaperSpace); }
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); } } }
private static void smethod_1( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, IList <DxfEntity> modelSpaceEntities, DxfLayout layout, ICollection <DxfViewport> viewports) { foreach (DxfViewport viewport in (IEnumerable <DxfViewport>)viewports) { if (viewport.ModelSpaceVisible) { using (DrawContext.Wireframe.ModelToPaperSpace modelToPaperSpace = new DrawContext.Wireframe.ModelToPaperSpace(model, layout, graphicsConfig, viewport, Matrix4D.Identity)) { foreach (DxfEntity modelSpaceEntity in (IEnumerable <DxfEntity>)modelSpaceEntities) { modelSpaceEntity.Draw((DrawContext.Wireframe)modelToPaperSpace, graphicsFactory); } } } } }
private ModelToPaperSpace(DrawContext.Wireframe.ModelToPaperSpace from) : base((DrawContext.Wireframe)from) { this.dxfViewport_0 = from.dxfViewport_0; }