24 #ifndef __GUSD_PRIMWRAPPER_H__
25 #define __GUSD_PRIMWRAPPER_H__
122 const UsdStagePtr& stage,
137 getUsdName(
int gtPrimId );
142 isGroupType(
int gtPrimId );
163 static bool registerPrimDefinitionFuncForWrite(
int gtPrimId,
166 bool isGroupType =
false,
167 const char* usdName = NULL );
170 static bool registerPrimDefinitionFuncForRead(
const TfToken& usdTypeName,
182 static int getStaticPrimitiveType();
186 return getStaticPrimitiveType();
190 virtual bool isValid()
const;
200 const char * viewportLod,
210 virtual bool redefine(
211 const UsdStagePtr& stage,
221 virtual bool updateFromGTPrim(
231 virtual void addLeadingBookend(
double curFrame,
double startFrame );
234 virtual void addTrailingBookend(
double curFrame );
252 static void addReversePolygonsAttrib(
298 bool forceWrite =
true );
307 bool updateAttributeFromGTPrim(
GT_Owner owner,
313 bool updatePrimvarFromGTPrim(
385 const char * templateName;
389 primNameFunc( NULL ),
390 isGroupType(
false ),
391 templateName(NULL) {}
396 const char * templateName_ ) :
397 writeFunc( writeFunc_ ),
398 primNameFunc( primNameFunc_ ),
399 isGroupType( isGroupType_ ),
400 templateName( templateName_ ) {}
403 struct TfTokenHashCmp {
407 static size_t hash(
const TfToken& key)
408 {
return key.
Hash(); }
414 TfToken, DefinitionForReadFunction, TfTokenHashCmp>
415 USDTypeToDefineFuncMap;
417 static GTTypeInfoMap s_gtTypeInfoMap;
418 static USDTypeToDefineFuncMap s_usdTypeToFuncMap;
419 static GTTypeSet s_supportedNativeGTTypes;
424 #endif // __GUSD_PRIMWRAPPER_H__
SIM_API const UT_StringHolder vertex
void markVisible(bool in)
Keep track of the visibility state of the prim for book marks.
A GT_Primitive that wraps a USD Prim.
UsdTimeCode m_lastXformSet
AttrLastValueDict m_lastAttrValueDict
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
GLsizei const GLchar *const * path
GLboolean GLboolean GLboolean GLboolean a
AttrLastValueEntry(const UsdTimeCode &time, GT_DataArrayHandle data_)
int getPrimitiveType() const final
std::pair< GT_Owner, std::string > AttrLastValueKeyType
IMATH_HOSTDEVICE constexpr bool equal(T1 a, T2 b, T3 t) IMATH_NOEXCEPT
static std::map< GT_Owner, TfToken > s_ownerToUsdInterp
UT_Function< GT_PrimitiveHandle(const UsdGeomImageable &, UsdTimeCode, GusdPurposeSet)> DefinitionForReadFunction
std::optional< T > UT_Optional
GusdPurposeSet m_purposes
UT_IntrusivePtr< GT_DataArray > GT_DataArrayHandle
UT_Function< GT_PrimitiveHandle(const GT_PrimitiveHandle &, const UsdStagePtr &, const SdfPath &, const GusdContext &)> DefinitionForWriteFunction
GLuint const GLchar * name
std::function< T > UT_Function
GLboolean GLboolean GLboolean b
The base class for all GT primitive types.
#define UT_ConcurrentHashMap
UsdTimeCode m_lastXformCompared
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
SIM_API const UT_StringHolder force
UT_Function< bool(const GT_PrimitiveHandle &, std::string &primName)> GetPrimNameFunction
#define PXR_NAMESPACE_CLOSE_SCOPE
UT_Function< GT_DataArrayHandle(const GT_DataArrayHandle &)> ResampleArrayFunction
UT_IntrusivePtr< GT_Primitive > GT_PrimitiveHandle
static std::map< GT_Owner, TfToken > s_ownerToUsdInterpCurve
size_t Hash() const
Return a size_t hash for this token.
std::map< SdfPath, UT_Matrix4D > GusdSimpleXformCache
UT_Map< AttrLastValueKeyType, AttrLastValueEntry > AttrLastValueDict