CFx SDK Documentation
2020SP3
|
#include <RxAttribute.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdRxDisplayAsAttribute) | |
OdString | propertyName () |
virtual OdString | getDisplayValue (OdRxValue &value) |
OdRxDisplayAsAttribute (OdRxDisplayAsAttributeImpl *pImpl) | |
OdRxDisplayAsAttribute () | |
Public Member Functions inherited from OdRxAttribute | |
ODRX_DECLARE_MEMBERS (OdRxAttribute) | |
virtual | ~OdRxAttribute () |
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 |
Static Public Member Functions | |
static OdRxAttributePtr | createObject (const OdString &property_name) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Additional Inherited Members | |
Protected Member Functions inherited from OdRxAttribute | |
OdRxAttribute (OdRxAttributeImpl *) | |
Protected Attributes inherited from OdRxAttribute | |
OdRxAttributeImpl * | m_pImpl |
This attribute may be used by UI to represent properties of dereferenceable types in human readable form (instead of displaying just handle). <group OdRx_Classes>
Definition at line 627 of file RxAttribute.h.
OdRxDisplayAsAttribute::OdRxDisplayAsAttribute | ( | OdRxDisplayAsAttributeImpl * | pImpl | ) |
OdRxDisplayAsAttribute::OdRxDisplayAsAttribute | ( | ) |
|
static |
Constructor.
By default this function dereferences the value and retrieves the property which name is stored in the attribute. May be overloaded in custom implementations. If the value type is not a reference or the referenced object has no such property, returns an empty string.
Reimplemented in OdIfcRxDisplayAsAttribute.
OdRxDisplayAsAttribute::ODRX_DECLARE_MEMBERS | ( | OdRxDisplayAsAttribute | ) |
OdString OdRxDisplayAsAttribute::propertyName | ( | ) |
The name of the property of the dereferenced object to use instead of the object id.