CFx SDK Documentation 2024 SP0
|
#include <DbPlotSettings.h>
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions inherited from OdDbObject | |
OdDbObject () | |
virtual OdResult | subGetClassID (void *pClsid) const |
virtual OdDbObjectPtr | subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
virtual OdDbObjectPtr | subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
Protected Member Functions inherited from OdGiDrawable | |
OdGiDrawable () | |
virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const =0 |
virtual bool | subWorldDraw (OdGiWorldDraw *wd) const =0 |
virtual void | subViewportDraw (OdGiViewportDraw *vd) const =0 |
virtual OdUInt32 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
virtual OdUInt32 | subRegenSupportFlags () const |
Protected Attributes inherited from OdDbObject | |
OdDbObjectImpl * | m_pImpl |
This class represents PlotSettings objects in an OdDbDatabase instance.
<group OdDb_Classes>
Definition at line 38 of file DbPlotSettings.h.
Enumerator | |
---|---|
kInches | |
kMillimeters | |
kPixels |
Definition at line 45 of file DbPlotSettings.h.
Enumerator | |
---|---|
k0degrees | |
k90degrees | |
k180degrees | |
k270degrees |
Definition at line 52 of file DbPlotSettings.h.
Enumerator | |
---|---|
kDisplay | |
kExtents | |
kLimits | |
kView | |
kWindow | |
kLayout |
Definition at line 60 of file DbPlotSettings.h.
Enumerator | |
---|---|
kDraft | |
kPreview | |
kNormal | |
kPresentation | |
kMaximum | |
kCustom |
Definition at line 119 of file DbPlotSettings.h.
Enumerator | |
---|---|
kAsDisplayed | |
kWireframe | |
kHidden | |
kRendered | |
kVisualStyle | |
kRenderPreset |
Definition at line 109 of file DbPlotSettings.h.
Definition at line 70 of file DbPlotSettings.h.
OdDbPlotSettings::OdDbPlotSettings | ( | ) |
void OdDbPlotSettings::addToPlotSettingsDict | ( | OdDbDatabase * | pDb | ) |
Adds this PlotSettings object to the PlotSettings dictionary in the specified database.
pDb | [in] Pointer to the database. |
|
virtual |
Copies the contents of the specified object into this object when possible.
pSource | [in] Pointer to the source object. |
Throws:
Cause eNullObjectPointer pSource->isNull()
Reimplemented from OdDbObject.
bool OdDbPlotSettings::drawViewportsFirst | ( | ) | const |
TBC.
bool textFill() const;
TBC. void setTextFill(bool textFill);
TBC. int getTextQuality() const;
TBC. void setTextQuality(int quality);
Returns true if and only if viewports are to be plotted before other objects in PaperSpace for this PlotSettings object (DXF 70, bit 0x200).
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
Reimplemented in OdDbLayout.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
Reimplemented in OdDbLayout.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
Reimplemented in OdDbLayout.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
Reimplemented in OdDbLayout.
double OdDbPlotSettings::getBottomMargin | ( | ) | const |
Returns the bottom margin of the paper for this PlotSettings object (DXF 41).
OdString OdDbPlotSettings::getCanonicalMediaName | ( | ) | const |
Returns the canonical media name for the paper id of this PlotSettings object (DXF 4).
OdString OdDbPlotSettings::getCurrentStyleSheet | ( | ) | const |
Returns the current style sheet (DXF 7).
void OdDbPlotSettings::getCustomPrintScale | ( | double & | numerator, |
double & | denominator | ||
) | const |
Returns the custom print scale for this PlotSettings object (DXF 142, 143).
numerator | [in] Receives PaperSpace units. |
denominator | [in] Receives media units. |
double OdDbPlotSettings::getLeftMargin | ( | ) | const |
Returns the left margin of the paper for this PlotSettings object (DXF 40).
OdGePoint2d OdDbPlotSettings::getPaperImageOrigin | ( | ) | const |
Returns the paper image origin of the paper for this PlotSettings object (DXF 148, 149).
OdString OdDbPlotSettings::getPlotCfgName | ( | ) | const |
Returns the name of the system printer or plot configuration file for this PlotSettings object (DXF 2).
void OdDbPlotSettings::getPlotOrigin | ( | double & | xCoordinate, |
double & | yCoordinate | ||
) | const |
Returns the plot origin offset for this PlotSettings object (DXF 46, 47).
xCoordinate | [out] Receives the X-coordinate of the origin offset. |
yCoordinate | [out] Receives the Y-coordinate of the origin offset. |
void OdDbPlotSettings::getPlotPaperMargins | ( | double & | leftMargin, |
double & | bottomMargin, | ||
double & | rightMargin, | ||
double & | topMargin | ||
) | const |
Returns the margins of the paper for this PlotSettings object.
leftMargin | [out] Receives the left margin. |
bottomMargin[out] | Receives the bottom margin. |
rightMargin | [out] Receives the right margin. |
topMargin | [out] Receives the top margin. |
void OdDbPlotSettings::getPlotPaperSize | ( | double & | paperWidth, |
double & | paperHeight | ||
) | const |
Returns the size of the paper for this PlotSettings object (DXF 44, 45).
OdString OdDbPlotSettings::getPlotSettingsName | ( | ) | const |
Returns the name of this PlotSettings object (DXF 1).
OdString OdDbPlotSettings::getPlotViewName | ( | ) | const |
Returns the plot view name for this PlotSettings object (DXF 6).
void OdDbPlotSettings::getPlotWindowArea | ( | double & | xMin, |
double & | yMin, | ||
double & | xMax, | ||
double & | yMax | ||
) | const |
Returns the corners of the plot window area for this PlotSettings object (DXF 48, 49, 140, 141).
xMin | [in] Receives the X-coordinate of the lower-left corner. |
yMin | [in] Receives the Y-coordinate of the lower-left corner. |
xMax | [in] Receives the X-coordinate of the upper-right corner. |
yMax | [in] Receives the Y-coordinate of the upper-right corner. |
double OdDbPlotSettings::getRightMargin | ( | ) | const |
Returns the right margin of the paper for this PlotSettings object (DXF 42).
void OdDbPlotSettings::getStdScale | ( | double & | standardScale | ) | const |
Returns the standard scale, as a floating point value, for this PlotSettings object (DXF 147).
standardScale | [out] Receives the standard scale. |
double OdDbPlotSettings::getTopMargin | ( | ) | const |
Returns the top margin of the paper for this PlotSettings object (DXF 43).
bool OdDbPlotSettings::modelType | ( | ) | const |
Returns true if and only if this PlotSettings object is of ModelSpace type (DXF 70, bit 0x400).
OdDbPlotSettings::ODDB_DECLARE_MEMBERS | ( | OdDbPlotSettings | ) |
bool OdDbPlotSettings::plotAsRaster | ( | ) | const |
Controls whether the output is raster-based when using shade plot settings of a viewport.
bool OdDbPlotSettings::plotCentered | ( | ) | const |
Returns true if an only if the plot is to be centered for this PlotSettings object (DXF 70, bit 0x04).
bool OdDbPlotSettings::plotHidden | ( | ) | const |
Returns true if and only if the hidden line removal algorithm is to be applied to PaperSpace entities for this PlotSettings object (DXF 70, bit 0x08).
OdDbPlotSettings::PlotPaperUnits OdDbPlotSettings::plotPaperUnits | ( | ) | const |
Returns the plot paper units used for margins, offsets, paper size, and drawing units of this PlotSettings object (DXF 72).
Value Description kInches 0 Inches kMillimeters 1 Millimeters kPixels 2 Pixels
bool OdDbPlotSettings::plotPlotStyles | ( | ) | const |
Returns whether plotstyles are applied for this PlotSettings object (DXF 70, bit 0x20).
OdDbPlotSettings::PlotRotation OdDbPlotSettings::plotRotation | ( | ) | const |
Returns the plot rotation for this PlotSettings object (DXF 73).
Value Description k0degrees 0 No rotation k90degrees 1 90° CCW k180degrees 2 Inverted° k270degrees 3 90° CW
bool OdDbPlotSettings::plotTransparency | ( | ) | const |
Returns true if and only if transparencies plotting is enabled for this OdDbRenderSettings object.
OdDbPlotSettings::PlotType OdDbPlotSettings::plotType | ( | ) | const |
Returns the plot type for this PlotSettings Object (DXF 74).
Value Description kDisplay 0 Display kExtents 1 Extents kLimits 2 Limits kView 3 View kWindow 4 Window kLayout 5 Layout
bool OdDbPlotSettings::plotViewportBorders | ( | ) | const |
Returns whether viewport borders are plotted for this PlotSettings object (DXF 70, bit 0x01).
bool OdDbPlotSettings::plotWireframe | ( | ) | const |
Controls whether the output is vector-based when using shade plot settings of a viewport.
bool OdDbPlotSettings::printLineweights | ( | ) | const |
Returns true if an only if lineweights are printed for this PlotSettings object (DXF 70, bit 0x80).
bool OdDbPlotSettings::scaleLineweights | ( | ) | const |
Returns true if an only if lineweights are scaled for this PlotSettings object (DXF 70, bit 0x40).
void OdDbPlotSettings::setDrawViewportsFirst | ( | bool | drawViewportsFirst | ) |
Controls the plotting of viewports before other objects in PaperSpace for this PlotSettings object (DXF 70, bit 0x200).
drawViewportsFirst | [in] True if and only if viewports are to be plotted first. |
void OdDbPlotSettings::setModelType | ( | bool | modelType | ) |
Controls the ModelSpace type of this PlotSettings object (DXF 70, bit 0x400).
modelType | [in] True if and only if it is of ModelSpace type. |
void OdDbPlotSettings::setPaperImageOrigin | ( | OdGePoint2d | paperImageOrigin | ) |
Sets the paper image origin (DXF 148, 149).
paperImageOrigin | [in] Paper image origin. |
void OdDbPlotSettings::setPlotHidden | ( | bool | plotHidden | ) |
Controls the application of the hidden line removal algorithm to PaperSpace entities for this PlotSettings object (DXF 70, bit 0x08).
plotHidden | [in] True if and only hidden lines are to be removed. |
void OdDbPlotSettings::setPlotPlotStyles | ( | bool | plotPlotStyles | ) |
Controls whether plotstyles are applied for this PlotSettings object (DXF 70, bit 0x20).
plotPlotStyles | [in] True if and only if plot styles are to be plotted. |
Sets the name of this PlotSettings object (DXF 1).
plotSettingsName | [in] PlotSettings name. |
void OdDbPlotSettings::setPlotTransparency | ( | bool | bSet | ) |
Enables or disables transparencies plotting for this OdDbRenderSettings object.
bSet | [in] New transparencies plotting setting. |
void OdDbPlotSettings::setPlotViewportBorders | ( | bool | plotViewportBorders | ) |
Controls whether viewport borders are plotted for this PlotSettings object (DXF 70, bit 0x01).
plotViewportBorders | [in] True if and only if viewport borders are to be plotted. |
void OdDbPlotSettings::setPrintLineweights | ( | bool | printLineweights | ) |
Controls the printing of lineweights for this PlotSettings object (DXF 70, bit 0x80).
printLineweights | [in] True if and only if lineweights are to be printed. |
void OdDbPlotSettings::setScaleLineweights | ( | bool | scaleLineweights | ) |
Controls the scaling of lineweights for this PlotSettings object (DXF 70, bit 0x40).
scaleLineweights | [in] True if and only if lineweights are to be scaled. |
OdResult OdDbPlotSettings::setShadePlot | ( | OdDbPlotSettings::ShadePlotType | shadePlot | ) |
Sets the shade plot type for this PlotSettings object (DXF 76).
shadePlot | [in] Shade Plot type. |
Value Description kAsDisplayed 0 As displayed kWireframe 1 Wireframe kHidden 2 Hidden lines removed kRendered 3 Rendered
OdResult OdDbPlotSettings::setShadePlot | ( | OdDbPlotSettings::ShadePlotType | type, |
OdDbObjectId | shadePlotId | ||
) |
Sets the shade plot type for this PlotSettings object (DXF 76).
type | [in] Shade Plot type. |
Value Description kAsDisplayed 0 As displayed kWireframe 1 Wireframe kHidden 2 Hidden lines removed kRendered 3 Rendered
Sets the shade plot custom DPI for this PlotSettings object.
shadePlotCustomDPI | [in] Shade plot custom DPI. |
void OdDbPlotSettings::setShadePlotResLevel | ( | OdDbPlotSettings::ShadePlotResLevel | shadePlotResLevel | ) |
Sets the shade plot resolution level for this PlotSettings object.
shadePlotResLevel | [in] Shade plot resolution level. |
shadePlotResLevel must be one of the following:
Value Description kDraft 0 Draft kPreview 1 Preview kNormal 2 Normal kPresentation 3 Presentation kMaximum 4 Maximum kCustom 5 Custom
void OdDbPlotSettings::setShowPlotStyles | ( | bool | showPlotStyles | ) |
Controls whether plotstyles display for this PlotSettings object during layout mode (DXF 70, bit 0x02).
showPlotStyles | [in] True if and only if plot styles are to be shown. |
OdDbPlotSettings::ShadePlotType OdDbPlotSettings::shadePlot | ( | ) | const |
Returns the shade plot type for this PlotSettings object (DXF 76).
Value Description kAsDisplayed 0 As displayed kWireframe 1 Wireframe kHidden 2 Hidden lines removed kRendered 3 Rendered
OdInt16 OdDbPlotSettings::shadePlotCustomDPI | ( | ) | const |
Returns the shade plot custom DPI for this PlotSettings object.
OdDbObjectId OdDbPlotSettings::shadePlotId | ( | ) | const |
Returns the OdDbObjectId of the OdDbVisualStyle or OdDbRenderSettings object referenced by this object.
OdDbPlotSettings::ShadePlotResLevel OdDbPlotSettings::shadePlotResLevel | ( | ) | const |
Returns the shade plot resolution level for this PlotSettings object.
shadePlotResLevel() returns one of the following:
Value Description kDraft 0 Draft kPreview 1 Preview kNormal 2 Normal kPresentation 3 Presentation kMaximum 4 Maximum kCustom 5 Custom
bool OdDbPlotSettings::showPlotStyles | ( | ) | const |
Returns whether plotstyles display for this PlotSettings object during layout mode (DXF 70, bit 0x02).
OdDbPlotSettings::StdScaleType OdDbPlotSettings::stdScaleType | ( | ) | const |
Returns the standard scale type for this PlotSettings object (DXF 75).
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'
|
virtual |
Called as the first operation as this object is being closed, for database -resident objects only.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subClose().
3) If other actions are required before close, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
Reimplemented in OdDbLayout.
|
virtual |
Called as the first operation as this object is being erased or unerased.
erasing | [in] A copy of the erasing argument passed to erase(). |
Returns eOk if and only if erase() is to continue.
When overriding this function:
1) If the OdDbObject's state is incorrect, return something other than eOk.
2) If the parent class's subErase() returns anything other than eOk, immediately return it.
3) If other actions are required before erase, do them.
4) Return eOk.
If you must make changes to this object's state, either make them after step 2, or roll them back if step 2 returns other than eOk.
The default implementation of this function does nothing but return eOk. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
Reimplemented from OdDbObject.
Reimplemented in OdDbLayout.
|
virtual |
Called as the first operation of the handOverTo function.
pNewObject | [in] Pointer to the object with which to replace this object in the database. |
This function is notified just before an object is to be handed over; giving this function the ability to cancel the handover.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subHandover().
3) If other actions are required before handover, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
bool OdDbPlotSettings::useStandardScale | ( | ) | const |
Returns true if and only if this PlotSettings object uses a standard scale (DXF 70, bit 0x10).