11 #ifndef __GU_PackedFactory__
12 #define __GU_PackedFactory__
22 namespace GU_PackedFactoryPrivate
64 #define DECL_GET_CAST(TYPE, METHOD, METHODCAST) \
65 template <typename CLASS> inline GU_PackedImpl::METHOD \
66 METHODCAST(TYPE (CLASS::*method)(const GU_PrimPacked *)const) \
67 { return (GU_PackedImpl::METHOD)(method); }
68 #define DECL_SET_CAST(TYPE, METHOD, METHODCAST) \
69 template <typename CLASS> inline GU_PackedImpl::METHOD \
70 METHODCAST(void (CLASS::*method)(GU_PrimPacked *, TYPE)) \
71 { return (GU_PackedImpl::METHOD)(method); }
73 #define DECL_TGET_CAST(TYPE, METHOD, METHODCAST) \
74 template <typename CLASS> inline GU_PackedImpl::METHOD \
75 METHODCAST(TYPE (CLASS::*method)(const GU_PrimPacked *,exint)const) \
76 { return (GU_PackedImpl::METHOD)(method); }
77 #define DECL_TSET_CAST(TYPE, METHOD, METHODCAST) \
78 template <typename CLASS> inline GU_PackedImpl::METHOD \
79 METHODCAST(void (CLASS::*method)(GU_PrimPacked *, exint, TYPE)) \
80 { return (GU_PackedImpl::METHOD)(method); }
82 #define DECL_VGET_CAST(TYPE, METHOD, METHODCAST) \
83 template <typename CLASS> inline GU_PackedImpl::METHOD \
84 METHODCAST(void (CLASS::*method)(const GU_PrimPacked *, TYPE *, exint) const) \
85 { return (GU_PackedImpl::METHOD)(method); }
86 #define DECL_VSET_CAST(TYPE, METHOD, METHODCAST) \
87 template <typename CLASS> inline GU_PackedImpl::METHOD \
88 METHODCAST(void (CLASS::*method)(GU_PrimPacked *, const TYPE *, exint)) \
89 { return (GU_PackedImpl::METHOD)(method); }
100 DECL_GET_CAST(std::
string, StdStringGetter, StdStringGetterCast)
101 DECL_SET_CAST(const std::
string &, StdStringSetter, StdStringSetterCast)
103 DECL_SET_CAST(const UT_StringHolder &, StringHolderSetter, StringHolderSetterCast)
105 DECL_SET_CAST(const UT_OptionsHolder &, DictSetter, DictSetterCast)
113 DECL_TGET_CAST(const
char *, StringTupleGetter, StringTupleGetterCast)
114 DECL_TSET_CAST(const
char *, StringTupleSetter, StringTupleSetterCast)
115 DECL_TGET_CAST(const std::
string &, StdStringTupleGetter, StdStringTupleGetterCast)
116 DECL_TSET_CAST(const std::
string &, StdStringTupleSetter, StdStringTupleSetterCast)
117 DECL_TGET_CAST(const UT_StringHolder &, StringHolderTupleGetter, StringHolderTupleGetterCast)
118 DECL_TSET_CAST(const UT_StringHolder &, StringHolderTupleSetter, StringHolderTupleSetterCast)
119 DECL_TGET_CAST(const UT_OptionsHolder &, DictTupleGetter, DictTupleGetterCast)
120 DECL_TSET_CAST(const UT_OptionsHolder &, DictTupleSetter, DictTupleSetterCast)
133 template <typename CLASS>
141 StringArraySetterCast)
143 template <typename CLASS>
153 #undef DECL_GET_METHOD_CAST
154 #undef DECL_SET_METHOD_CAST
155 #undef DECL_TGET_METHOD_CAST
156 #undef DECL_TSET_METHOD_CAST
157 #undef DECL_VGET_METHOD_CAST
158 #undef DECL_VSET_METHOD_CAST
213 bool isDelayedLoad)
const;
220 {
return myIntrinsics.entries(); }
225 void getIntrinsicDefinition(
int idx,
230 void getIntrinsicDefinition(
int idx,
401 virtual
exint clearCachedGeometry();
GLuint GLsizei const GLchar * label
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
getFileOption("OpenEXR:storage") storage
#define DECL_SET_CAST(TYPE, METHOD, METHODCAST)
void(GU_PackedImpl::* DictArrayGetter)(const GU_PrimPacked *, UT_Array< UT_OptionsHolder > &) const
const UT_StringHolder & icon() const
JSON reader class which handles parsing of JSON or bJSON files.
Stores information about intrinsic attributes for classes.
exint GA_Size
Defines the bit width for index and offset types in GA.
#define DECL_VSET_CAST(TYPE, METHOD, METHODCAST)
#define SYS_DEPRECATED_REPLACE(__V__, __R__)
Class to load shared data.
#define DECL_TGET_CAST(TYPE, METHOD, METHODCAST)
DECL_SET_CAST(const UT_StringArray &, StringArraySetter, StringArraySetterCast) template< typename CLASS > inline GU_PackedImpl
Wrapper around hboost::intrusive_ptr.
GLuint const GLchar * name
GLsizei const GLchar *const * strings
void(GU_PackedImpl::* StringArrayGetter)(const GU_PrimPacked *, UT_StringArray &) const
const UT_StringHolder & label() const
GLenum GLsizei GLsizei GLint * values
bool isRegistered() const
#define DECL_TSET_CAST(TYPE, METHOD, METHODCAST)
#define DECL_VGET_CAST(TYPE, METHOD, METHODCAST)
int getIntrinsicCount() const
GU_PackedFactoryPrivate::IntrinsicDef IntrinsicDef
GA_PrimitiveDefinition::SharedDataLoader SharedDataLoader
Definition of a geometric primitive.
const GA_PrimitiveDefinition & typeDef() const
#define DECL_GET_CAST(TYPE, METHOD, METHODCAST)
const UT_StringHolder & name() const