#include <DbPlotSettingsValidator.h>
|
| ODRX_DECLARE_MEMBERS (OdDbPlotSettingsValidator) |
|
virtual OdResult | setPlotCfgName (OdDbPlotSettings *pPlotSettings, const OdString &plotDeviceName, const OdString &mediaName=OdString::kEmpty)=0 |
|
virtual OdResult | setCanonicalMediaName (OdDbPlotSettings *pPlotSettings, const OdString &mediaName)=0 |
|
virtual OdResult | setPlotOrigin (OdDbPlotSettings *pPlotSettings, double xCoordinate, double yCoordinate)=0 |
|
virtual OdResult | setPlotPaperUnits (OdDbPlotSettings *pPlotSettings, const PlotPaperUnits plotPaperUnits)=0 |
|
virtual OdResult | setPlotRotation (OdDbPlotSettings *pPlotSettings, const PlotRotation plotRotation)=0 |
|
virtual OdResult | setPlotCentered (OdDbPlotSettings *pPlotSettings, bool plotCentered)=0 |
|
virtual OdResult | setPlotType (OdDbPlotSettings *pPlotSettings, const PlotType plotType)=0 |
|
virtual OdResult | setPlotWindowArea (OdDbPlotSettings *pPlotSettings, double xMin, double yMin, double xMax, double yMax)=0 |
|
virtual OdResult | setPlotViewName (OdDbPlotSettings *pPlotSettings, const OdString &plotViewName)=0 |
|
virtual OdResult | setUseStandardScale (OdDbPlotSettings *pPlotSettings, bool useStandardScale)=0 |
|
virtual OdResult | setCustomPrintScale (OdDbPlotSettings *pPlotSettings, double numerator, double denominator)=0 |
|
virtual OdResult | setCurrentStyleSheet (OdDbPlotSettings *pPlotSettings, const OdString ¤tStyleSheet)=0 |
|
virtual OdResult | setStdScaleType (OdDbPlotSettings *pPlotSettings, const StdScaleType stdScaleType)=0 |
|
virtual OdResult | setStdScale (OdDbPlotSettings *pPlotSettings, double standardScale)=0 |
|
virtual OdString | getLocaleMediaName (OdDbPlotSettings *pPlotSettings, const OdString &canonicalName)=0 |
|
virtual OdString | getLocaleMediaName (OdDbPlotSettings *pPlotSettings, int mediaIndex)=0 |
|
virtual OdResult | setClosestMediaName (OdDbPlotSettings *pPlotSettings, double paperWidth, double paperHeight, const PlotPaperUnits plotPaperUnits, bool matchPrintableArea)=0 |
|
virtual OdResult | recalculatePlotData (OdDbPlotSettings *pPlotSet)=0 |
|
virtual OdResult | setZoomToPaperOnUpdate (OdDbPlotSettings *pPlotSettings, bool zoomToPaperOnUpdate)=0 |
|
virtual OdResult | setDefaultPlotConfig (OdDbPlotSettings *pPlotSettings)=0 |
|
virtual void | plotDeviceList (OdArray< OdString > &deviceList)=0 |
|
virtual OdResult | canonicalMediaNameList (OdDbPlotSettings *pPlotSettings, OdArray< OdString > &mediaList)=0 |
|
virtual OdResult | plotStyleSheetList (OdArray< OdString > &styleList)=0 |
|
| ODRX_HEAP_OPERATORS () |
|
| OdRxObject () |
|
virtual | ~OdRxObject () |
|
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
|
virtual OdRxObject * | x (const OdRxClass *pClass) const |
|
virtual OdRxClass * | isA () const |
|
virtual void | addRef ()=0 |
|
virtual void | release ()=0 |
|
virtual long | numRefs () const |
|
bool | isKindOf (const OdRxClass *pClass) const |
|
virtual OdRxObjectPtr | clone () const |
|
virtual void | copyFrom (const OdRxObject *pSource) |
|
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
|
virtual bool | isEqualTo (const OdRxObject *pOther) const |
|
This class defines access methods that validate data for OdDbPlotSettings objects prior to setting the data on the objects.
- See also
- TD_Db
<group OdDb_Classes>
Definition at line 56 of file DbPlotSettingsValidator.h.
◆ canonicalMediaNameList() [1/2]
Returns an array canonical (locale-independent) media names for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
mediaList | [out] Receives the media name list. |
◆ canonicalMediaNameList() [2/2]
◆ getLocaleMediaName() [1/2]
Returns the locale-dependent media name for the specified PlotSettings object and canonical media name or index.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
canonicalName | [out] Locale-independent media name. |
◆ getLocaleMediaName() [2/2]
Returns the locale-dependent media name for the specified PlotSettings object and index.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
mediaIndex | [in] Media index. |
◆ ODRX_DECLARE_MEMBERS()
◆ plotDeviceList() [1/2]
virtual void OdDbPlotSettingsValidator::plotDeviceList |
( |
OdArray< const OdChar * > & |
deviceList | ) |
|
|
protectedpure virtual |
Returns an array of all available system printers and PC3 files.
- Parameters
-
deviceList | [out] Receives the plot device list. |
◆ plotDeviceList() [2/2]
◆ plotStyleSheetList() [1/2]
◆ plotStyleSheetList() [2/2]
◆ recalculatePlotData()
Returns an array of all available plot style tables.
- Parameters
-
styleList | [out] Receives the plot style list. |
Implemented in OdDbPlotSettingsValidator2.
◆ refreshLists()
Refreshes the plot device and style lists for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
◆ setCanonicalMediaName()
Sets the canonical (locale-independent) media name for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
mediaName | [in] Canonical media name. |
- See also
- getLocaleMediaName()
◆ setClosestMediaName()
virtual OdResult OdDbPlotSettingsValidator::setClosestMediaName |
( |
OdDbPlotSettings * |
pPlotSettings, |
|
|
double |
paperWidth, |
|
|
double |
paperHeight, |
|
|
const PlotPaperUnits |
plotPaperUnits, |
|
|
bool |
matchPrintableArea |
|
) |
| |
|
pure virtual |
Sets the media name closest to the specified parameters for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
paperWidth | [in] Paper width. |
paperHeight | [in] Paper height. |
plotPaperUnits | [in] Plot paper units. |
matchPrintableArea | [in] True to match against printable area or physical media size. |
plotPaperUnits must be one of the following:
Value Description kInches 0 Inches kMillimeters 1 Millimeters kPixels 2 Pixels
◆ setCurrentStyleSheet()
Sets the current style sheet for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
currentStyleSheet | [in] Name of current style sheet. |
◆ setCustomPrintScale()
virtual OdResult OdDbPlotSettingsValidator::setCustomPrintScale |
( |
OdDbPlotSettings * |
pPlotSettings, |
|
|
double |
numerator, |
|
|
double |
denominator |
|
) |
| |
|
pure virtual |
Sets the custom print scale for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
numerator | [in] Receives the PaperSpace units. |
denominator | [in] Receives the media units. |
◆ setDefaultPlotConfig()
Applies the default plot configuration settings to the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
◆ setPlotCentered()
Controls the centering of the plot for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
plotCentered | [in] Plot centered. |
◆ setPlotCfgName()
Sets the plot device and media names for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
plotDeviceName | [in] Name of the system printer or PC3 file. |
mediaName | [in] Media name. |
◆ setPlotOrigin()
virtual OdResult OdDbPlotSettingsValidator::setPlotOrigin |
( |
OdDbPlotSettings * |
pPlotSettings, |
|
|
double |
xCoordinate, |
|
|
double |
yCoordinate |
|
) |
| |
|
pure virtual |
Sets the plot origin offset for the specified PlotSettings object.
- Parameters
-
xCoordinate | [out] X-coordinate of the origin offset. |
yCoordinate | [out] Y-coordinate of the origin offset. |
◆ setPlotPaperUnits()
Sets the plot paper units for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
plotPaperUnits | [in] Plot paper units. |
plotPaperUnits must be one of the following:
Value Description kInches 0 Inches kMillimeters 1 Millimeters kPixels 2 Pixels
◆ setPlotRotation()
Sets the plot rotation for specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
plotRotation | [in] Plot rotation. |
Value Description k0degrees 0 No rotation k90degrees 1 90° CCW k180degrees 2 Inverted° k270degrees 3 90° CW
◆ setPlotType()
Sets the plot type for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
plotType | [in] Plot type. |
Value Description kDisplay 0 Display kExtents 1 Extents kLimits 2 Limits kView 3 View kWindow 4 Window kLayout 5 Layout
◆ setPlotViewName()
Sets the plot view name for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
plotViewName | [in] Plot view name. |
◆ setPlotWindowArea()
virtual OdResult OdDbPlotSettingsValidator::setPlotWindowArea |
( |
OdDbPlotSettings * |
pPlotSettings, |
|
|
double |
xMin, |
|
|
double |
yMin, |
|
|
double |
xMax, |
|
|
double |
yMax |
|
) |
| |
|
pure virtual |
Sets the corners of the plot window area for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
xMin | [in] X-coordinate of the lower-left corner.
|
yMin | [in] Y-coordinate of the lower-left corner.
|
xMax | [in] X-coordinate of the upper-right corner.
|
yMax | [in] Y-coordinate of the upper-right corner.
|
◆ setStdScale()
Sets the standard scale, as a floating point value, for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
standardScale | [in] Standard scale. |
◆ setStdScaleType()
Sets the standard scale type for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
stdScaleType | [in] Name of current style sheet. |
Value Scale kScaleToFit 0 Scaled to Fit k1_128in_1ft 1 1/128=1' k1_64in_1ft 2 1/64=1' k1_32in_1ft 3 1/32=1' k1_16in_1ft 4 1/16=1' k3_32in_1ft 5 3/32=1' k1_8in_1ft 6 1/8=1' k3_16in_1ft 7 3/16=1' k1_4in_1ft 8 1/4=1' k3_8in_1ft 9 3/8=1' k1_2in_1ft 10 1/2=1' k3_4in_1ft 11 3/4=1' k1in_1ft 12 1=1' k3in_1ft 13 3=1' k6in_1ft 14 6=1' k1ft_1ft 15 1'=1' k1_1 16 1:1 k1_2 17 1:2 k1_4 18 1:4 k1_5 19 1:5 k1_8 20 1:8 k1_10 21 1:10 k1_16 22 1:16 k1_20 23 1:20 k1_30 24 1:30 k1_40 25 1:40 k1_50 26 1:50 k1_100 27 1:100 k2_1 28 2:1 k4_1 29 4:1 k8_1 30 8:1 k10_1 31 10:1 k100_1 32 100:1 k1000_1 33 1000:1 k1and1_2in_1ft 34 1.5"=1'
◆ setUseStandardScale()
virtual OdResult OdDbPlotSettingsValidator::setUseStandardScale |
( |
OdDbPlotSettings * |
pPlotSettings, |
|
|
bool |
useStandardScale |
|
) |
| |
|
pure virtual |
Controls the use of a standard scale for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
useStandardScale | [in] Use standard scale. |
◆ setZoomToPaperOnUpdate()
virtual OdResult OdDbPlotSettingsValidator::setZoomToPaperOnUpdate |
( |
OdDbPlotSettings * |
pPlotSettings, |
|
|
bool |
zoomToPaperOnUpdate |
|
) |
| |
|
pure virtual |
Controls the Zoom to Paper on Update setting for the specified PlotSettings object.
- Parameters
-
pPlotSettings | [in] Pointer to the PlotSettings object. |
zoomToPaperOnUpdate | [in] Zoom to Paper on Update. |
◆ CExport2PDFDialog
friend class CExport2PDFDialog |
|
friend |
◆ fxRefreshLists
Description: This function MUST NOT be used outside of ODA.
◆ Helper
The documentation for this class was generated from the following file: