protected DrawContext(DrawContext from) { this.image_0 = from.image_0; this.graphics_0 = from.graphics_0; this.dxfModel_0 = from.dxfModel_0; this.dxfLayout_0 = from.dxfLayout_0; this.graphicsConfig_0 = from.graphicsConfig_0; this.dxfLayer_0 = from.dxfLayer_0; this.dxfLayer_1 = from.dxfLayer_1; this.dxfEntity_0 = from.dxfEntity_0; this.dxfBlock_0 = from.dxfBlock_0; this.drawContext_0 = from.drawContext_0; this.dxfEntity_1 = from.dxfEntity_1; this.entityColor_0 = from.entityColor_0; this.transparency_0 = from.transparency_0; this.dxfColor_0 = from.dxfColor_0; this.dxfLineType_0 = from.dxfLineType_0; this.short_0 = from.short_0; this.int_0 = from.int_0; this.int_1 = from.int_1; this.dxfWipeoutVariables_0 = from.dxfWipeoutVariables_0; this.dictionary_0 = from.dictionary_0; this.double_0 = from.double_0; this.double_1 = from.double_1; }
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); } }
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); }
public PaperToPaperSpace( DxfModel model, DxfLayout layout, GraphicsConfig config, Matrix4D postTransform) : base(model, layout, config, (IClippingTransformer) new Class383(postTransform, Matrix3D.Identity, (ILineTypeScaler)Class624.Class626.class626_0)) { }
public PaperToPaperSpace( DxfModel model, DxfLayout layout, GraphicsConfig config, Matrix4D postTransform, CharTriangulationCache charTriangulationCache) : base(model, layout, config, postTransform, charTriangulationCache) { }
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); }
public ModelSpace(DxfModel model, GraphicsConfig config, Matrix4D transform) : base(model, model.ModelLayout, config, (IClippingTransformer) new Class383(transform, Matrix3D.Identity, (ILineTypeScaler)Class624.Class626.class626_0)) { if (model.Header.CurrentAnnotationScale == null || !model.Header.ModelSpaceAnnotationScalingEnabled) { return; } this.AnnotationScaleFactor = model.Header.CurrentAnnotationScale.DrawingUnits / model.Header.CurrentAnnotationScale.PaperUnits; }
protected Wireframe( DxfModel model, DxfLayout layout, GraphicsConfig config, IClippingTransformer initialTransformer) : base(model, layout, config) { this.clippingTransformerChain_0 = new ClippingTransformerChain(); this.clippingTransformerChain_0.Push(initialTransformer); }
public ModelToPaperSpace( DxfModel model, DxfLayout layout, GraphicsConfig config, DxfViewport viewport, Matrix4D postTransform, CharTriangulationCache charTriangulationCache) : base(model, layout, config, postTransform, charTriangulationCache) { this.dxfViewport_0 = viewport; }
public Surface( DxfModel model, DxfLayout layout, GraphicsConfig config, Matrix4D transform, CharTriangulationCache charTriangulationCache) : base(model, layout, config) { this.class803_0 = new Class803(transform, Matrix3D.Identity, (ILineTypeScaler)Class624.Class626.class626_0); this.charTriangulationCache_0 = charTriangulationCache; }
public ModelSpace( DxfModel model, GraphicsConfig config, Matrix4D transform, CharTriangulationCache charTriangulationCache) : base(model, model.ModelLayout, config, transform, charTriangulationCache) { if (model.Header.CurrentAnnotationScale == null || !model.Header.ModelSpaceAnnotationScalingEnabled) { return; } this.AnnotationScaleFactor = model.Header.CurrentAnnotationScale.ScaleFactor; }
internal Class454 method_0(IShape2D shape, GraphicsConfig config) { Struct13 key = new Struct13(shape, config.ShapeFlattenEpsilon); Class454 class454_1; if (this.dictionary_0.TryGetValue(key, out class454_1)) { return(class454_1); } Class454 class454_2 = new Class454(shape, config); this.dictionary_0.Add(key, class454_2); return(class454_2); }
protected DrawContext(DxfModel model, DxfLayout layout, GraphicsConfig config) { this.dxfModel_0 = model; this.dxfLayout_0 = layout; this.graphicsConfig_0 = config; this.dxfLineType_0 = model.ContinuousLineType; this.short_0 = (short)-3; this.dxfLayer_0 = model.ZeroLayer; this.dxfLayer_1 = model.method_14(); this.dxfWipeoutVariables_0 = model.DictionaryRoot.Entries.GetFirstValue("ACAD_WIPEOUT_VARS") as DxfWipeoutVariables ?? new DxfWipeoutVariables(); this.dictionary_0 = new Dictionary <DxfEntity, object>(); this.image_0 = (Image) new Bitmap(1, 1); this.graphics_0 = Class940.smethod_0(this.image_0); this.method_0(); }
public static void CreateDrawables( IWireframeGraphicsFactory2 graphicsFactory, GraphicsConfig graphicsConfig, DxfModel model, IList <DxfEntity> entities, Matrix4D modelTransform) { using (DrawContext.Wireframe context = (DrawContext.Wireframe) new DrawContext.Wireframe.ModelSpace(model, graphicsConfig, modelTransform)) { foreach (DxfEntity entity in (IEnumerable <DxfEntity>)entities) { entity.Draw(context, graphicsFactory); } } }
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); } } }
public ModelToPaperSpace( DxfModel model, DxfLayout layout, GraphicsConfig config, DxfViewport viewport, Matrix4D postTransform) : base(model, layout, config, viewport.method_17(model, config, postTransform)) { this.dxfViewport_0 = viewport; if (viewport.AnnotationScale == null || !model.Header.PaperSpaceAnnotationScalingEnabled) { return; } this.double_0 = viewport.AnnotationScale.ScaleFactor; this.dxfScale_0 = model.Header.CurrentAnnotationScale; model.Header.CurrentAnnotationScale = viewport.AnnotationScale; }
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); } } }
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); } } } } }
public object Clone() { GraphicsConfig graphicsConfig = new GraphicsConfig() { short_0 = this.short_0, short_1 = this.short_1, short_2 = this.short_2, bool_1 = this.bool_1, bool_2 = this.bool_2, bool_3 = this.bool_3, bool_4 = this.bool_4, bool_5 = this.bool_5, bool_6 = this.bool_6, bool_7 = this.bool_7, bool_8 = this.bool_8, bool_9 = this.bool_9, bool_10 = this.bool_10, short_3 = this.short_3, bool_11 = this.bool_11, double_0 = this.double_0, double_1 = this.double_1, argbColor_0 = this.argbColor_0, bool_12 = this.bool_12, indexedColorHandling_0 = this.indexedColorHandling_0, dxfIndexedColorSet_0 = this.dxfIndexedColorSet_0, nullable_0 = this.nullable_0, double_2 = this.double_2, argbColor_1 = this.argbColor_1, bool_13 = this.bool_13, bool_14 = this.bool_14 }; graphicsConfig.bool_14 = this.bool_15; graphicsConfig.int_0 = this.int_0; graphicsConfig.int_1 = this.int_1; graphicsConfig.bool_16 = this.bool_16; graphicsConfig.PlotStyleManager = this.plotStyleProvider_0; graphicsConfig.bool_17 = this.bool_17; graphicsConfig.double_3 = this.double_3; graphicsConfig.double_4 = this.double_4; graphicsConfig.bool_19 = this.bool_19; graphicsConfig.bool_20 = this.bool_20; graphicsConfig.TreatAttributesAsPartOfInsert = this.TreatAttributesAsPartOfInsert; graphicsConfig.int_2 = this.int_2; graphicsConfig.int_3 = this.int_3; graphicsConfig.multiLineAttributeHandling_0 = this.multiLineAttributeHandling_0; return((object)graphicsConfig); }
public BoundsCalculator(Bounds3D bounds, GraphicsConfig graphicsConfig) { this.bounds3D_0 = bounds; this.graphicsConfig_0 = graphicsConfig; }
public BoundsCalculator(GraphicsConfig graphicsConfig) : this(new Bounds3D(), graphicsConfig) { }