CFx SDK Documentation
2022 SP0
|
#include <DbObject.h>
Protected Member Functions | |
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 |
Protected Attributes | |
OdDbObjectImpl * | m_pImpl |
Friends | |
class | OdDbSystemInternals |
class | OdDbObjectOverrule |
class | OdDbPropertiesOverrule |
class | OdDbObjectImpl |
This class is the base class for all objects contained in an OdDbDatabase instance (OdDb objects).
Creating and Deleting Database Objects
Database objects are normally created by calling OdDbXXXXX::createObject(). When an object is created, it will be in kOpenForWrite mode. The delete operator should never be called on database objects. Instead, erase() should be called, which marks the object as erased. OdDbObject instances should be created by calling the createObject() method. OdDbObject instances are created in kOpenForWrite mode.
Depending on other OdDbObject instances while constructing or deleting instances is prohibited. OdDbObject instances should be deleted from an OdDbDatabase with erase(). Never access a pointer to a closed object. The delete operator must never be called on OdDbObject instances. Instead, the erase() method should be called, which marks this object as erased.
Accessing Database Objects
Database objects must be opened before they can be accessed.
Given a valid OdDbObjectId, a database object is opened by calling OdDbObjectId::safeOpenObject().
Database objects should be opened in the most restrictive mode possible, and should be released immediately when access is no longer needed.
Object may be opened in any one of the following modes:
Description OdDb::kForRead Allows operations that do not modify this object.
A database object can be opened in this mode any number of times (simultaneously), if has not open in OdDb::kForWrite or OdDb::kForNotify mode.
An exception will be thrown if any type of write operation is attempted on an object open in this mode. OdDb::kForWrite Allows read and write operations to be performed on this object.
An database object can be opened in this mode only if it is not already open in any mode. OdDb::kForNotify This object is opened for notification purposes.
A database object can be opened in this mode so long as it is not already open in kNotify mode.
Corresponding C++ library: TD_Db
<group OdDb_Classes>
Definition at line 210 of file DbObject.h.
|
protected |
OdDbObject::~OdDbObject | ( | ) |
|
virtual |
Adds the specified persistent reactor to this object's reactor list.
objId | [in] Object ID of the persistent reactor. |
If the persistent reactor does not have an owner, it isn't saved with the drawing. Non-graphical objects used as persistent reactors are typically stored in a dictionary in the Named Objects Dictionary or in an extension dictionary associated with some object.
void OdDbObject::addReactor | ( | OdDbObjectReactor * | pReactor | ) | const |
Adds the specified transient reactor to this object's reactor list.
pReactor | [in] Pointer to the transient reactor object. |
|
virtual |
Increments the reference count of this object.
Implements OdRxObject.
|
virtual |
This function appends this object to the specified owner object.
idPair | [in] ID pair to append. |
pOwnerObject | [in] Pointer to the owner object. |
ownerIdMap | [in/out] Owner's ID map. |
This function is used internally to subDeepClone() and subWblockClone().
Throws:
Cause eInvalidOwnerObject !pOwnerObject->get()
Reimplemented in OdDbScale, OdDbDimension, OdDbTable, OdDbSymbolTableRecord, OdDbMlineStyle, OdDbLayout, OdDbHatch, OdDbGroup, OdDbEntity, and OdDbAttributeDefinition.
|
virtual |
Notification function called each time an Undo operation is performed this object is using partial Undo.
pUndoFiler | [in] A pointer to the undo filer with the partial undo information. |
pClassObj | [in] A pointer to the OdRxClass object for the class that will handle the Undo. |
This member function must know which types of fields to scan, and must stop after reading what it it needs.
If the class type specified by pClassObj does not matches the class of this object, this member function must call the parent class's applyPartialUndo() and return whatever it returns.
If it does match the class of this object, this member function must use pUndoFiler to read the undo data, then typically use this object's set() method.
Throws:
Cause eNotThatKindOfClass pClassObj != OdDbObject::desc()
Reimplemented in OdDbLongTransaction, OdDbEntity, OdDbDatabase, OdDbEvalGraph, CFxBIMDatabaseReference, OdDbScale, OdDbDictionary, OdDbBlockTableRecord, and OdDbBlockTable.
void OdDbObject::assertNotifyEnabled | ( | ) | const |
Throws an exception if this object is not open OdDb::kForNotify.
Throws:
Cause eInvalidOpenState !isNotifyEnabled()
void OdDbObject::assertReadEnabled | ( | ) | const |
Throws an exception if this object is not open OdDb::kForRead.
Throws:
Cause eNotOpenForRead !isReadEnabled()
Throws an exception if this object is not open OdDb::kForWrite, and controls automatic undo and notification of modifications.
autoUndo | [in] Specifies if automatic undo should be done. |
recordModified | [in] Specifies if graphics are to be updated, and "openedForModify", "modified" and "modifiedGraphics" notifications are to be sent. |
Throws:
Cause eNotOpenForWrite !isWriteEnabled()
|
virtual |
Perform an audit operation on this object.
pAuditInfo | [in] Pointer to an OdDbAuditInfo object. |
When overriding this function for a custom class, first call OdDbObject::audit(pAuditInfo) to validate the audit operation.
Reimplemented in OdDbDatabase.
void OdDbObject::cancel | ( | ) |
Discard changes since the object was opened for modify
|
virtual |
After loading from file, performs necessary actions which require accessing other Database objects. For example, processing round-trip data.
format | [in] File type. |
version | [in] Drawing version of file loaded. |
pAuditInfo | [in] Pointer to an OdDbAuditInfo object. Can be Null. Not Null if drawing is being loaded in Recover mode. If so, audit() will be called later. |
Being overridden in custom classes, the function first should call the parent class method. Parent class implementation takes care of parent class round-trip data and other actions which require access to other objects.
void OdDbObject::convertForSave | ( | OdDb::DwgVersion | ver | ) |
The method should be called from decomposeForSave() of custom container objects for owned child objects. It calls child's decomposeForSave() method plus performs other required actions (handOverTo, exchanging XData, etc.)
ver | [in] Drawing version to save as. |
|
virtual |
Notification function called whenever the notifying object has had its clone() member function called.
pObject | [in] Pointer to the notifying object. |
pNewObject | [in] Pointer to the object resulting from the copy. |
Reimplemented in OdDbGroup, and OdDbDimAssoc.
|
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 OdRxObject.
Reimplemented in OdDbMLeaderObjectContextData, OdDbLeaderObjectContextData, OdDbHatchViewContextData, OdDbHatchScaleContextData, OdDbFcfObjectContextData, OdDbBlockReference, CFxBIMMaterial, OdDbMLeader, OdDbViewportTableRecord, OdDbTable, OdDbSymbolTableRecord, OdDbPlotSettings, OdDbRadialDimensionLargeObjectContextData, OdDbRadialDimensionObjectContextData, OdDbOrdinateDimensionObjectContextData, OdDbDiametricDimensionObjectContextData, OdDbAngularDimensionObjectContextData, OdDbAlignedDimensionObjectContextData, OdDbMTextObjectContextData, OdDbLinkedTableData, OdDbEntity, OdDbAbstractViewTableRecord, OdDbEvalGraph, OdDbBlockTableRecord, OdDbDimensionObjectContextData, OdDbBlkRefObjectContextData, OdDbMTextAttributeObjectContextData, and OdDbTextObjectContextData.
void OdDbObject::createExtensionDictionary | ( | ) |
Creates an OdDbDictionary extension dictionary of this object.
An object owns its extension dictionary.
OdDbXrecordPtr OdDbObject::createXrecord | ( | const OdString & | xrecordName, |
OdDb::DuplicateRecordCloning | style = OdDb::kDrcIgnore |
||
) |
Creates or retrieves the specified Xrecord in this object's extension dictionary.
xrecordName | [in] Xrecord name. |
style | [in] Merge style. |
If the extension dictionary has been erased, it is unerased. If the extension dictionary does not exist, it is created. If the specified Xrecord does not exist, it is created.
OdDbDatabase* OdDbObject::database | ( | ) | const |
Returns the OdDbDatabase that contains this object.
|
virtual |
Determines the behavior for custom objects when saving to .dwg or .dxf file.
ver | [in] Drawing version to save as. |
replaceId | [out] Object ID of the object replacing this object. |
exchangeXData | [out] Set to true if and only if this function did not add XData to the replacement object. |
Returns an OdDbObjectPtr for a non- database -resident (NDBRO) replacement object, setting replaceId to OdDbObjectId::kNull. Returns NULL, setting replaceId for a database -resident (DBRO) replacement object.
Custom objects can decompose themselves into other objects, adding additional XData as required. Teigha transfers XData from this object to the replacement object if and only if exchangeXData is true.
The default implementation returns NULL and sets replaceId to OdDbObjectId::kNull. This function can be overridden in custom classes.
The method is not intended to be called by client code. For processing owned objects use convertForSave() method.
Reimplemented in OdDbFcf, OdDbSurface, OdDbSubDMesh, OdDbSpline, OdDbRegion, OdDbHatch, OdDbBody, and OdDb3dSolid.
|
virtual |
Determines the behavior for custom objects when saving to .dwg or .dxf file.
format | [in] File type. |
ver | [in] Drawing version to save as. |
replaceId | [out] Object ID of the object replacing this object. |
exchangeXData | [out] Set to true if and only if this function did not add XData to the replacement object. |
Returns an OdDbObjectPtr for a non- database -resident (NDBRO) replacement object, setting replaceId to OdDbObjectId::kNull. Returns NULL, setting replaceId for a database -resident (DBRO) replacement object.
Custom objects can decompose themselves into other objects, adding additional XData as required. Teigha transfers XData from this object to the replacement object if and only if exchangeXData is true.
The default implementation returns NULL and sets replaceId to OdDbObjectId::kNull. This function can be overridden in custom classes.
The method is not intended to be called by client code. For processing owned objects use convertForSave() method.
ODRX_SEALED_VIRTUAL OdDbObjectPtr OdDbObject::deepClone | ( | OdDbIdMapping & | ownerIdMap, |
OdDbObject * | pOwner, | ||
bool | bPrimary = true |
||
) | const |
Performs a deep clone of this object.
ownerIdMap | [in] Owner's ID map. |
If the cloning operation fails, a null SmartPointer is returned.
A deep clone is a clone of this object and everything it owns.
This function should not be called by client code; use OdDbDatabase::deepCloneObjects() instead.
This function can be overridden in custom classes.
The default implementation of this function appends the cloned object to the specified owner object.
void OdDbObject::disableUndoRecording | ( | bool | disable | ) |
Controls the undo recording of this object in OdDbDatabase.
disable | [in] Boolean to control undo recording. |
void OdDbObject::downgradeOpen | ( | ) |
Downgrades this object from OdDb::kForWrite to OdDb::kForRead
|
virtual |
Returns a pointer to the OdGiDrawable for the object. If the object doesn't have an associated OdGiDrawable object, this function returns NULL.
Reimplemented in OdDbVisualStyle, OdDbViewportTableRecord, OdDbSun, OdDbRenderEnvironment, OdDbRenderSettings, OdDbMaterial, OdDbLinetypeTableRecord, OdDbLayerTableRecord, OdDbEntity, OdDbBlockTableRecord, OdDbBackground, and OdDbAbstractViewTableRecord.
void OdDbObject::dwgIn | ( | OdDbDwgFiler * | pFiler | ) |
Reads the .dwg file format data of this object from the specified file.
pFiler | [in] Pointer to the filer from which the data are to be read. |
|
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 in CFxBIMStorage, CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMMaterial, CFxBIMEntityReference, CFxBIMEntity, CFxBIMDatabaseReference, CFxBIMDatabase, OdDbViewRepBlockReference, OdDbWipeout, OdDbScale, OdDbRasterImage, OdDbPolyline, OdDbFcf, OdDbEvalGraph, OdDbDimAssoc, OdDbBlockTableRecord, OdVLObject, OdDbShWedge, OdDbShTorus, OdDbShSweep, OdDbShSubentMaterial, OdDbShSubentColor, OdDbShSphere, OdDbShRevolve, OdDbShPyramid, OdDbShPrimitive, OdDbShLoft, OdDbShHistoryNode, OdDbShHistory, OdDbShFillet, OdDbShExtrusion, OdDbShCone, OdDbShCylinder, OdDbShChamfer, OdDbShBrep, OdDbShBox, OdDbShBoolean, OdDbAssocPersSubentManager, RText, OdDbViewSymbol, OdDbViewRepStandard, OdDbViewRepSourceMgr, OdDbViewRepFusionSource, OdDbViewRepSource, OdDbViewRepSectionDefinition, OdDbViewRepProjectionDef, OdDbViewRepOrientationDef, OdDbViewRepOrientation, OdDbViewRepModelSpaceViewSelSet, OdDbViewRepModelSpaceSource, OdDbViewRepModelPlaneDef, OdDbViewRepInventorSource, OdDbViewRepImage, OdDbViewRepDetailDefinition, OdDbViewRepCutDefinition, OdDbViewRep, OdDbViewBorder, OdDbSynergyMappings, OdDbSectionSymbol, OdDbDetailSymbol, OdDbAssocProjectedEntityPersSubentIdHolder, OdDbDynamicBlockPurgePreventer, OdDbBlockRepresentationData, OdDbLSObject, OdDbXrecord, OdDbXline, OdDbWipeoutVariables, OdDbVisualStyle, OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewport, OdDbVbaProject, OdDbNavisworksReference, OdDbPdfReference, OdDbUnderlayReference, OdDbNavisworksDefinition, OdDbUnderlayDefinition, OdDbUCSTableRecord, OdDbTrace, OdDbTextStyleTableRecord, OdDbText, OdDbTableTemplate, OdDbTableStyle, OdDbTableContent, OdDbTable, OdDbSymbolTableRecord, OdDbSymbolTable, OdDbSweptSurface, OdDbSurface, OdDbSun, OdDbSubDMesh, OdDbSpline, OdDbSpatialIndex, OdDbSpatialFilter, OdDbSortentsTable, OdDbSolid, OdDbShape, OdDbSectionViewStyle, OdDbSectionManager, OdDbSectionSettings, OdDbSection, OdDbRotatedDimension, OdDbRevolvedSurface, OdDbRenderEntry, OdDbRenderGlobal, OdDbRenderEnvironment, OdDbRapidRTRenderSettings, OdDbMentalRayRenderSettings, OdDbRenderSettings, OdDbRegion, OdDbRegAppTableRecord, OdDbRay, OdDbRasterVariables, OdDbRasterImageDefReactor, OdDbRasterImageDef, OdDbRadialDimensionLarge, OdDbRadialDimension, OdDbProxyObject, OdDbProxyEntity, OdDbPolygonMeshVertex, OdDbPolygonMesh, OdDbPolyFaceMeshVertex, OdDbPolyFaceMesh, OdDbPointCloudColorMap, OdDbPoint, OdDbPlotSettings, OdDbPlaneSurface, OdDbPersSubentManager, OdDbOrdinateDimension, OdDbOle2Frame, OdDbObjectContextData, OdDbNurbSurface, OdDbPointPath, OdDbCurvePath, OdDbMText, OdDbMPolygon, OdDbMotionPath, OdDbModelDocViewStyle, OdDbMlineStyle, OdDbMline, OdDbMLeaderStyle, OdDbMInsertBlock, OdDbMaterial, OdDbLongTransaction, OdDbLoftedSurface, OdDbLinkedTableData, OdDbLinkedData, OdDbLinetypeTableRecord, OdDbLinetypeTable, OdDbLine, OdDbLight, OdDbLeader, OdDbLayout, OdDbLayerTableRecord, OdDbLayerIndex, OdDbLayerFilter, OdDbIndex, OdDbIdBuffer, OdDbHelix, OdDbHatch, OdDbGroup, OdDbGeoPositionMarker, OdDbGeoData, OdDbFormattedTableData, OdDbField, OdDbFaceRecord, OdDbFace, OdDbExtrudedSurface, OdDbEvalExpr, OdDbEntity, OdDbEllipse, OdDbDimStyleTableRecord, OdDbDimStyleTable, OdDbDimension, OdDbDictionaryWithDefault, OdDbDictionaryVar, OdDbDictionary, OdDbDiametricDimension, OdDbDetailViewStyle, OdDbDataTable, OdDbDataLink, OdDbDatabase, OdDbColor, OdDbCircle, OdDbCamera, OdDbBody, OdDbBlockTable, OdDbBlockReference, OdDbBlockBegin, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, OdDbSolidBackground, OdDbAttributeDefinition, OdDbAttribute, OdDbArcDimension, OdDbArcAlignedText, OdDbArc, OdDbAlignedDimension, OdDbAbstractViewTableRecord, OdDb3PointAngularDimension, OdDb3dSolid, OdDb3dPolylineVertex, OdDb3dPolyline, OdDb2LineAngularDimension, OdDb2dVertex, OdDb2dPolyline, OdDbMLeader, OdDbPointCloudEx, OdDbPointCloudDefReactorEx, OdDbPointCloudDefEx, OdDbPointCloudDefReactor, OdDbPointCloudDef, OdDbPointCloud, OdDbBreakPointRef, and OdDbBreakData.
void OdDbObject::dwgOut | ( | OdDbDwgFiler * | pFiler | ) | const |
Writes the .dwg file format data of this object to the specified filer.
pFiler | [in] Pointer to the filer to which the data are to be written. |
|
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 in CFxBIMStorage, CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMMaterial, CFxBIMEntityReference, CFxBIMEntity, CFxBIMDatabaseReference, CFxBIMDatabase, OdDbViewRepBlockReference, OdDbWipeout, OdDbScale, OdDbRasterImage, OdDbPolyline, OdDbFcf, OdDbEvalGraph, OdDbDimAssoc, OdDbBlockTableRecord, OdVLObject, OdDbShWedge, OdDbShTorus, OdDbShSweep, OdDbShSubentMaterial, OdDbShSubentColor, OdDbShSphere, OdDbShRevolve, OdDbShPyramid, OdDbShPrimitive, OdDbShLoft, OdDbShHistoryNode, OdDbShHistory, OdDbShFillet, OdDbShExtrusion, OdDbShCone, OdDbShCylinder, OdDbShChamfer, OdDbShBrep, OdDbShBox, OdDbShBoolean, OdDbAssocPersSubentManager, RText, OdDbViewSymbol, OdDbViewRepStandard, OdDbViewRepSourceMgr, OdDbViewRepFusionSource, OdDbViewRepSource, OdDbViewRepSectionDefinition, OdDbViewRepProjectionDef, OdDbViewRepOrientationDef, OdDbViewRepOrientation, OdDbViewRepModelSpaceViewSelSet, OdDbViewRepModelSpaceSource, OdDbViewRepModelPlaneDef, OdDbViewRepInventorSource, OdDbViewRepImage, OdDbViewRepDetailDefinition, OdDbViewRepCutDefinition, OdDbViewRep, OdDbViewBorder, OdDbSynergyMappings, OdDbSectionSymbol, OdDbDetailSymbol, OdDbAssocProjectedEntityPersSubentIdHolder, OdDbDynamicBlockPurgePreventer, OdDbBlockRepresentationData, OdDbLSObject, OdDbXrecord, OdDbXline, OdDbWipeoutVariables, OdDbVisualStyle, OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewport, OdDbVbaProject, OdDbNavisworksReference, OdDbUnderlayReference, OdDbNavisworksDefinition, OdDbUnderlayDefinition, OdDbUCSTableRecord, OdDbTrace, OdDbTextStyleTableRecord, OdDbText, OdDbTableTemplate, OdDbTableStyle, OdDbTableContent, OdDbTable, OdDbSymbolTableRecord, OdDbSymbolTable, OdDbSweptSurface, OdDbSurface, OdDbSun, OdDbSubDMesh, OdDbSpline, OdDbSpatialIndex, OdDbSpatialFilter, OdDbSortentsTable, OdDbSolid, OdDbShape, OdDbSectionViewStyle, OdDbSectionManager, OdDbSectionSettings, OdDbSection, OdDbRotatedDimension, OdDbRevolvedSurface, OdDbRenderEntry, OdDbRenderGlobal, OdDbRenderEnvironment, OdDbRapidRTRenderSettings, OdDbMentalRayRenderSettings, OdDbRenderSettings, OdDbRegion, OdDbRegAppTableRecord, OdDbRay, OdDbRasterVariables, OdDbRasterImageDefReactor, OdDbRasterImageDef, OdDbRadialDimensionLarge, OdDbRadialDimension, OdDbProxyObject, OdDbProxyEntity, OdDbPolygonMeshVertex, OdDbPolygonMesh, OdDbPolyFaceMeshVertex, OdDbPolyFaceMesh, OdDbPointCloudColorMap, OdDbPoint, OdDbPlotSettings, OdDbPlaneSurface, OdDbPersSubentManager, OdDbOrdinateDimension, OdDbOle2Frame, OdDbObjectContextData, OdDbNurbSurface, OdDbPointPath, OdDbCurvePath, OdDbMText, OdDbMPolygon, OdDbMotionPath, OdDbModelDocViewStyle, OdDbMlineStyle, OdDbMline, OdDbMLeaderStyle, OdDbMInsertBlock, OdDbMaterial, OdDbLongTransaction, OdDbLoftedSurface, OdDbLinkedTableData, OdDbLinkedData, OdDbLinetypeTableRecord, OdDbLinetypeTable, OdDbLine, OdDbLight, OdDbLeader, OdDbLayout, OdDbLayerTableRecord, OdDbLayerIndex, OdDbLayerFilter, OdDbIndex, OdDbIdBuffer, OdDbHelix, OdDbHatch, OdDbGroup, OdDbGeoPositionMarker, OdDbGeoData, OdDbFormattedTableData, OdDbField, OdDbFaceRecord, OdDbFace, OdDbExtrudedSurface, OdDbEvalExpr, OdDbEntity, OdDbEllipse, OdDbDimStyleTableRecord, OdDbDimStyleTable, OdDbDimension, OdDbDictionaryWithDefault, OdDbDictionaryVar, OdDbDictionary, OdDbDiametricDimension, OdDbDetailViewStyle, OdDbDataTable, OdDbDataLink, OdDbDatabase, OdDbColor, OdDbCircle, OdDbCamera, OdDbBody, OdDbBlockTable, OdDbBlockReference, OdDbBlockBegin, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, OdDbSolidBackground, OdDbAttributeDefinition, OdDbAttribute, OdDbArcDimension, OdDbArcAlignedText, OdDbArc, OdDbAlignedDimension, OdDbAbstractViewTableRecord, OdDb3PointAngularDimension, OdDb3dSolid, OdDb3dPolylineVertex, OdDb3dPolyline, OdDb2LineAngularDimension, OdDb2dVertex, OdDb2dPolyline, OdDbMLeader, OdDbPointCloudEx, OdDbPointCloudDefReactorEx, OdDbPointCloudDefEx, OdDbPointCloudDefReactor, OdDbPointCloudDef, OdDbPointCloud, OdDbBreakPointRef, and OdDbBreakData.
|
virtual |
Reads the DXF format data of this object from the specified filer.
pFiler | [in] Pointer to the filer from which the data are to be read. |
This function calls this object's dxfInFields(pFiler), then loads any Xdata associated with this object.
Reimplemented in OdDbViewportTable, OdDbTextStyleTableRecord, OdDbSymbolTable, OdDbSequenceEnd, OdDbProxyEntity, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbEntity, OdDbDictionaryVar, OdDbBlockTable, OdDbBlockReference, OdDbBlockBegin, OdDb3dPolyline, OdDb2dPolyline, and OdDbProxyObject.
|
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 in CFxBIMStorage, CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMMaterial, CFxBIMEntityReference, CFxBIMEntity, CFxBIMDatabaseReference, CFxBIMDatabase, OdDbViewRepBlockReference, OdDbWipeout, OdDbScale, OdDbRasterImage, OdDbPolyline, OdDbFcf, OdDbEvalGraph, OdDbDimAssoc, OdDbBlockTableRecord, OdVLObject, OdDbShWedge, OdDbShTorus, OdDbShSweep, OdDbShSubentMaterial, OdDbShSubentColor, OdDbShSphere, OdDbShRevolve, OdDbShPyramid, OdDbShPrimitive, OdDbShLoft, OdDbShHistoryNode, OdDbShHistory, OdDbShFillet, OdDbShExtrusion, OdDbShCone, OdDbShCylinder, OdDbShChamfer, OdDbShBrep, OdDbShBox, OdDbShBoolean, OdDbAssocPersSubentManager, RText, OdDbViewSymbol, OdDbViewRepStandard, OdDbViewRepSourceMgr, OdDbViewRepFusionSource, OdDbViewRepSource, OdDbViewRepSectionDefinition, OdDbViewRepProjectionDef, OdDbViewRepOrientationDef, OdDbViewRepOrientation, OdDbViewRepModelSpaceViewSelSet, OdDbViewRepModelSpaceSource, OdDbViewRepModelPlaneDef, OdDbViewRepInventorSource, OdDbViewRepImage, OdDbViewRepDetailDefinition, OdDbViewRepCutDefinition, OdDbViewRep, OdDbViewBorder, OdDbSynergyMappings, OdDbSectionSymbol, OdDbDetailSymbol, OdDbAssocProjectedEntityPersSubentIdHolder, OdDbDynamicBlockPurgePreventer, OdDbBlockRepresentationData, OdDbBlockVisibilityGrip, OdDbBlockLookupGrip, OdDbBlockRotationGrip, OdDbBlockPolarGrip, OdDbBlockXYGrip, OdDbLSObject, OdDbXrecord, OdDbXline, OdDbWipeoutVariables, OdDbVisualStyle, OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewport, OdDbVertex, OdDbVbaProject, OdDbNavisworksReference, OdDbPdfReference, OdDbUnderlayReference, OdDbNavisworksDefinition, OdDbUnderlayDefinition, OdDbUCSTableRecord, OdDbTrace, OdDbTextStyleTableRecord, OdDbText, OdDbTableTemplate, OdDbTableStyle, OdDbTableContent, OdDbTable, OdDbSymbolTableRecord, OdDbSymbolTable, OdDbSweptSurface, OdDbSurface, OdDbSun, OdDbSubDMesh, OdDbSpline, OdDbSpatialIndex, OdDbSpatialFilter, OdDbSortentsTable, OdDbSolid, OdDbShape, OdDbSectionViewStyle, OdDbSectionManager, OdDbSectionSettings, OdDbSection, OdDbRotatedDimension, OdDbRevolvedSurface, OdDbRenderEntry, OdDbRenderGlobal, OdDbRenderEnvironment, OdDbRapidRTRenderSettings, OdDbMentalRayRenderSettings, OdDbRenderSettings, OdDbRegion, OdDbRegAppTableRecord, OdDbRay, OdDbRasterVariables, OdDbRasterImageDefReactor, OdDbRasterImageDef, OdDbRadialDimensionLarge, OdDbRadialDimension, OdDbProxyObject, OdDbProxyEntity, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbPointCloudColorMap, OdDbPoint, OdDbPlotSettings, OdDbPlaneSurface, OdDbPlaceHolder, OdDbPersSubentManager, OdDbOrdinateDimension, OdDbOle2Frame, OdDbMLeaderObjectContextData, OdDbLeaderObjectContextData, OdDbHatchViewContextData, OdDbHatchScaleContextData, OdDbFcfObjectContextData, OdDbRadialDimensionLargeObjectContextData, OdDbRadialDimensionObjectContextData, OdDbOrdinateDimensionObjectContextData, OdDbDiametricDimensionObjectContextData, OdDbAngularDimensionObjectContextData, OdDbAlignedDimensionObjectContextData, OdDbDimensionObjectContextData, OdDbBlkRefObjectContextData, OdDbMTextAttributeObjectContextData, OdDbTextObjectContextData, OdDbMTextObjectContextData, OdDbAnnotScaleObjectContextData, OdDbObjectContextData, OdDbNurbSurface, OdDbPointPath, OdDbCurvePath, OdDbMText, OdDbMPolygon, OdDbMotionPath, OdDbModelDocViewStyle, OdDbMlineStyle, OdDbMline, OdDbMLeaderStyle, OdDbMInsertBlock, OdDbMaterial, OdDbLoftedSurface, OdDbLinkedTableData, OdDbLinkedData, OdDbLinetypeTableRecord, OdDbLine, OdDbLight, OdDbLeader, OdDbLayout, OdDbLayerTableRecord, OdDbLayerIndex, OdDbLayerFilter, OdDbIndex, OdDbIdBuffer, OdDbHelix, OdDbHatch, OdDbGroup, OdDbGeoPositionMarker, OdDbGeoData, OdDbFormattedTableData, OdDbFilter, OdDbField, OdDbFaceRecord, OdDbFace, OdDbExtrudedSurface, OdDbEvalExpr, OdDbEntity, OdDbEllipse, OdDbDimStyleTableRecord, OdDbDimStyleTable, OdDbDimension, OdDbDictionaryWithDefault, OdDbDictionaryVar, OdDbDictionary, OdDbDiametricDimension, OdDbDetailViewStyle, OdDbDataTable, OdDbDataLink, OdDbColor, OdDbCircle, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbBlockEnd, OdDbBlockBegin, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, OdDbSolidBackground, OdDbAttributeDefinition, OdDbAttribute, OdDbArcDimension, OdDbArcAlignedText, OdDbArc, OdDbAlignedDimension, OdDb3PointAngularDimension, OdDb3dSolid, OdDb3dPolyline, OdDb2LineAngularDimension, OdDb2dPolyline, OdDbMLeader, OdDbPointCloudEx, OdDbPointCloudDefReactorEx, OdDbPointCloudDefEx, OdDbPointCloudDefReactor, OdDbPointCloudDef, OdDbPointCloud, OdDbBreakPointRef, and OdDbBreakData.
|
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 in OdDbPolyline, OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewport, OdDbUCSTableRecord, OdDbTrace, OdDbTextStyleTableRecord, OdDbText, OdDbSymbolTable, OdDbSolid, OdDbShape, OdDbRotatedDimension, OdDbRegAppTableRecord, OdDbRadialDimension, OdDbPolygonMeshVertex, OdDbPolygonMesh, OdDbPolyFaceMeshVertex, OdDbPolyFaceMesh, OdDbPoint, OdDbOrdinateDimension, OdDbLinetypeTableRecord, OdDbLine, OdDbLayerTableRecord, OdDbFaceRecord, OdDbFace, OdDbEntity, OdDbDimStyleTableRecord, OdDbDimension, OdDbDiametricDimension, OdDbCircle, OdDbBlockReference, OdDbBlockEnd, OdDbBlockBegin, OdDbAttributeDefinition, OdDbAttribute, OdDbArc, OdDbAlignedDimension, OdDb3PointAngularDimension, OdDb3dPolylineVertex, OdDb3dPolyline, OdDb2LineAngularDimension, OdDb2dVertex, and OdDb2dPolyline.
|
virtual |
Writes the DXF format data of this object to the specified filer.
pFiler | [in] Pointer to the filer to which the data are to be written. |
Reimplemented in OdDbSymbolTable, OdDbShape, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbLinetypeTable, OdDbEntity, OdDbBlockReference, OdDb3dPolyline, and OdDb2dPolyline.
|
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 in CFxBIMStorage, CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMMaterial, CFxBIMEntityReference, CFxBIMEntity, CFxBIMDatabaseReference, CFxBIMDatabase, OdDbViewRepBlockReference, OdDbWipeout, OdDbScale, OdDbRasterImage, OdDbPolyline, OdDbFcf, OdDbEvalGraph, OdDbDimAssoc, OdDbBlockTableRecord, OdVLObject, OdDbShWedge, OdDbShTorus, OdDbShSweep, OdDbShSubentMaterial, OdDbShSubentColor, OdDbShSphere, OdDbShRevolve, OdDbShPyramid, OdDbShPrimitive, OdDbShLoft, OdDbShHistoryNode, OdDbShHistory, OdDbShFillet, OdDbShExtrusion, OdDbShCone, OdDbShCylinder, OdDbShChamfer, OdDbShBrep, OdDbShBox, OdDbShBoolean, OdDbAssocPersSubentManager, RText, OdDbViewSymbol, OdDbViewRepStandard, OdDbViewRepSourceMgr, OdDbViewRepFusionSource, OdDbViewRepSource, OdDbViewRepSectionDefinition, OdDbViewRepProjectionDef, OdDbViewRepOrientationDef, OdDbViewRepOrientation, OdDbViewRepModelSpaceViewSelSet, OdDbViewRepModelSpaceSource, OdDbViewRepModelPlaneDef, OdDbViewRepInventorSource, OdDbViewRepImage, OdDbViewRepDetailDefinition, OdDbViewRepCutDefinition, OdDbViewRep, OdDbViewBorder, OdDbSynergyMappings, OdDbSectionSymbol, OdDbDetailSymbol, OdDbAssocProjectedEntityPersSubentIdHolder, OdDbDynamicBlockPurgePreventer, OdDbBlockRepresentationData, OdDbBlockVisibilityGrip, OdDbBlockLookupGrip, OdDbBlockRotationGrip, OdDbBlockPolarGrip, OdDbBlockXYGrip, OdDbLSObject, OdDbXrecord, OdDbXline, OdDbWipeoutVariables, OdDbVisualStyle, OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewport, OdDbVertex, OdDbVbaProject, OdDbNavisworksReference, OdDbUnderlayReference, OdDbNavisworksDefinition, OdDbUnderlayDefinition, OdDbUCSTableRecord, OdDbTrace, OdDbTextStyleTableRecord, OdDbText, OdDbTableTemplate, OdDbTableStyle, OdDbTableContent, OdDbTable, OdDbSymbolTableRecord, OdDbSymbolTable, OdDbSweptSurface, OdDbSurface, OdDbSun, OdDbSubDMesh, OdDbSpline, OdDbSpatialIndex, OdDbSpatialFilter, OdDbSortentsTable, OdDbSolid, OdDbShape, OdDbSequenceEnd, OdDbSectionViewStyle, OdDbSectionManager, OdDbSectionSettings, OdDbSection, OdDbRotatedDimension, OdDbRevolvedSurface, OdDbRenderEntry, OdDbRenderGlobal, OdDbRenderEnvironment, OdDbRapidRTRenderSettings, OdDbMentalRayRenderSettings, OdDbRenderSettings, OdDbRegion, OdDbRegAppTableRecord, OdDbRay, OdDbRasterVariables, OdDbRasterImageDefReactor, OdDbRasterImageDef, OdDbRadialDimensionLarge, OdDbRadialDimension, OdDbProxyObject, OdDbProxyEntity, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbPointCloudColorMap, OdDbPoint, OdDbPlotSettings, OdDbPlaneSurface, OdDbPlaceHolder, OdDbPersSubentManager, OdDbOrdinateDimension, OdDbOle2Frame, OdDbMLeaderObjectContextData, OdDbLeaderObjectContextData, OdDbHatchViewContextData, OdDbHatchScaleContextData, OdDbFcfObjectContextData, OdDbRadialDimensionLargeObjectContextData, OdDbRadialDimensionObjectContextData, OdDbOrdinateDimensionObjectContextData, OdDbDiametricDimensionObjectContextData, OdDbAngularDimensionObjectContextData, OdDbAlignedDimensionObjectContextData, OdDbDimensionObjectContextData, OdDbBlkRefObjectContextData, OdDbMTextAttributeObjectContextData, OdDbTextObjectContextData, OdDbMTextObjectContextData, OdDbAnnotScaleObjectContextData, OdDbObjectContextData, OdDbNurbSurface, OdDbPointPath, OdDbCurvePath, OdDbMText, OdDbMPolygon, OdDbMotionPath, OdDbModelDocViewStyle, OdDbMlineStyle, OdDbMline, OdDbMLeaderStyle, OdDbMInsertBlock, OdDbMaterial, OdDbLoftedSurface, OdDbLinkedTableData, OdDbLinkedData, OdDbLinetypeTableRecord, OdDbLine, OdDbLight, OdDbLeader, OdDbLayout, OdDbLayerTableRecord, OdDbLayerIndex, OdDbLayerFilter, OdDbIndex, OdDbIdBuffer, OdDbHelix, OdDbHatch, OdDbGroup, OdDbGeoPositionMarker, OdDbGeoData, OdDbFormattedTableData, OdDbFilter, OdDbField, OdDbFaceRecord, OdDbFace, OdDbExtrudedSurface, OdDbEvalExpr, OdDbEntity, OdDbEllipse, OdDbDimStyleTableRecord, OdDbDimStyleTable, OdDbDimension, OdDbDictionaryWithDefault, OdDbDictionaryVar, OdDbDictionary, OdDbDiametricDimension, OdDbDetailViewStyle, OdDbDataTable, OdDbDataLink, OdDbColor, OdDbCircle, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbBlockEnd, OdDbBlockBegin, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, OdDbSolidBackground, OdDbAttributeDefinition, OdDbAttribute, OdDbArcDimension, OdDbArcAlignedText, OdDbArc, OdDbAlignedDimension, OdDb3PointAngularDimension, OdDb3dSolid, OdDb3dPolyline, OdDb2LineAngularDimension, OdDb2dPolyline, OdDbMLeader, OdDbPointCloudEx, OdDbPointCloudDefReactorEx, OdDbPointCloudDefEx, OdDbPointCloudDefReactor, OdDbPointCloudDef, OdDbPointCloud, OdDbBreakPointRef, and OdDbBreakData.
|
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 in OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewport, OdDbUCSTableRecord, OdDbTrace, OdDbTextStyleTableRecord, OdDbText, OdDbSymbolTableRecord, OdDbSymbolTable, OdDbSolid, OdDbShape, OdDbRotatedDimension, OdDbRegAppTableRecord, OdDbRadialDimension, OdDbPolygonMeshVertex, OdDbPolygonMesh, OdDbPolyFaceMeshVertex, OdDbPolyFaceMesh, OdDbPoint, OdDbOrdinateDimension, OdDbLinetypeTableRecord, OdDbLine, OdDbLayerTableRecord, OdDbFaceRecord, OdDbFace, OdDbEntity, OdDbDimStyleTableRecord, OdDbDimension, OdDbDiametricDimension, OdDbCircle, OdDbBlockReference, OdDbBlockEnd, OdDbBlockBegin, OdDbAttributeDefinition, OdDbAttribute, OdDbArc, OdDbAlignedDimension, OdDb3PointAngularDimension, OdDb3dPolylineVertex, OdDb3dPolyline, OdDb2LineAngularDimension, OdDb2dVertex, and OdDb2dPolyline.
Sets the erased mode of this object.
eraseIt | [in] Boolean to specify if object is to be erased or unerased. |
Erased objects are not filed when the database is saved or sent to a DXF file.
|
virtual |
Notification function called whenever an object has been erased or unerased.
pObject | [in] Pointer to the object that was erased/unerased. |
erasing | [in] True if and only if this object is being erased. |
Reimplemented in OdDbPointCloudDefReactorEx, OdDbPointCloudDefReactor, OdDbRasterImageDefReactor, OdDbLeader, OdDbDictionary, OdDbArcAlignedText, OdDbViewport, OdDbDimAssoc, and OdDbBreakData.
OdDbObjectId OdDbObject::extensionDictionary | ( | ) | const |
Returns the Object ID of this object's extension dictionary.
ODRX_SEALED_VIRTUAL OdResult OdDbObject::getClassID | ( | void * | pClsid | ) | const |
Returns the CLSID value associated with this object.
pClsid | [out] Pointer to the CLSID value. |
OdDbHandle OdDbObject::getDbHandle | ( | ) | const |
Returns the persistent handle of this database object.
OdDbObjectId OdDbObject::getField | ( | const OdString & | fieldName | ) | const |
Returns, and optionally opens, the specified field object from the field dictionary of this object.
fieldName | [in] Name (key) for the new entry. |
OdDbObjectPtr OdDbObject::getField | ( | const OdString & | fieldName, |
OdDb::OpenMode | mode | ||
) | const |
Returns, and optionally opens, the specified field object from the field dictionary of this object.
fieldName | [in] Name (key) for the new entry. |
mode | [in] Open mode. |
OdDbObjectId OdDbObject::getFieldDictionary | ( | ) | const |
Returns the field dictionary of this Object.
OdDbObjectPtr OdDbObject::getFieldDictionary | ( | OdDb::OpenMode | mode | ) | const |
Returns, and optionally opens, the field dictionary of this Object.
mode | [in] Open mode. |
|
virtual |
Returns the drawing and maintenance release version into which this object must be stored.
pFiler | [in] Pointer to the DWG/DXF filer to be used. |
pMaintVer | [out] Receives the maintenance version. |
Do not use filer->dwgVersion() with dwg/dxf(in/out)Fields(); use self()->getObjectSaveVersion() instead.
OdDbObjectIdArray OdDbObject::getPersistentReactors | ( | ) | const |
Returns Object IDs of this object's persistent reactors.
OdDbObjectReactorArray OdDbObject::getTransientReactors | ( | ) | const |
Returns this object's transient reactors.
|
virtual |
Notification function called just before an object is deleted from memory.
pObject | [in] Pointer to the object that is being deleted. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented in OdDbDictionary.
|
virtual |
Returns the OdGsCache of an OdGiDrawable object.
Implements OdGiDrawable.
|
inline |
Returns the persistent handle of this database object.
Definition at line 253 of file DbObject.h.
void OdDbObject::handOverTo | ( | OdDbObject * | pNewObject, |
bool | keepXData = true , |
||
bool | keepExtDict = true |
||
) |
Replaces this database -resident (DBRO) object with the specified non- database -resident (NDBRO) object, while retaining this object's objectId, handle, owner, and reactor list.
pNewObject | [in] Pointer to the object with which to replace this object in the database. |
keepXData | [in] This object's XData will be retained if and only if keepXData is true. |
keepExtDict | [in] This object's extension dictionary will be retained if and only if keepExtDict is true. |
The replacement object will opened OdDb::kForWrite, and must be closed.
It is up to the caller to delete the replaced (this) object.
Throws:
Cause eIllegalReplacement This object is NDBRO or NewObject is DBRO.
bool OdDbObject::hasFields | ( | ) | const |
Returns true if and only if this object has fields.
bool OdDbObject::hasPersistentReactor | ( | const OdDbObjectId & | objId | ) | const |
This method returns true if objId is the Object ID of a reactor attached to this object. Otherwise, it returns false.
objId | [in] Object ID of the persistent reactor. |
bool OdDbObject::hasSaveVersionOverride | ( | ) | const |
Returns true if and only if this object has its bit set to override the filer version.
|
virtual |
Returns the database ID corresponding to this object.
Implements OdGiDrawable.
bool OdDbObject::isAProxy | ( | ) | const |
Returns true if and only if this object is a proxy object or entity.
bool OdDbObject::isDBRO | ( | ) | const |
Returns true if and only this object is a database -resident object.
bool OdDbObject::isErased | ( | ) | const |
Returns true if and only if this object is marked as erased.
bool OdDbObject::isEraseStatusToggled | ( | ) | const |
Returns true if and only if this object's erased status has been toggled since it was opened.
bool OdDbObject::isModified | ( | ) | const |
Returns true if and only if this object's assertWriteEnabled() has been called since it was opened.
bool OdDbObject::isModifiedGraphics | ( | ) | const |
Returns true if and only if an object derived from OdDbEntity has been modified.
This function returns true if and only if an object derived from OdDbEntity either
1) Calls assertWriteEnabled() 2) Calls recordGraphicsModified(true).
bool OdDbObject::isModifiedXData | ( | ) | const |
Returns true if and only this object's assertWriteEnabled() and setXData() have been called since it was opened.
bool OdDbObject::isNewObject | ( | ) | const |
Returns true if and only if this object has not been closed since it was created.
bool OdDbObject::isNotifyEnabled | ( | ) | const |
Returns true if and only if this object is open OdDb::kForNotify.
bool OdDbObject::isNotifying | ( | ) | const |
Returns true if and only if this object is sending notification.
bool OdDbObject::isOdDbObjectIdsInFlux | ( | ) | const |
Returns true if and only if this object's Object ID is not valid because the OdDbObject::subDeepClone or OdDbObject::subWblockClone() have yet to be completed.
|
virtual |
Return true if and only if this object is database -resident (DBRO).
Non-persistent objects can be accessed through their pointers.
Implements OdGiDrawable.
bool OdDbObject::isReadEnabled | ( | ) | const |
Returns true if and only if this object is open OdDb::kForRead.
bool OdDbObject::isReallyClosing | ( | ) | const |
Returns true if and only if a call to close would completely close this object at this time.
bool OdDbObject::isUndoing | ( | ) | const |
Returns true if and only if this object is taking part in an Undo operation.
bool OdDbObject::isUndoRecordingDisabled | ( | ) | const |
bool OdDbObject::isWriteEnabled | ( | ) | const |
Returns true if and only if this object is open OdDb::kForWrite.
|
virtual |
Returns the merge style of this object.
Reimplemented in OdDbXrecord, OdDbProxyObject, and OdDbDictionary.
|
virtual |
Notification function called whenever an object is opened OdDb::kForWrite, a function has been called that could modify the contents of this object, and this object is now being closed.
pObject | [in] Pointer to the object that is being closed after being modified. |
Reimplemented in OdDbPointCloudDefReactorEx, OdDbPointCloudDefReactor, OdDbFcf, OdDbRasterImageDefReactor, OdDbDimension, OdDbArcAlignedText, OdDbMLeader, OdDbViewport, OdDbTable, and OdDbBreakData.
|
virtual |
Notification function called whenever an object derived from OdDbEntity is modified.
pObject | [in] Pointer to the modified object. |
This function is called whenever the following has occurred.
1) The calling object is opened OdDb::kForWrite.
2) One of its member functions either
a Calls its assertWriteEnabled with recordModified == true. b Calls its recordGraphicsModified(true).
3) The calling object is being closed.
This function is called whenever the object as been modified. It therefore indicates only that the graphics for it may have changed.
Reimplemented in OdDbLeader, OdDbHatch, OdDbDimAssoc, and OdDbBreakData.
|
virtual |
Notification function called whenever the XData has been written to the notifying object.
pObject | [in] Pointer to the notifying object. |
The notifying object is open OdDb::kForRead.
The default implementation of this function does nothing. This function can be overridden in custom classes.
|
virtual |
Notification function called whenever the notifying object is in the midst an Undo operation that is undoing modifications.
pObject | [in] Pointer to the notifying object. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
|
virtual |
Returns the reference count of this object.
Reimplemented from OdRxObject.
|
virtual |
Notification function called immediately before an object is closed.
objectId | [in] Object ID of the object that is being closed. |
OdDbObjectId OdDbObject::objectId | ( | ) | const |
Returns the Object ID of this object.
OdDbObject::ODDB_DECLARE_MEMBERS | ( | OdDbObject | ) |
|
virtual |
Notification function called whenever an object is opened for modify OdDb::kForWrite.
pObject | [in] Pointer to the object that is being opened. |
Reimplemented in OdDbDimAssoc.
OdDbObjectId OdDbObject::ownerId | ( | ) | const |
Returns the Object ID of this object's owner.
Throws:
Cause eNotInDatabase objectId().isNull()
|
virtual |
Notification function called whenever a Redo process processes the reappending of the notifying object to the database.
pObject | [in] Pointer to the notifying object. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
|
virtual |
Allows a subobject of a complex object to notify its root object that it has been changed.
pSubObj | [in] Pointer to the modifiedsubobject. |
1) The subobject class's close() calls its triggers a "modified" notification which calls its xmitPropagateModify(). 2) The subobject class calls the its parent's recvPropagateModify() its object's pointer. 3) The owner's class's recvPropagateModify() sends a "modified" notification to the top of its class.
The default implementation of this function does nothing. This function can be overridden in custom classes.
|
virtual |
Decrements the reference count of this object.
Implements OdRxObject.
bool OdDbObject::releaseExtensionDictionary | ( | ) |
Releases and erases this object's extension dictionary if it exists and is empty.
|
virtual |
|
virtual |
|
virtual |
Removes the specified persistent reactor from this object's reactor list.
objId | [in] Object ID of the persistent reactor. |
void OdDbObject::removeReactor | ( | OdDbObjectReactor * | pReactor | ) | const |
Removes the specified transient reactor from this object's reactor list.
pReactor | [in] Pointer to the transient reactor object. |
For Teigha internal use only
DOM
|
virtual |
Assigns the specified OdGsCache to the calling object.
pNode | [in] Pointer to the OdGsCache object. |
Implements OdGiDrawable.
void OdDbObject::setHasSaveVersionOverride | ( | bool | hasSaveVersionOverride | ) |
Controls the flag specifying that this object overrides the save filer version.
hasSaveVersionOverride | [in] Has save version override. |
void OdDbObject::setOdDbObjectIdsInFlux | ( | ) |
Called on a new created cloned object to indicate that its Object ID is not valid.
|
virtual |
Sets this object's ownerId data member.
ownerId | [in] Owner's objectId. |
Throws:
Cause eNotInDatabase Owner is not in the database.
Sets the XData of this object.
pRb | [in] A pointer to the ResBuf list containing the XData. |
Any existing XData for the specified regAppName will be replaced.
To remove the regAppName and its XData, just provide the regAppName with no data.
If you override this method, you should supermessage this classes parent class to add add the XData to the object.
|
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 in CFxBIMDatabaseReference, OdDbRasterImage, OdDbPointCloudDef, OdDbMLeader, OdDbLeader, OdDbGroup, OdDbFcf, OdDbBlockTableRecord, OdDbAttributeDefinition, OdDbAttribute, OdDbArcAlignedText, RText, OdDbViewTableRecord, OdDbViewportTableRecord, OdDbViewportTable, OdDbViewport, OdDbTextStyleTableRecord, OdDbText, OdDbTable, OdDbSection, OdDbRasterImageDef, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbPlotSettings, OdDbOle2Frame, OdDbMText, OdDbMline, OdDbMLeaderStyle, OdDbLayout, OdDbHatch, OdDbGeoPositionMarker, OdDbField, OdDbDimension, OdDbDictionary, OdDbCamera, OdDbBlockReference, OdDb3dSolid, OdDb3dPolyline, and OdDb2dPolyline.
|
protectedvirtual |
Reimplemented in OdDbMLeader, CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDbRasterImage, OdDbProxyObject, OdDbProxyEntity, OdDbGroup, OdDbEntity, OdDbCamera, and OdDbDimAssoc.
|
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 in CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDbScale, OdDbPointCloudDef, OdDbEntity, OdDbBlockTableRecord, OdDbViewport, OdDbTextStyleTableRecord, OdDbSymbolTableRecord, OdDbSequenceEnd, OdDbRegAppTableRecord, OdDbRasterImageDef, OdDbProxyObject, OdDbProxyEntity, OdDbPolygonMeshVertex, OdDbPolyFaceMeshVertex, OdDbPlotSettings, OdDbMaterial, OdDbLongTransaction, OdDbLinetypeTableRecord, OdDbLight, OdDbLayerTableRecord, OdDbFaceRecord, OdDbDimStyleTableRecord, and OdDbCamera.
Reimplemented in OdDbWipeout, OdDbRasterImage, OdDbPolyline, OdDbMLeader, OdDbFcf, OdDbBlockTableRecord, OdDb2dPolyline, OdDbXrecord, OdDbXline, OdDbViewTableRecord, OdDbViewTable, OdDbViewportTableRecord, OdDbViewportTable, OdDbViewport, OdDbPdfReference, OdDbDgnReference, OdDbDwfReference, OdDbUCSTableRecord, OdDbUCSTable, OdDbTrace, OdDbTextStyleTableRecord, OdDbTextStyleTable, OdDbText, OdDbTableStyle, OdDbTable, OdDbSweptSurface, OdDbSurface, OdDbSpline, OdDbSortentsTable, OdDbSolid, OdDbShape, OdDbSectionManager, OdDbSectionSettings, OdDbSection, OdDbRotatedDimension, OdDbRevolvedSurface, OdDbRegion, OdDbRegAppTableRecord, OdDbRegAppTable, OdDbRay, OdDbRadialDimensionLarge, OdDbRadialDimension, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbPoint, OdDbPlotSettings, OdDbPlaneSurface, OdDbOrdinateDimension, OdDbOle2Frame, OdDbMText, OdDbMlineStyle, OdDbMline, OdDbMLeaderStyle, OdDbMInsertBlock, OdDbMaterial, OdDbLoftedSurface, OdDbLinetypeTableRecord, OdDbLinetypeTable, OdDbLine, OdDbLeader, OdDbLayout, OdDbLayerTableRecord, OdDbLayerTable, OdDbHelix, OdDbHatch, OdDbGroup, OdDbFace, OdDbExtrudedSurface, OdDbEntity, OdDbEllipse, OdDbDimStyleTableRecord, OdDbDimStyleTable, OdDbDimension, OdDbDictionary, OdDbDiametricDimension, OdDbDatabase, OdDbCircle, OdDbCamera, OdDbBlockTable, OdDbBlockReference, OdDbAttributeDefinition, OdDbAttribute, OdDbArcDimension, OdDbArc, OdDbAlignedDimension, OdDb3PointAngularDimension, OdDb3dSolid, OdDb3dPolyline, and OdDb2LineAngularDimension.
|
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 in CFxBIMDatabaseReference, OdDbEvalGraph, OdDbBlockTableRecord, OdDbTextStyleTableRecord, OdDbRasterImageDef, OdDbPlotSettings, OdDbEntity, OdDbBlockReference, and OdDbPointCloudDef.
|
virtual |
Notification function called whenever a method of the specified subobject has called assertWriteEnabled()
pObject | [in] Pointer to the notifying object. |
pSubObj | [in] A pointer to the subobject owned by pObject. |
Vertices of OdDb2dPolylines, OdDb3dPolylines, OdDbPolygonMeshs, and OdDbPolyFaceMeshes OdDbFaceRecords of OdDbPolyFaceMeshs OdDbAttributes owned by OdDbBlockReferences, classes derived from OdDbBlockReference, and OdDbMInsertBlocks
|
virtual |
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.
|
virtual |
Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.
pTraits | [in] Pointer to the OdGiDrawableTraits object to be set. |
A derived class may not remove flags for any reason.
The default implementation does nothing but returns kDrawableNone. This function can be overridden in custom classes.
Implements OdGiDrawable.
Reimplemented in CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDbNavisworksReference, OdDbPdfReference, OdDbUnderlayReference, OdDbMLeader, OdDbLeader, OdDbBlockTableRecord, OdDbVisualStyle, OdDbViewport, OdDbTextStyleTableRecord, OdDbSurface, OdDbSun, OdDbSubDMesh, OdDbRenderEnvironment, OdDbRapidRTRenderSettings, OdDbMentalRayRenderSettings, OdDbRenderSettings, OdDbRegion, OdDbPoint, OdDbMaterial, OdDbLinetypeTableRecord, OdDbLight, OdDbLayout, OdDbLayerTableRecord, OdDbEntity, OdDbDimension, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbIBLBackground, OdDbSkyBackground, OdDbGroundPlaneBackground, OdDbImageBackground, OdDbGradientBackground, OdDbSolidBackground, OdDbAttributeDefinition, OdDbAbstractViewTableRecord, and OdDb3dSolid.
|
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 in OdDbViewTableRecord, OdDbSymbolTableRecord, and OdDbEntity.
|
virtual |
Implements OdGiDrawable.
Reimplemented in OdDbLayout, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDbHatch, OdDbGeoPositionMarker, OdDbViewRepBlockReference, OdDbRasterImage, OdDbPolyline, OdDbOle2Frame, OdDbLeader, OdDbFcf, OdDbViewRepImage, OdDbUnderlayReference, OdDbTrace, OdDbText, OdDbSolid, OdDbSection, OdDbPointCloudEx, OdDbPointCloud, OdDbPoint, OdDbMText, OdDbLight, OdDbLayerTableRecord, OdDbFace, OdDbEntity, OdDbDimension, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbAttributeDefinition, OdDbAttribute, OdDb3dSolid, and OdDbMLeader.
|
protectedvirtual |
|
virtual |
Implements OdGiDrawable.
Reimplemented in CFxBIMSectionView, CFxBIMSectionEntity, CFxBIMSection, CFxBIMEntityReference, OdDbViewSymbol, OdDbSectionSymbol, OdDbDetailSymbol, OdDbGeoPositionMarker, OdDbViewRepBlockReference, OdDbWipeout, OdDbRasterImage, OdDbPolyline, OdDbOle2Frame, OdDbMLeader, OdDbLeader, OdDbFcf, OdDbBlockTableRecord, OdDbArcAlignedText, RText, OdDbViewRepImage, OdDbViewBorder, OdDbXline, OdDbViewport, OdDbNavisworksReference, OdDbUnderlayReference, OdDbTrace, OdDbText, OdDbTable, OdDbSurface, OdDbSubDMesh, OdDbSpline, OdDbSolid, OdDbShape, OdDbSection, OdDbRegion, OdDbRay, OdDbPolygonMesh, OdDbPolyFaceMesh, OdDbPointCloudEx, OdDbPointCloud, OdDbPoint, OdDbMText, OdDbMPolygon, OdDbMline, OdDbMInsertBlock, OdDbLine, OdDbLight, OdDbLayout, OdDbLayerTableRecord, OdDbHatch, OdDbFace, OdDbEntity, OdDbEllipse, OdDbDimension, OdDbCircle, OdDbCamera, OdDbBody, OdDbBlockReference, OdDbAttributeDefinition, OdDbAttribute, OdDbArc, OdDb3dSolid, OdDb3dPolyline, and OdDb2dPolyline.
void OdDbObject::swapIdWith | ( | OdDbObjectId | otherId, |
bool | swapXdata = false , |
||
bool | swapExtDict = false |
||
) |
Swaps the objectIDs, handles, XData,and extension dictionary between this object and another object.
otherId | [in] Object ID of object with which to swap. |
swapXdata | [in] XData will be swapped if and only if swapXData is true. |
swapExtDict | [in] Extension dictionaries will be swapped if and only if swapExtDict is true. |
Throws:
Cause eIllegalReplacement Either object is NDBRO.
|
virtual |
Notification function called whenever the Undo process processes the appending of the notifying object to the database.
pObject | [in] Pointer to the notifying object. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
OdDbDwgFiler* OdDbObject::undoFiler | ( | ) |
Description: Returns the undo filer associated with this object.
Throws:
Cause eNotOpenForWrite !isWriteEnabled()
void OdDbObject::upgradeOpen | ( | ) |
Upgrades this object from OdDb::kForRead to OdDb::kForWrite.
ODRX_SEALED_VIRTUAL OdDbObjectPtr OdDbObject::wblockClone | ( | OdDbIdMapping & | ownerIdMap, |
OdDbObject * | pOwner, | ||
bool | bPrimary = true |
||
) | const |
Performs a shallow clone of this object.
ownerIdMap | [in/out] Owner's ID map. |
A shallow clone is a clone of only this object.
This function should not be called by client code; use OdDbDatabase::wblockCloneObjects() instead.
The default implementation of this function calls subWblockClone() for all objects hard-referenced by this object. This function can be overridden in custom classes.
|
virtual |
Returns a linked list of ResBufs containing a copy of the XData of this object.
regappName | [in] Registered application for which to return XData. |
If regappName is not empty, XData for only that application will be returned.
Returns a null SmartPointer if there are no XData.
void OdDbObject::xDataTransformBy | ( | const OdGeMatrix3d & | xfm | ) |
Applies the 3D transformation matrix to the XData of this object.
xfm | [in] 3D transformation matrix. |
Value kDxfXdWorldXCoord 1011
kDxfXdWorldYCoord 1021
kDxfXdWorldZCoord 1031
kDxfXdWorldXDisp 1012
kDxfXdWorldYDisp 1022
kDxfXdWorldZDisp 1032
kDxfXdWorldXDir 1013
kDxfXdWorldYDir 1023
kDxfXdWorldZDir 1033
kDxfXdDist 1041
kDxfXdScale 1042
|
virtual |
Allows a subobject of a complex object to notify its root object that it has been changed.
The owner can then propagate the notification that it has been been modified.
The default implementation of this function inform the database in which the owner resides has been modified; triggering any OdDbDatabaseReactors attached to it. This function can be overridden in custom classes.
When overriding this function, it should:
1) The subobject class's close() calls its triggers a "modified" notification which calls its xmitPropagateModify(). 2) The subobject class calls the its owner's recvPropagateModify() its object's pointer. 3) This owner's class's recvPropagateModify() sends a "modified" notification to the top of its class.
|
friend |
Definition at line 1721 of file DbObject.h.
|
friend |
Definition at line 1719 of file DbObject.h.
|
friend |
Definition at line 1720 of file DbObject.h.
|
friend |
Definition at line 1718 of file DbObject.h.
|
protected |
Definition at line 1722 of file DbObject.h.