|
CFx SDK Documentation 2024 SP0
|
#include "TD_PackPush.h"#include "RxObject.h"#include "RxIterator.h"#include "TfVariant.h"#include "TfObjectReactor.h"#include "DbStubPtrArray.h"#include "Gi/GiDrawable.h"Go to the source code of this file.
Classes | |
| class | OdTfAttributesContainer |
| class | OdTfPropertiesContainer |
| class | OdTfClass |
| class | OdTfProperty |
| class | OdTfAttribute |
| class | OdTfObject |
Macros | |
| #define | ODTF_CREATE_ATTRIBUTE(Name, value) result.push_back(::newOdTfAttribute(OD_T(#Name), pObject, value)); |
| #define | ODTF_DEFINE_ATTRIBUTES_CONSTRUCTOR(Name, ATTRIBUTES_LIST) |
| #define | ODTF_CREATE_PROPERTY_NO_ATTRS(PropertyName, type, getterFn, setterFn, defaultItemFn) |
| #define | ODTF_DEFINE_PROPERTIES_CONSTRUCTOR(ClassName, PROPERTIES_LIST) |
| #define | ODTF_DECLARE_MEMBERS(ClassName) ODRX_DECLARE_MEMBERS_GENERIC(OdTfClass, ClassName) |
| #define | ODTF_DEFINE_RTTI_MEMBERS(ClassName, ParentClass) ODRX_DEFINE_RTTI_MEMBERS_GENERIC(OdTfClass, ClassName, ParentClass) |
| #define | ODTF_DEFINE_INIT_MEMBERS(ClassName, ParentClass, attrsConsFn, propsConsFn, pseudoConsFn, szClassName) |
| #define | ODTF_DEFINE_MEMBERS2(ClassName, ParentClass, attrsConsFn, propsConsFn, pseudoConsFn, szClassName) |
| #define | ODTF_NO_CONS_NO_ATTRS_NO_PROPS_DEFINE_MEMBERS(ClassName, ParentClass) |
| #define | ODTF_NO_CONS_NO_ATTRS_PROPS_DEFINE_MEMBERS(ClassName, ParentClass, PROPERTIES_LIST) |
| #define | ODTF_CONS_NO_ATTRS_PROPS_DEFINE_MEMBERS(ClassName, ParentClass, PROPERTIES_LIST, DOCREATE) |
| #define | ODTF_CONS_NO_ATTRS_NO_PROPS_DEFINE_MEMBERS(ClassName, ParentClass, DOCREATE) |
Typedefs | |
| typedef OdSmartPtr< OdTfAttributesContainer > | OdTfAttributesContainerPtr |
| typedef OdSmartPtr< OdTfPropertiesContainer > | OdTfPropertiesContainerPtr |
| typedef OdSmartPtr< OdTfClass > | OdTfClassPtr |
| typedef OdSmartPtr< OdTfProperty > | OdTfPropertyPtr |
| typedef OdSmartPtr< OdTfAttribute > | OdTfAttributePtr |
| typedef OdSmartPtr< OdTfObject > | OdTfObjectPtr |
| typedef OdArray< OdTfProperty * >(* | OdTfPropertiesConstructorType) (OdTfClass *) |
| typedef OdArray< OdTfAttribute * >(* | OdTfAttributesConstructorType) (OdRxObject *) |
| typedef OdResult(* | OdTfPropertyGetterType) (const OdTfObject *, OdTfVariant &) |
| typedef OdResult(* | OdTfPropertySetterType) (OdTfObject *, const OdTfVariant &) |
| typedef OdTfVariant(* | OdTfVariantConstructorType) () |
| #define ODTF_CONS_NO_ATTRS_NO_PROPS_DEFINE_MEMBERS | ( | ClassName, | |
| ParentClass, | |||
| DOCREATE | |||
| ) |
Definition at line 108 of file TfObject.h.
| #define ODTF_CONS_NO_ATTRS_PROPS_DEFINE_MEMBERS | ( | ClassName, | |
| ParentClass, | |||
| PROPERTIES_LIST, | |||
| DOCREATE | |||
| ) |
Definition at line 99 of file TfObject.h.
| #define ODTF_CREATE_ATTRIBUTE | ( | Name, | |
| value | |||
| ) | result.push_back(::newOdTfAttribute(OD_T(#Name), pObject, value)); |
Definition at line 37 of file TfObject.h.
| #define ODTF_CREATE_PROPERTY_NO_ATTRS | ( | PropertyName, | |
| type, | |||
| getterFn, | |||
| setterFn, | |||
| defaultItemFn | |||
| ) |
Definition at line 48 of file TfObject.h.
| #define ODTF_DECLARE_MEMBERS | ( | ClassName | ) | ODRX_DECLARE_MEMBERS_GENERIC(OdTfClass, ClassName) |
Definition at line 62 of file TfObject.h.
| #define ODTF_DEFINE_ATTRIBUTES_CONSTRUCTOR | ( | Name, | |
| ATTRIBUTES_LIST | |||
| ) |
Definition at line 40 of file TfObject.h.
| #define ODTF_DEFINE_INIT_MEMBERS | ( | ClassName, | |
| ParentClass, | |||
| attrsConsFn, | |||
| propsConsFn, | |||
| pseudoConsFn, | |||
| szClassName | |||
| ) |
Definition at line 68 of file TfObject.h.
| #define ODTF_DEFINE_MEMBERS2 | ( | ClassName, | |
| ParentClass, | |||
| attrsConsFn, | |||
| propsConsFn, | |||
| pseudoConsFn, | |||
| szClassName | |||
| ) |
Definition at line 76 of file TfObject.h.
| #define ODTF_DEFINE_PROPERTIES_CONSTRUCTOR | ( | ClassName, | |
| PROPERTIES_LIST | |||
| ) |
Definition at line 54 of file TfObject.h.
| #define ODTF_DEFINE_RTTI_MEMBERS | ( | ClassName, | |
| ParentClass | |||
| ) | ODRX_DEFINE_RTTI_MEMBERS_GENERIC(OdTfClass, ClassName, ParentClass) |
Definition at line 65 of file TfObject.h.
| #define ODTF_NO_CONS_NO_ATTRS_NO_PROPS_DEFINE_MEMBERS | ( | ClassName, | |
| ParentClass | |||
| ) |
Definition at line 83 of file TfObject.h.
| #define ODTF_NO_CONS_NO_ATTRS_PROPS_DEFINE_MEMBERS | ( | ClassName, | |
| ParentClass, | |||
| PROPERTIES_LIST | |||
| ) |
Definition at line 90 of file TfObject.h.
| typedef OdSmartPtr<OdTfAttribute> OdTfAttributePtr |
A data type that represents a smart pointer to an OdTfAttribute object. <group OdTf_Types>
Definition at line 418 of file TfObject.h.
| typedef OdArray< OdTfAttribute * >(* OdTfAttributesConstructorType) (OdRxObject *) |
A data type that represents a pointer to a function that creates a new attributes container derived from a specified class. <group OdTf_Types>
Definition at line 649 of file TfObject.h.
A data type that represents a smart pointer to an OdTfAttributesContainer object. <group OdTf_Types>
Definition at line 150 of file TfObject.h.
| typedef OdSmartPtr<OdTfClass> OdTfClassPtr |
A data type that represents a smart pointer to an OdTfClass object. <group OdTf_Types>
Definition at line 306 of file TfObject.h.
| typedef OdSmartPtr<OdTfObject> OdTfObjectPtr |
A data type that represents a smart pointer to an OdTfObject object. <group OdTf_Types>
Definition at line 633 of file TfObject.h.
| typedef OdArray< OdTfProperty * >(* OdTfPropertiesConstructorType) (OdTfClass *) |
A data type that represents a pointer to a function that creates a new properties container derived from a specified class. <group OdTf_Types>
Definition at line 643 of file TfObject.h.
A data type that represents a smart pointer to an OdTfPropertiesContainer object. <group OdTf_Types>
Definition at line 257 of file TfObject.h.
| typedef OdResult(* OdTfPropertyGetterType) (const OdTfObject *, OdTfVariant &) |
A data type that represents a pointer to a function that returns a value of a property owned by a specified object. <group OdTf_Types>
Definition at line 655 of file TfObject.h.
| typedef OdSmartPtr<OdTfProperty> OdTfPropertyPtr |
A data type that represents a smart pointer to an OdTfProperty object. <group OdTf_Types>
Definition at line 381 of file TfObject.h.
| typedef OdResult(* OdTfPropertySetterType) (OdTfObject *, const OdTfVariant &) |
A data type that represents a pointer to a function that sets a new value of a property owned by a specified object. <group OdTf_Types>
Definition at line 662 of file TfObject.h.
| typedef OdTfVariant(* OdTfVariantConstructorType) () |
A data type that represents a pointer to a function that creates a variant value. <group OdTf_Types>
Definition at line 669 of file TfObject.h.
| TFCORE_EXPORT OdTfClass * createOdTfClass | ( | ) |
This function creates a new Tf class information storage object with default parameters (acts as a default constructor for the OdTfClass).
| TFCORE_EXPORT OdTfProperty * createOdTfProperty | ( | ) |
This function creates a new property object with default parameters (acts as a default constructor for OdTfProperty).
| TFCORE_EXPORT OdTfClass * initOdTfClass | ( | OdTfClass * | pClass, |
| const OdString & | name, | ||
| OdRxClass * | pBaseClass, | ||
| const OdArray< OdTfAttribute * > & | attributes, | ||
| const OdArray< OdTfProperty * > & | properties, | ||
| OdPseudoConstructorType | pConstr, | ||
| bool | bRegister = true |
||
| ) |
This function initializes a previously created Tf class object with specified parameters: name, base class, constructor function, attributes and properties.
| pClass | [in] A pointer to the previously created class instance. |
| name | [in] A name of the class. |
| pBaseClass | [in] A pointer to the base class. After the method successfully runs, it refers to an instance of the base class. |
| attributes | [in] An attributes container for the class instance. |
| properties | [in] A properties container for the class instance. |
| pConstr | [in] A pointer to the function that creates an instance of the class. |
| bRegister | [in] A flag value that determines whether the class should be registered in the run-time type identification system (if equal to true) or not (if equal to false). |
| TFCORE_EXPORT OdTfProperty * initOdTfProperty | ( | OdTfProperty * | pProp, |
| const OdString & | name, | ||
| OdTfClass * | pOwner, | ||
| OdTfVariant::Type | type, | ||
| const OdArray< OdTfAttribute * > & | attributes, | ||
| OdTfVariantConstructorType | pDefaultValueConstructor, | ||
| OdTfPropertyGetterType | pGetter, | ||
| OdTfPropertySetterType | pSetter | ||
| ) |
This function initializes a previously created property object.
| pProp | [in] A pointer to a property object that should be initialized. |
| name | [in] A name of the property. |
| pOwner | [in] A pointer to the owner object. |
| type | [in] A data type of the property. |
| attributes | [in] An attributes container object for the property. |
| pDefaultValueConstructor | [in] A pointer to the function that creates a default value of the property. |
| pGetter | [in] A pointer to the function that retrieves and returns the current value of the property. |
| pSetter | [in] A pointer to the function that sets a new value of the property. |
| TFCORE_EXPORT OdTfAttribute * newOdTfAttribute | ( | const OdString & | name, |
| OdRxObject * | pOwner, | ||
| const OdTfVariant & | value | ||
| ) |
This function creates and initializes a new attribute object with specified parameters.
| name | [in] A name of the attribute. |
| pOwner | [in] A pointer to the owner object. |
| value | [in] A data type of the property. |
| TFCORE_EXPORT OdTfClass * newOdTfClass | ( | const OdString & | name, |
| OdRxClass * | pBaseClass, | ||
| OdTfAttributesConstructorType | pAttrsConstr, | ||
| OdTfPropertiesConstructorType | pPropsConstr, | ||
| OdPseudoConstructorType | pConstr, | ||
| bool | bRegister = true |
||
| ) |
This function creates and initializes a new Tf class object with specified parameters.
| name | [in] A name of a class to be created. |
| pBaseClass | [in] A pointer to the base class. |
| pAttrsConstr | [in] A pointer to the function that creates an attribute container object for instances of the class. |
| pPropsConstr | [in] A pointer to the function that creates a property container object for instances of the class. |
| pConstr | [in] A pointer to the function that creates an instance of the class. |
| bRegister | [in] A flag value that determines whether the created class should be registered in the run-time type identification system (if equal to true) or not (if equal to false). |
| TFCORE_EXPORT OdTfProperty * newOdTfProperty | ( | const OdString & | name, |
| OdTfClass * | pOwner, | ||
| OdTfVariant::Type | type, | ||
| OdTfAttributesConstructorType | pAttrsConstr, | ||
| OdTfVariantConstructorType | pDefaultValueConstructor, | ||
| OdTfPropertyGetterType | pGetter, | ||
| OdTfPropertySetterType | pSetter | ||
| ) |
This function creates and initializes a new property object with specified parameters.
| name | [in] A name of the property. |
| pOwner | [in] A pointer to the owner object. |
| type | [in] A data type of the property. |
| pAttrsConstr | [in] A pointer to the function that creates an attributes container object for the property. |
| pDefaultValueConstructor | [in] A pointer to the function that creates a default value of the property. |
| pGetter | [in] A pointer to the function that retrieves and returns the current value of the property. |
| pSetter | [in] A pointer to the function that sets a new value of the property. |