Пример #1
0
        /// <summary>
        /// Initializes a new instance of <c>PlotSettings</c>.
        /// </summary>
        public PlotSettings()
        {
            pageSetupName     = string.Empty;
            plotterName       = "none_device";
            paperSizeName     = "ISO_A4_(210.00_x_297.00_MM)";
            viewName          = string.Empty;
            currentStyleSheet = string.Empty;

            paperMargin = new PaperMargin(7.5, 20.0, 7.5, 20.0);

            paperSize        = new Vector2(210.0, 297.0);
            origin           = Vector2.Zero;
            windowUpRight    = Vector2.Zero;
            windowBottomLeft = Vector2.Zero;

            scaleToFit       = true;
            numeratorScale   = 1.0;
            denominatorScale = 1.0;
            flags            = PlotFlags.DrawViewportsFirst | PlotFlags.PrintLineweights | PlotFlags.PlotPlotStyles | PlotFlags.UseStandardScale;
            plotType         = PlotType.DrawingExtents;

            paperUnits = PlotPaperUnits.Milimeters;
            rotation   = PlotRotation.Degrees90;

            shadePlotMode           = ShadePlotMode.AsDisplayed;
            shadePlotResolutionMode = ShadePlotResolutionMode.Normal;
            shadePlotDPI            = 300;
            paperImageOrigin        = Vector2.Zero;
        }
Пример #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfPlotSettings dxfPlotSettings = (DxfPlotSettings)from;

            this.string_0              = dxfPlotSettings.string_0;
            this.string_1              = dxfPlotSettings.string_1;
            this.string_2              = dxfPlotSettings.string_2;
            this.string_3              = dxfPlotSettings.string_3;
            this.double_0              = dxfPlotSettings.double_0;
            this.double_1              = dxfPlotSettings.double_1;
            this.double_2              = dxfPlotSettings.double_2;
            this.double_3              = dxfPlotSettings.double_3;
            this.size2D_0              = dxfPlotSettings.size2D_0;
            this.point2D_0             = dxfPlotSettings.point2D_0;
            this.rectangle2D_0         = dxfPlotSettings.rectangle2D_0;
            this.double_4              = dxfPlotSettings.double_4;
            this.double_5              = dxfPlotSettings.double_5;
            this.plotLayoutFlags_0     = dxfPlotSettings.plotLayoutFlags_0;
            this.plotPaperUnits_0      = dxfPlotSettings.plotPaperUnits_0;
            this.plotRotation_0        = dxfPlotSettings.plotRotation_0;
            this.plotArea_0            = dxfPlotSettings.plotArea_0;
            this.string_4              = dxfPlotSettings.string_4;
            this.short_0               = dxfPlotSettings.short_0;
            this.shadePlotMode_0       = dxfPlotSettings.shadePlotMode_0;
            this.shadePlotResolution_0 = dxfPlotSettings.shadePlotResolution_0;
            this.short_1               = dxfPlotSettings.short_1;
            this.double_6              = dxfPlotSettings.double_6;
            this.point2D_1             = dxfPlotSettings.point2D_1;
        }
Пример #3
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfViewport dxfViewport = (DxfViewport)from;

            this.point3D_0  = dxfViewport.point3D_0;
            this.size2D_0   = dxfViewport.size2D_0;
            this.point2D_0  = dxfViewport.point2D_0;
            this.point2D_1  = dxfViewport.point2D_1;
            this.vector2D_0 = dxfViewport.vector2D_0;
            this.vector2D_1 = dxfViewport.vector2D_1;
            this.vector3D_0 = dxfViewport.vector3D_0;
            this.point3D_1  = dxfViewport.point3D_1;
            this.double_1   = dxfViewport.double_1;
            this.double_2   = dxfViewport.double_2;
            this.double_3   = dxfViewport.double_3;
            this.double_4   = dxfViewport.double_4;
            this.double_5   = dxfViewport.double_5;
            this.double_6   = dxfViewport.double_6;
            this.double_7   = dxfViewport.double_7;
            foreach (DxfLayer from1 in dxfViewport.dxfHandledObjectCollection_1)
            {
                DxfLayer layer = Class906.GetLayer(cloneContext, from1);
                if (!this.dxfHandledObjectCollection_1.Contains(layer))
                {
                    this.dxfHandledObjectCollection_1.Add(layer);
                }
            }
            this.StatusFlags          = dxfViewport.viewportStatusFlags_0;
            this.dxfObjectReference_6 = DxfObjectReference.Null;
            this.string_1             = dxfViewport.string_1;
            this.renderMode_0         = dxfViewport.renderMode_0;
            this.bool_2               = dxfViewport.bool_2;
            this.bool_3               = dxfViewport.bool_3;
            this.dxfUcs_0             = Class906.smethod_2(cloneContext, dxfViewport.dxfUcs_0);
            this.orthographicType_0   = dxfViewport.orthographicType_0;
            this.shadePlotMode_0      = dxfViewport.shadePlotMode_0;
            this.short_1              = dxfViewport.short_1;
            this.bool_4               = dxfViewport.bool_4;
            this.lightingType_0       = dxfViewport.lightingType_0;
            this.double_8             = dxfViewport.double_8;
            this.double_9             = dxfViewport.double_9;
            this.color_0              = dxfViewport.color_0;
            this.ViewportEntityHeader = dxfViewport.dxfViewportEntityHeader_0 != null ? (DxfViewportEntityHeader)dxfViewport.dxfViewportEntityHeader_0.Clone(cloneContext) : (DxfViewportEntityHeader)null;
            this.method_23();
        }