|
CFx SDK Documentation 2026 SP0
|
#include <DbModelDocViewStyle.h>
Protected Types | |
| enum | { kCanRename = 1 } |
Protected Member Functions | |
| OdDbModelDocViewStyle () | |
| virtual OdResult | dwgInFields (OdDbDwgFiler *pFiler) |
| virtual void | dwgOutFields (OdDbDwgFiler *pFiler) const |
| virtual OdResult | dxfInFields (OdDbDxfFiler *pFiler) |
| virtual void | dxfOutFields (OdDbDxfFiler *pFiler) const |
| virtual OdResult | subOpen (OdDb::OpenMode mode) ODRX_OVERRIDE |
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 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
| virtual OdUInt32 | subRegenSupportFlags () const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
| static void | rxInit () |
| static void | rxUninit () |
Protected Attributes inherited from OdDbObject | |
| OdDbObjectImpl * | m_pImpl |
Corresponding C++ library: TD_Db <group OdDb_Classes>
Definition at line 35 of file DbModelDocViewStyle.h.
|
protected |
| Enumerator | |
|---|---|
| kCanRename | |
Definition at line 224 of file DbModelDocViewStyle.h.
Defines the attachment point for the model documentation view label text.
| Enumerator | |
|---|---|
| kAboveView | |
| kBelowView | |
Definition at line 47 of file DbModelDocViewStyle.h.
Defines the alignment for the model documentation view label text.
| Enumerator | |
|---|---|
| kTextAlignmentLeft | |
| kTextAlignmentCenter | |
| kTextAlignmentRight | |
Definition at line 55 of file DbModelDocViewStyle.h.
|
protected |
|
pure virtual |
| bool OdDbModelDocViewStyle::canRename | ( | ) | const |
| OdString OdDbModelDocViewStyle::defaultViewName | ( | int | index | ) | const |
Returns the default view name based on the specified index.
| index | [in] Index of default name. |
|
virtual |
Returns the description of this view style.
|
protectedvirtual |
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 OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
protectedvirtual |
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 OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
protectedvirtual |
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 OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
protectedvirtual |
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 OdDbDetailViewStyle, and OdDbSectionViewStyle.
| OdString OdDbModelDocViewStyle::getDisplayName | ( | ) | const |
Calculates a view label's position.
| offsetVector | [out] Offset (vector) of the view label. |
| textAlignment | [out] Text alignment of the view label. |
| attachment | [in] Use with the offset argument to specify label position. |
| offset | [in] Use with the attachment argument to specify label position. |
| minPt | [in] Point located in the lower left corner of the view's bounding box. |
| maxPt | [in] Point located in the upper right corner of the view's bounding box. |
Sets the position of a view label.
| pMText | [in] Pointer to MText object to be positioned as a label. |
| attachment | [in] Use with the offset argument to specify label position. |
| offset | [in] Use with the attachment argument to specify label position. |
| minPt | [in] Point located in the lower left corner of the view's bounding box. |
| maxPt | [in] Point located in the upper right corner of the view's bounding box. |
Updates the position of a view label.
| pMText | [in] Pointer to MText object to be positioned as a label. |
| attachment | [in] Specifies whether the label is attached. |
| minPt | [in] Point located in the lower left corner of the view's bounding box. |
| maxPt | [in] Point located in the upper right corner of the view's bounding box. |
|
virtual |
Returns the name of this OdDbModelDocViewStyle object.
| bool OdDbModelDocViewStyle::isModifiedForRecompute | ( | ) | const |
Specifies whether properties were changed.
\returns
True if properties were changed; returns false otherwise.
| bool OdDbModelDocViewStyle::isViewNameValid | ( | const OdString & | name | ) | const |
Checks whether a label name is valid.
| name | [in] Label name to check. |
| OdDbModelDocViewStyle::ODDB_DECLARE_MEMBERS | ( | OdDbModelDocViewStyle | ) |
|
pure virtual |
Includes this view style object in a OdDbDatabase object.
| pDb | [in] Pointer of the database to receive the OdDbModelDocViewStyle object. |
| styleName | [in] Name of the view style. |
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
| OdResult OdDbModelDocViewStyle::setCanRename | ( | bool | canRename | ) |
|
virtual |
Sets defaults values for the properties of this view style.
Sets the description of this view style.
| description | [in] Description. |
Sets the name of this OdDbModelDocViewStyle object.
| name | [in] Name. |
|
protectedvirtual |
Notification function called by the Teigha framework immediately before an object is opened.
| mode | [in] Mode in which the object is being opened. |
Returns eOk if and only if open() is to continue.
Overriding this function in a child class allows a child instance to be notified each time an object is opened.
When overriding this function:
1) If the OdDbObject's state is incorrect, return something other than eOk.
2) If the parent class's subOpen() returns anything other than eOk, immediately return it.
3) If other actions are required before open, do them.
4) Return eOk.
The default implementation of this function does nothing but return eOk. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
|
pure virtual |
Returns the view label's text alignment.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
pure virtual |
Returns the view label's attachment.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
pure virtual |
Returns the view label's offset.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
pure virtual |
Returns the view label's pattern.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
pure virtual |
Returns the view label's color.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
pure virtual |
Returns the view label's text height.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.
|
pure virtual |
Returns the object ID of the view label's text style.
Implemented in OdDbDetailViewStyle, and OdDbSectionViewStyle.