CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdDbTransformOverrule Class Reference

#include <DbEntityOverrule.h>

Inheritance diagram for OdDbTransformOverrule:
OdRxOverrule OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbTransformOverrule)
 
 OdDbTransformOverrule ()
 
virtual OdResult transformBy (OdDbEntity *pSubject, const OdGeMatrix3d &xform)
 
virtual OdResult getTransformedCopy (const OdDbEntity *pSubject, const OdGeMatrix3d &xform, OdDbEntityPtr &pEnt)
 
virtual OdResult explode (const OdDbEntity *pSubject, OdRxObjectPtrArray &entitySet)
 
virtual bool cloneMeForDragging (OdDbEntity *pSubject)
 
virtual bool hideMeForDragging (const OdDbEntity *pSubject)
 
- Public Member Functions inherited from OdRxOverrule
 ODRX_DECLARE_MEMBERS (OdRxOverrule)
 
virtual ~OdRxOverrule ()
 
virtual bool isApplicable (const OdRxObject *pOverruledSubject) const =0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxOverrule
static OdResult addOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule, bool bAddAtLast=false)
 
static OdResult removeOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule)
 
static void setIsOverruling (bool bIsOverruling)
 
static bool isOverruling ()
 
static bool hasOverrule (const OdRxObject *pSubject, OdRxClass *pOverruleClass)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class overrules a subset of transformation linked operations which an entity specifies. It is used as a base class for classes derived from OdDbEntity to change their behavior. Each default implementation calls the corresponding method of the target class.

Corresponding C++ library: TD_Db <group OdDb_Classes>

Definition at line 113 of file DbEntityOverrule.h.

Constructor & Destructor Documentation

◆ OdDbTransformOverrule()

OdDbTransformOverrule::OdDbTransformOverrule ( )

Constructor creates an instance of this class.

Member Function Documentation

◆ cloneMeForDragging()

virtual bool OdDbTransformOverrule::cloneMeForDragging ( OdDbEntity pSubject)
virtual

Overrules OdDbEntity::subCloneMeForDragging() method and calls it in the default implementation. This method returns True when a clone will be created for the dragging operation, or False otherwise.

Parameters
pSubject[in] A raw pointer to an entity.

◆ explode()

virtual OdResult OdDbTransformOverrule::explode ( const OdDbEntity pSubject,
OdRxObjectPtrArray entitySet 
)
virtual

Overrules OdDbEntity::subExplode() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an entity.
entitySet[in/out] An array of pointers to new entities; this array can contain the pointers from other entities; all entities which are a result of the exploding operation are appended to this array.

◆ getTransformedCopy()

virtual OdResult OdDbTransformOverrule::getTransformedCopy ( const OdDbEntity pSubject,
const OdGeMatrix3d xform,
OdDbEntityPtr pEnt 
)
virtual

Overrules OdDbEntity::subGetTransformedCopy() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an entity.
xform[in] A transformation matrix.
pEnt[in/out] A reference to an empty pointer in which a pointer to the transformed copy of the entity should be saved.

◆ hideMeForDragging()

virtual bool OdDbTransformOverrule::hideMeForDragging ( const OdDbEntity pSubject)
virtual

Overrules OdDbEntity::subHideMeForDragging() method and calls it in the default implementation. This method returns True when the original object should be hidden during the dragging operation, or False otherwise.

Parameters
pSubject[in] A raw pointer to an entity.

◆ ODRX_DECLARE_MEMBERS()

OdDbTransformOverrule::ODRX_DECLARE_MEMBERS ( OdDbTransformOverrule  )

◆ transformBy()

virtual OdResult OdDbTransformOverrule::transformBy ( OdDbEntity pSubject,
const OdGeMatrix3d xform 
)
virtual

Overrules OdDbEntity::subTransformBy() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an entity.
xform[in] Transformation matrix.

The documentation for this class was generated from the following file: