CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Macros
IfcRxProperties.h File Reference
#include "OdaCommon.h"
#include "daiRxProperties.h"
#include "IfcValueTypes.h"

Go to the source code of this file.

Macros

#define ODRX_DECLARE_RX_PROPERTY_RO_TREE(Object, Name, Type, Category, Description, HierarchyLevel)
 
#define ODRX_DAI_DECLARE_RX_PROPERTY_COLLECTION_TREE(Object, Name, Type, Category, Description, HierarchyLevel)
 

Macro Definition Documentation

◆ ODRX_DAI_DECLARE_RX_PROPERTY_COLLECTION_TREE

#define ODRX_DAI_DECLARE_RX_PROPERTY_COLLECTION_TREE (   Object,
  Name,
  Type,
  Category,
  Description,
  HierarchyLevel 
)
Value:
struct Object ## Name ## Property : OdRxCollectionProperty {\
static OdRxMemberPtr createObject(const OdRxClass* owner)\
{\
((Object ## Name ## Property*)res.get())->init(__OD_T(#Name), &OdRxValueType::Desc<Type>::value(), owner);\
((Object ## Name ## Property*)res.get())->attributes().add(OdIfcRxDisplayAsAttribute::createObject(false, true)); \
if( OdString::kEmpty != Description ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdRxDescriptionAttribute::createObject(OD_T(Description))); \
if( OdString::kEmpty != Category ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdRxUiPlacementAttribute::createObject(OD_T(Category), 1)); \
if( OdString::kEmpty != HierarchyLevel ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdDAIRxHierarchyLevelAttribute::createObject()); \
return res;\
}\
virtual OdResult subTryGetCount(const OdRxObject* pO, int& count) const ODRX_OVERRIDE;\
}
#define OD_T(x)
#define __OD_T(x)
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
static OdRxAttributePtr createObject(bool bShowIndex, bool bShowObjectType)
OdResult add(const OdRxAttribute *attribute)
virtual OdResult subTryGetCount(const OdRxObject *pO, int &count) const
void init(const OdString &name, const OdRxValueType *type, const OdRxObject *owner=0)
virtual OdRxValueIteratorPtr subNewValueIterator(const OdRxObject *pO) const
static OdRxAttributePtr createObject(const OdString &description, unsigned int id=0, unsigned int sourceHint=0)
const OdRxObject * owner() const
const OdRxAttributeCollection & attributes() const
static OdSmartPtr< TInterface > createObject()
Definition: RxObjectImpl.h:107
static OdRxAttributePtr createObject(const OdString &category, unsigned int weight)
const T * get() const
Definition: SmartPtr.h:339
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
GLsizei GLsizei * count
Definition: gles2_ext.h:276
static const OdRxValueType & value()

Definition at line 51 of file IfcRxProperties.h.

◆ ODRX_DECLARE_RX_PROPERTY_RO_TREE

#define ODRX_DECLARE_RX_PROPERTY_RO_TREE (   Object,
  Name,
  Type,
  Category,
  Description,
  HierarchyLevel 
)
Value:
struct Object ## Name ## Property : OdRxProperty {\
static OdRxMemberPtr createObject(const OdRxClass* owner)\
{\
((Object ## Name ## Property*)res.get())->init(__OD_T(#Name), &OdRxValueType::Desc<Type>::value(), owner);\
if( OdString::kEmpty != Description ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdRxDescriptionAttribute::createObject(OD_T(Description))); \
if( OdString::kEmpty != Category ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdRxUiPlacementAttribute::createObject(OD_T(Category), 1)); \
if( OdString::kEmpty != HierarchyLevel ) \
((Object ## Name ## Property*)res.get())->attributes().add(OdDAIRxHierarchyLevelAttribute::createObject()); \
return res;\
}\
virtual bool isReadOnly(const OdRxObject*) const ODRX_OVERRIDE { return true; }\
}
void init(const OdString &name, const OdRxValueType *type, const OdRxObject *owner=0)
virtual bool isReadOnly(const OdRxObject *pO) const
virtual OdResult subGetValue(const OdRxObject *pO, OdRxValue &value) const
GLsizei const GLfloat * value
Definition: gles2_ext.h:302

Definition at line 32 of file IfcRxProperties.h.