CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
TrVecBaseModule.h File Reference
#include "TD_PackPush.h"
#include "Gs/GsBaseModule.h"
#include "../TrVisRenderClient.h"
#include "TD_PackPop.h"

Go to the source code of this file.

Classes

struct  OdTrVectorizerPropertyResolver
 
struct  OdTrVectorizerUpdateHost
 
class  OdTrVectorizerModuleHost
 
class  BaseTrVecModule
 

Macros

#define ODRX_DECLARE_PROPERTY_TRV(PropName)
 
#define ODRX_GENERATE_PROPERTY_TRV(PropName)
 
#define ODRX_INHERIT_PROPERTIES_TRV(BASE_CLASS)
 
#define ODRX_DEFINE_PROPERTY_METHODS_PREFIX_TRV(ClassPrefix, PropName, PropHolder, getMethodName, putMethodName, accessFn)
 
#define ODRX_DEFINE_PROPERTY_PREFIX_TRV(ClassPrefix, PropName, PropHolder, accessFn)
 

Typedefs

typedef OdSmartPtr< OdTrVectorizerPropertyResolverOdTrVectorizerPropertyResolverPtr
 
typedef OdSmartPtr< OdTrVectorizerModuleHostOdTrVectorizerModuleHostPtr
 

Macro Definition Documentation

◆ ODRX_DECLARE_PROPERTY_TRV

#define ODRX_DECLARE_PROPERTY_TRV ( PropName)
Value:
struct _##PropName##_PropDesc : public OdRxObjectImpl<OdRxPropDesc> \
{ \
static inline OdString _name(); \
OdString name() const; \
OdRxObjectPtr prop_get(const void* pThis) const; \
void prop_put(void* pThis, OdRxObject* pVal); \
};
OdSmartPtr< OdTrVectorizerPropertyResolver > OdTrVectorizerPropertyResolverPtr
static OdSmartPtr< TInterface > createObject(Args &&... args)
GLuint const GLchar * name
Definition gles2_ext.h:265

Definition at line 101 of file TrVecBaseModule.h.

◆ ODRX_DEFINE_PROPERTY_METHODS_PREFIX_TRV

#define ODRX_DEFINE_PROPERTY_METHODS_PREFIX_TRV ( ClassPrefix,
PropName,
PropHolder,
getMethodName,
putMethodName,
accessFn )
Value:
OdRxObjectPtr ClassPrefix _##PropName##_PropDesc::createObject(const OdTrVectorizerPropertyResolver *pResolver) \
{ \
OdRxObjectPtr pThis = OdRxObjectPtr(new _##PropName##_PropDesc, kOdRxObjAttach); \
static_cast<_##PropName##_PropDesc*>(pThis.get())->m_pResolver = pResolver; \
return pThis; \
} \
inline OdString ClassPrefix _##PropName##_PropDesc::_name() \
{ \
static OdString sName(OD_T(#PropName)); \
return sName; \
} \
OdString ClassPrefix _##PropName##_PropDesc::name() const \
{ \
return _name(); \
} \
OdRxObjectPtr ClassPrefix _##PropName##_PropDesc::prop_get(const void* pThis) const \
{ \
return (OdRxObject*)OdRxVariantValue((static_cast<PropHolder*>(m_pResolver->hostByPropsDict((OdRxDictionary*)pThis)))->getMethodName()); \
} \
void ClassPrefix _##PropName##_PropDesc::prop_put(void* pThis, OdRxObject* pVal) \
{ \
(static_cast<PropHolder*>(m_pResolver->hostByPropsDict((OdRxDictionary*)pThis)))->putMethodName(OdRxVariantValue(pVal)->accessFn()); \
}
#define OD_T(x)
OdString OdString
Definition OdString.h:1258
@ kOdRxObjAttach
Definition RxObject.h:56
OdRxObject * get()
Definition RxObject.h:503

Definition at line 118 of file TrVecBaseModule.h.

◆ ODRX_DEFINE_PROPERTY_PREFIX_TRV

#define ODRX_DEFINE_PROPERTY_PREFIX_TRV ( ClassPrefix,
PropName,
PropHolder,
accessFn )
Value:
ODRX_DEFINE_PROPERTY_METHODS_PREFIX_TRV(ClassPrefix, PropName, PropHolder, get_##PropName, put_##PropName, accessFn)
#define ODRX_DEFINE_PROPERTY_METHODS_PREFIX_TRV(ClassPrefix, PropName, PropHolder, getMethodName, putMethodName, accessFn)

Definition at line 143 of file TrVecBaseModule.h.

◆ ODRX_GENERATE_PROPERTY_TRV

#define ODRX_GENERATE_PROPERTY_TRV ( PropName)
Value:
pInfo->putAt(_##PropName##_PropDesc::_name(), _##PropName##_PropDesc::createObject(m_pPropResolver));

Definition at line 112 of file TrVecBaseModule.h.

◆ ODRX_INHERIT_PROPERTIES_TRV

#define ODRX_INHERIT_PROPERTIES_TRV ( BASE_CLASS)
Value:
BASE_CLASS::generateProperties(pInfo);

Definition at line 115 of file TrVecBaseModule.h.

Typedef Documentation

◆ OdTrVectorizerModuleHostPtr

<group ExRender_Windows_Classes>

Definition at line 99 of file TrVecBaseModule.h.

◆ OdTrVectorizerPropertyResolverPtr

<group ExRender_Windows_Classes>

Definition at line 47 of file TrVecBaseModule.h.