#include <DbObjectReactor.h>
This class is the base class for custom classes that receive notification of OdDbObject events.
<group OdDb_Classes>
Definition at line 45 of file DbObjectReactor.h.
◆ OdDbObjectReactor()
OdDbObjectReactor::OdDbObjectReactor |
( |
| ) |
|
|
inlineprotected |
◆ cancelled()
virtual void OdDbObjectReactor::cancelled |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
◆ copied()
Notification function called whenever the notifying object has had its clone() member function called.
- Parameters
-
pObject | [in] Pointer to the notifying object. |
pNewObject | [in] Pointer to the object resulting from the copy. |
◆ erased()
virtual void OdDbObjectReactor::erased |
( |
const OdDbObject * |
pObject, |
|
|
bool |
erasing = true |
|
) |
| |
|
virtual |
Notification function called whenever an object has been erased or unerased.
- Parameters
-
pObject | [in] Pointer to the object that was erased/unerased. |
erasing | [in] True if and only if this object is being erased. |
◆ findReactor()
Returns the first transient reactor of the specified class that is attached to the specified object.
- Parameters
-
pObject | [in] Pointer to the notifying object. |
pKeyClass | [in] Pointer to the class desciption. |
◆ goodbye()
Notification function called just before an object is deleted from memory.
- Parameters
-
pObject | [in] Pointer to the object that is being deleted. |
◆ modified()
virtual void OdDbObjectReactor::modified |
( |
const OdDbObject * |
pObject | ) |
|
|
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.
- Parameters
-
pObject | [in] Pointer to the object that is being closed after being modified. |
◆ modifiedGraphics()
virtual void OdDbObjectReactor::modifiedGraphics |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
Notification function called whenever an object derived from OdDbEntity is modified.
- Parameters
-
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.
◆ modifiedXData()
virtual void OdDbObjectReactor::modifiedXData |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
Notification function called whenever the XData has been written to the notifying object.
- Parameters
-
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.
◆ modifyUndone()
virtual void OdDbObjectReactor::modifyUndone |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
Notification function called whenever the notifying object is in the midst an Undo operation that is undoing modifications.
- Parameters
-
pObject | [in] Pointer to the notifying object. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
◆ objectClosed()
Notification function called immediately before an object is closed.
- Parameters
-
objectId | [in] Object ID of the object that is being closed. |
◆ ODRX_DECLARE_MEMBERS()
◆ openedForModify()
virtual void OdDbObjectReactor::openedForModify |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
Notification function called whenever an object is opened for modify OdDb::kForWrite.
- Parameters
-
pObject | [in] Pointer to the object that is being opened. |
◆ reappended()
virtual void OdDbObjectReactor::reappended |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
Notification function called whenever a Redo process processes the reappending of the notifying object to the database.
- Parameters
-
pObject | [in] Pointer to the notifying object. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
◆ subObjModified()
Notification function called whenever a method of the specified subobject has called assertWriteEnabled()
- Parameters
-
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
◆ unappended()
virtual void OdDbObjectReactor::unappended |
( |
const OdDbObject * |
pObject | ) |
|
|
virtual |
Notification function called whenever the Undo process processes the appending of the notifying object to the database.
- Parameters
-
pObject | [in] Pointer to the notifying object. |
The default implementation of this function does nothing. This function can be overridden in custom classes.
The documentation for this class was generated from the following file: