FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcDbPlotSettings.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
20#include "..\acad\Acad.h"
21
22class AcDbDatabase;
23class AcDbObjectId;
25class AcRxClass;
26
28{
29public:
31 {
32 kInches = 0,
33 kMillimeters = 1,
34 kPixels = 2
35 };
37 {
38 k0degrees = 0,
39 k90degrees = 1,
40 k180degrees = 2,
41 k270degrees = 3
42 };
44 {
45 kDisplay = 0,
46 kExtents = 1,
47 kLimits = 2,
48 kView = 3,
49 kWindow = 4,
50 kLayout = 5
51 };
53 {
54 kDraft = 0,
55 kPreview = 1,
56 kNormal = 2,
57 kPresentation = 3,
58 kMaximum = 4,
59 kCustom = 5
60 };
62 {
63 kAsDisplayed = 0,
64 kWireframe = 1,
65 kHidden = 2,
66 kRendered = 3,
67 kVisualStyle = 4,
68 kRenderPreset = 5
69 };
71 {
72 kScaleToFit = 0,
73 k1_128in_1ft = 1,
74 k1_64in_1ft = 2,
75 k1_32in_1ft = 3,
76 k1_16in_1ft = 4,
77 k3_32in_1ft = 5,
78 k1_8in_1ft = 6,
79 k3_16in_1ft = 7,
80 k1_4in_1ft = 8,
81 k3_8in_1ft = 9,
82 k1_2in_1ft = 10,
83 k3_4in_1ft = 11,
84 k1in_1ft = 12,
85 k3in_1ft = 13,
86 k6in_1ft = 14,
87 k1ft_1ft = 15,
88 k1_1 = 16,
89 k1_2 = 17,
90 k1_4 = 18,
91 k1_8 = 19,
92 k1_10 = 20,
93 k1_16 = 21,
94 k1_20 = 22,
95 k1_30 = 23,
96 k1_40 = 24,
97 k1_50 = 25,
98 k1_100 = 26,
99 k2_1 = 27,
100 k4_1 = 28,
101 k8_1 = 29,
102 k10_1 = 30,
103 k100_1 = 31,
104 k1000_1 = 32
105 };
106public:
107
108
109public:
112 bool plotAsRaster(void)const ;
113 bool plotWireframe(void)const ;
117 PlotType plotType(void)const ;
121 Acad::ErrorStatus addToPlotSettingsDict( AcDbDatabase *);
122 Acad::ErrorStatus copyFrom( AcDbPlotSettings *);
123 Acad::ErrorStatus getCanonicalMediaName(wchar_t const * &)const ;
124 Acad::ErrorStatus getCanonicalMediaName(AcString& mediaName) const;
125 Acad::ErrorStatus getCurrentStyleSheet(wchar_t const * &)const ;
126 Acad::ErrorStatus getCustomPrintScale(double &,double &)const ;
127 Acad::ErrorStatus getPlotCfgName(wchar_t const * &)const ;
128 Acad::ErrorStatus getPlotOrigin(double &,double &)const ;
129 Acad::ErrorStatus getPlotPaperMargins(double &,double &,double &,double &)const ;
130 Acad::ErrorStatus getPlotPaperSize(double &,double &)const ;
131 Acad::ErrorStatus getPlotSettingsName(wchar_t * &)const ;
132 Acad::ErrorStatus getPlotSettingsName(wchar_t const * &)const ;
133 Acad::ErrorStatus getPlotViewName(wchar_t const * &)const ;
134 Acad::ErrorStatus getPlotWindowArea(double &,double &,double &,double &)const ;
135 Acad::ErrorStatus getStdScale(double &)const ;
136 Acad::ErrorStatus setPlotSettingsName(wchar_t const *);
137 Acad::ErrorStatus setShadePlot( ShadePlotType);
139 Acad::ErrorStatus setShadePlotCustomDPI(short);
141 int drawViewportsFirst(void)const ;
142 int modelType(void)const ;
143 int plotCentered(void)const ;
144 int plotHidden(void)const ;
145 int plotPlotStyles(void)const ;
146 int plotViewportBorders(void)const ;
147 int printLineweights(void)const ;
148 int scaleLineweights(void)const ;
149 int showPlotStyles(void)const ;
150 int useStandardScale(void)const ;
151 short shadePlotCustomDPI(void)const ;
152
153
154 virtual ~AcDbPlotSettings(void);
155
156 virtual Acad::ErrorStatus getClassID( _GUID *)const ;
158 void setPlotHidden(int);
164 virtual Acad::ErrorStatus subClose( void );
165 Acad::ErrorStatus getPlotPaperSize(AcGePoint2d&) const;
166 Acad::ErrorStatus getPlotOrigin(AcGePoint2d&) const;
167
169
170protected:
172
173};
#define ACRX_DECLARE_MEMBERS(classname)
Definition addmacro.h:756
AcDbObjectId shadePlotId(void) const
Acad::ErrorStatus setShadePlot(ShadePlotType)
PlotPaperUnits plotPaperUnits(void) const
int plotHidden(void) const
int useStandardScale(void) const
PlotType plotType(void) const
Acad::ErrorStatus getPlotPaperSize(AcGePoint2d &) const
virtual Acad::ErrorStatus subClose(void)
void setShowPlotStyles(int)
Acad::ErrorStatus getPlotPaperMargins(double &, double &, double &, double &) const
int drawViewportsFirst(void) const
void setPlotPlotStyles(int)
bool plotWireframe(void) const
Acad::ErrorStatus getPlotCfgName(wchar_t const *&) const
ShadePlotType shadePlot(void) const
int plotViewportBorders(void) const
Acad::ErrorStatus getPlotWindowArea(double &, double &, double &, double &) const
Acad::ErrorStatus getPlotViewName(wchar_t const *&) const
int scaleLineweights(void) const
StdScaleType stdScaleType(void) const
AcDbPlotSettings(AcDbSystemInternals *)
Acad::ErrorStatus getCustomPrintScale(double &, double &) const
void setPlotViewportBorders(int)
Acad::ErrorStatus getCanonicalMediaName(AcString &mediaName) const
int plotCentered(void) const
Acad::ErrorStatus setShadePlotResLevel(ShadePlotResLevel)
Acad::ErrorStatus setShadePlotCustomDPI(short)
Acad::ErrorStatus addToPlotSettingsDict(AcDbDatabase *)
Acad::ErrorStatus getPlotOrigin(double &, double &) const
void setDrawViewportsFirst(int)
int printLineweights(void) const
int plotPlotStyles(void) const
PlotRotation plotRotation(void) const
void setScaleLineweights(int)
Acad::ErrorStatus setPlotSettingsName(wchar_t const *)
Acad::ErrorStatus getPlotSettingsName(wchar_t const *&) const
Acad::ErrorStatus copyFrom(AcDbPlotSettings *)
void setPlotHidden(int)
bool plotAsRaster(void) const
Acad::ErrorStatus getCurrentStyleSheet(wchar_t const *&) const
int modelType(void) const
Acad::ErrorStatus getPlotSettingsName(wchar_t *&) const
virtual ~AcDbPlotSettings(void)
void setPrintLineweights(int)
Acad::ErrorStatus getCanonicalMediaName(wchar_t const *&) const
Acad::ErrorStatus getPlotPaperSize(double &, double &) const
ShadePlotResLevel shadePlotResLevel(void) const
Acad::ErrorStatus getPlotOrigin(AcGePoint2d &) const
Acad::ErrorStatus getStdScale(double &) const
int showPlotStyles(void) const
virtual Acad::ErrorStatus getClassID(_GUID *) const
Acad::ErrorStatus setShadePlot(ShadePlotType, AcDbObjectId)
short shadePlotCustomDPI(void) const