Esempio n. 1
0
        public static void CreateDrawables(
            IWireframeGraphicsFactory 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)
            {
                WireframeGraphicsFactoryUtil.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;
            }
            WireframeGraphicsFactoryUtil.smethod_1(graphicsFactory, graphicsConfig, model, modelSpaceEntities, layout, viewports);
        }
Esempio n. 2
0
 public static void CreateDrawables(
     IWireframeGraphicsFactory 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)
         {
             WireframeGraphicsFactoryUtil.smethod_0(graphicsFactory, graphicsConfig, model, layout, viewports);
         }
         using (DrawContext.Wireframe.PaperToPaperSpace paperToPaperSpace = new DrawContext.Wireframe.PaperToPaperSpace(model, layout, graphicsConfig, Matrix4D.Identity))
             layout.Draw((DrawContext.Wireframe)paperToPaperSpace, graphicsFactory);
         if (flag)
         {
             return;
         }
         WireframeGraphicsFactoryUtil.smethod_0(graphicsFactory, graphicsConfig, model, layout, viewports);
     }
     else
     {
         WireframeGraphicsFactoryUtil.CreateDrawables(graphicsFactory, graphicsConfig, model, Matrix4D.Identity);
     }
 }
Esempio n. 3
0
 public void CreateDrawables(
     DxfModel model,
     DxfLayout layout,
     ICollection <DxfViewport> viewports)
 {
     this.ClearDrawables();
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new WireframeGraphicsCache.Class957(this), this.graphicsConfig_0, model, layout, viewports);
 }
Esempio n. 4
0
 public void AddDrawables(
     DxfModel model,
     IList <DxfEntity> modelSpaceEntities,
     IList <DxfEntity> paperSpaceEntities,
     DxfLayout layout,
     ICollection <DxfViewport> viewports)
 {
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new WireframeGraphicsCache.Class957(this), this.graphicsConfig_0, model, modelSpaceEntities, paperSpaceEntities, layout, viewports);
     this.method_0();
 }
Esempio n. 5
0
 public static void CreateDrawables(
     IWireframeGraphicsFactory graphicsFactory,
     GraphicsConfig graphicsConfig,
     DxfModel model,
     DxfLayout layout,
     IList <DxfEntity> entities,
     Matrix4D modelTransform)
 {
     if (layout == null || !layout.PaperSpace)
     {
         WireframeGraphicsFactoryUtil.CreateDrawables(graphicsFactory, graphicsConfig, model, entities, modelTransform);
     }
     using (DrawContext.Wireframe context = (DrawContext.Wireframe) new DrawContext.Wireframe.PaperToPaperSpace(model, layout, graphicsConfig, modelTransform))
     {
         foreach (DxfEntity entity in (IEnumerable <DxfEntity>)entities)
         {
             entity.Draw(context, graphicsFactory);
         }
     }
 }
Esempio n. 6
0
 public void AddDrawables(DxfModel model, IList <DxfEntity> entities, Matrix4D modelTransform)
 {
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new WireframeGraphicsCache.Class957(this), this.graphicsConfig_0, model, entities, modelTransform);
 }
Esempio n. 7
0
 public void CreateDrawables(DxfModel model, Matrix4D modelTransform)
 {
     this.ClearDrawables();
     WireframeGraphicsFactoryUtil.CreateDrawables((IWireframeGraphicsFactory) new WireframeGraphicsCache.Class957(this), this.graphicsConfig_0, model, modelTransform);
 }