Example #1
0
 public void CreateDrawables(DxfModel model, Matrix4D modelTransform)
 {
     this.ClearDrawables();
     SurfaceGraphicsCache.Class507 class507 = new SurfaceGraphicsCache.Class507(this);
     DrawContext.Surface           context  = (DrawContext.Surface) new DrawContext.Surface.ModelSpace(model, this.graphicsConfig_0, modelTransform, this.charTriangulationCache_0);
     model.Draw(context, (ISurfaceGraphicsFactory)class507);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
         }
     }
 }
Example #4
0
 public void Draw(DxfBlock block, DxfModel model)
 {
     DrawContext.Surface childContext = this.surface_1.CreateChildContext(this.surface_1.BlockContext, block.BaseTransformation, block, model);
     model.Draw(childContext, this.isurfaceGraphicsFactory_0);
 }
Example #5
0
 public void Draw(DxfBlock block, DxfModel model)
 {
     DrawContext.Wireframe childContext = this.wireframe_1.CreateChildContext(this.wireframe_1.BlockContext, block.BaseTransformation, block, model);
     model.Draw(childContext, this.iwireframeGraphicsFactory2_0);
 }
Example #6
0
 public void Draw(DxfBlock block, DxfModel model)
 {
     DrawContext.Surface childContext = this.surface_1.CreateChildContext(this.surface_1.BlockContext, block.BaseTransformation, block, model);
     model.Draw(childContext, this.graphics_0, (IGraphicElementBlock)this.graphicElementInsert_0.UnclippedBlock);
 }