CFx SDK Documentation
2020SP3
|
#include <DbViewTableRecord.h>
This class represents View records in the OdDbViewTable in an OdDbDatabase instance.
Definition at line 42 of file DbViewTableRecord.h.
OdDbViewTableRecord::OdDbViewTableRecord | ( | ) |
OdDbAnnotationScalePtr OdDbViewTableRecord::annotationScale | ( | ) | const |
OdDbObjectId OdDbViewTableRecord::camera | ( | ) | const |
void OdDbViewTableRecord::disassociateUcsFromView | ( | ) |
Disassociates any UCS associated with this View.
|
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 OdDbAbstractViewTableRecord.
|
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 OdDbAbstractViewTableRecord.
|
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 OdDbSymbolTableRecord.
|
virtual |
Reads the DXF R12 format data of this object.
pFiler | [in] Pointer to the filer from which data are to be 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 dxfInFields_R12(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfOutFields_R12(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.
|
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 OdDbSymbolTableRecord.
|
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). 3) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbSymbolTableRecord.
OdString OdDbViewTableRecord::getCategoryName | ( | ) | const |
Returns the name of the category of this View.
OdString OdDbViewTableRecord::getLayerState | ( | ) | const |
Returns the name of the layer state of this View.
OdDbObjectId OdDbViewTableRecord::getLayout | ( | ) | const |
Returns the Object ID of the OdDbLayout of this View.
void OdDbViewTableRecord::getThumbnail | ( | OdBinaryData * | pThumbnail | ) | const |
Returns the thumbnail information for this view.
pThumbnail | [out] Receives a pointer to the thumbnail. |
bool OdDbViewTableRecord::isCameraPlottable | ( | ) | const |
bool OdDbViewTableRecord::isPaperspaceView | ( | ) | const |
Returns true if and only if this View is a Paper Space view (DXF 70, bit 0x01).
bool OdDbViewTableRecord::isUcsAssociatedToView | ( | ) | const |
Returns true if and only if there is a UCS associated with this View.
bool OdDbViewTableRecord::isViewAssociatedToViewport | ( | ) | const |
Returns true if and only if this View is associated with a Paper Space Viewport.
OdDbObjectId OdDbViewTableRecord::liveSection | ( | ) | const |
OdDbViewTableRecord::ODDB_DECLARE_MEMBERS | ( | OdDbViewTableRecord | ) |
OdResult OdDbViewTableRecord::setAnnotationScale | ( | const OdDbAnnotationScale * | pScaleObj | ) |
void OdDbViewTableRecord::setCamera | ( | const OdDbObjectId & | cameraId | ) |
Sets the name of the category of this View.
categoryName | [in] Category name. |
void OdDbViewTableRecord::setIsCameraPlottable | ( | bool | plottable | ) |
void OdDbViewTableRecord::setIsPaperspaceView | ( | bool | pspaceView | ) |
Controls if this View is a Paper Space view (DXF 70, bit 0x01).
pspaceView | [in] True for Paper Space, false for Model space. |
Sets the name of the layer state of this View.
layerStateName | [in] Layer State name. |
void OdDbViewTableRecord::setLayout | ( | OdDbObjectId | layoutId | ) |
Sets the Object ID of the Layout of this View.
layoutId | [in] Layout ID. |
void OdDbViewTableRecord::setLiveSection | ( | const OdDbObjectId & | liveSectionId | ) |
void OdDbViewTableRecord::setThumbnail | ( | const OdBinaryData * | pThumbnail | ) |
Sets the thumbnail information for this view.
pThumbnail | [in] Pointer to the thumbnail. |
void OdDbViewTableRecord::setViewAssociatedToViewport | ( | bool | viewAssociated | ) |
Controls if this View is associated with a Viewport.
viewAssociated | [in] Controls association. |
|
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 from OdDbObject.
|
virtual |
Called as the first operation of swapIdWith
otherId | [in] Object ID to be swapped with this object's Object ID. |
swapXdata | [in] If and only if true, extended data are swapped. |
swapExtDict | [in] If and only if true, extension dictionaries are swapped. |
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subSwapIdWith().
3) If other actions are required before swapping IDs, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbSymbolTableRecord.