CFx SDK Documentation
2023 SP0
|
#include <DbEntityOverrule.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdDbVisibilityOverrule) | |
OdDbVisibilityOverrule () | |
virtual OdDb::Visibility | visibility (const OdDbEntity *pSubject) |
virtual OdResult | setVisibility (OdDbEntity *pSubject, OdDb::Visibility visibility, bool doSubents=true) |
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 OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () 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 OdRxClass * | desc () |
This class overrules a subset of visibility 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 485 of file DbEntityOverrule.h.
OdDbVisibilityOverrule::OdDbVisibilityOverrule | ( | ) |
Constructor creates an instance of this class.
OdDbVisibilityOverrule::ODRX_DECLARE_MEMBERS | ( | OdDbVisibilityOverrule | ) |
|
virtual |
Overrules OdDbEntity::subSetVisibility() method and calls it in the default implementation. This method returns eOk if successful.
pSubject | [in] A raw pointer to an entity. |
visibility | [in] A visibility state as the OdDb::Visibility enumeration. |
doSubents | [in] Indicates whether the new value should be applied to the subentitites. |
|
virtual |
Overrules OdDbEntity::subVisibility() method and calls it in the default implementation. This method returns the visibility state of the object as the OdDb::Visibility enumeration.
pSubject | [in] A raw pointer to an entity. |