Example #1
0
        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);
        }
Example #2
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);
     }
 }
Example #3
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);
 }
Example #4
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();
 }
Example #5
0
 public void AddDrawables(DxfModel model, IList <DxfEntity> entities, Matrix4D modelTransform)
 {
     WireframeGraphicsFactory2Util.CreateDrawables((IWireframeGraphicsFactory2) new WireframeGraphics2Cache.Class922(this), this.graphicsConfig_0, model, entities, modelTransform);
 }
Example #6
0
 public void CreateDrawables(DxfModel model, Matrix4D modelTransform)
 {
     this.ClearDrawables();
     WireframeGraphicsFactory2Util.CreateDrawables((IWireframeGraphicsFactory2) new WireframeGraphics2Cache.Class922(this), this.graphicsConfig_0, model, modelTransform);
 }