예제 #1
0
 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);
     }
 }
예제 #2
0
 public void CreateDrawables(
     DxfModel model,
     DxfLayout layout,
     ICollection <DxfViewport> viewports)
 {
     this.ClearDrawables();
     WireframeGraphicsFactory2Util.CreateDrawables((IWireframeGraphicsFactory2) new WireframeGraphics2Cache.Class922(this), this.graphicsConfig_0, model, layout, viewports);
 }
예제 #3
0
 public void AddDrawables(
     DxfModel model,
     IList <DxfEntity> modelSpaceEntities,
     IList <DxfEntity> paperSpaceEntities,
     DxfLayout layout,
     ICollection <DxfViewport> viewports)
 {
     WireframeGraphicsFactory2Util.CreateDrawables((IWireframeGraphicsFactory2) new WireframeGraphics2Cache.Class922(this), this.graphicsConfig_0, model, modelSpaceEntities, paperSpaceEntities, layout, viewports);
     this.method_0();
 }
예제 #4
0
 public void AddDrawables(DxfModel model, IList <DxfEntity> entities, Matrix4D modelTransform)
 {
     WireframeGraphicsFactory2Util.CreateDrawables((IWireframeGraphicsFactory2) new WireframeGraphics2Cache.Class922(this), this.graphicsConfig_0, model, entities, modelTransform);
 }
예제 #5
0
 public void CreateDrawables(DxfModel model, Matrix4D modelTransform)
 {
     this.ClearDrawables();
     WireframeGraphicsFactory2Util.CreateDrawables((IWireframeGraphicsFactory2) new WireframeGraphics2Cache.Class922(this), this.graphicsConfig_0, model, modelTransform);
 }