25 #ifndef __GUSD_GU_PACKEDIMPL_H__
26 #define __GUSD_GU_PACKEDIMPL_H__
89 const char*
lod =
nullptr,
102 const char*
lod =
nullptr,
113 const char*
lod =
nullptr,
280 bool importInheritedPrimvars,
282 bool translateSTtoUV,
295 bool importInheritedPrimvars,
297 bool translateSTtoUV,
341 mutable bool m_transformCacheValid;
344 mutable bool m_prototypePathCacheValid;
354 #endif // __GUSD_GU_PACKEDIMPL_H__
SDF_API const char * GetText() const
bool unpackUsingPolygons(GU_Detail &destgdp, const GU_PrimPacked *prim) const override
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
void setSrcPrimPath(GU_PrimPacked *prim, const UT_StringHolder &p)
UT_StringHolder intrinsicType(const GU_PrimPacked *prim) const
GU_PackedImpl * copy() const override
Create a copy of this resolver.
UT_StringHolder intrinsicAltFileName() const
UsdTimeCode frame() const
Used to pass options and map offset values during saving.
*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
GT_PrimitiveHandle fullGT() const
exint getNumPurposes(const GU_PrimPacked *prim) const
GLsizei const GLchar *const * string
GA_Size usdLocalToWorldTransformSize(const GU_PrimPacked *prim) const
UT_StringHolder intrinsicAltFileName(const GU_PrimPacked *prim) const
UT_StringHolder intrinsicFileName() const
bool load(GU_PrimPacked *prim, const UT_Options &options, const GA_LoadMap &map) override
Give a UT_Options of load data, create resolver data for the primitive.
UsdPrim getUsdPrim(UT_ErrorSeverity sev=UT_ERROR_ABORT) const
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
void setSrcPrimPath(const UT_StringHolder &p)
void setFileName(GU_PrimPacked *prim, const UT_StringHolder &fileName)
fpreal intrinsicFrame(const GU_PrimPacked *prim) const
static GA_PrimitiveTypeId typeId()
Get the type ID for the packed USD primitive type.
void getIntrinsicPurposes(const GU_PrimPacked *prim, UT_StringArray &purposes) const
const UT_StringHolder & altFileName() const
exint GA_Size
Defines the bit width for index and offset types in GA.
bool getRenderingBounds(UT_BoundingBox &box) const override
UT_StringHolder intrinsicPrimPath() const
void getWidthRange(fpreal &min, fpreal &max) const override
bool save(UT_Options &options, const GA_SaveMap &map) const override
Copy the resolver data into the UT_Options for saving.
const UT_Matrix4D & getUsdTransform() const
void usdLocalToWorldTransform(fpreal64 *val, exint size) const
UT_StringHolder intrinsicType() const
GU_PackedFactory * getFactory() const override
Get the factory associated with this procedural.
UT_StringHolder intrinsicPrimPath(const GU_PrimPacked *prim) const
bool getLocalTransform(UT_Matrix4D &m) const override
void setFrame(GU_PrimPacked *prim, fpreal frame)
void usdLocalToWorldTransform(const GU_PrimPacked *prim, fpreal64 *val, exint size) const
~GusdGU_PackedUSD() override
bool getBounds(UT_BoundingBox &box) const override
Get the bounding box for the geometry (not including transforms)
void setAltFileName(GU_PrimPacked *prim, const UT_StringHolder &fileName)
void setIntrinsicPurposes(GU_PrimPacked *prim, const UT_StringArray &purposes)
void setPurposes(GU_PrimPacked *prim, GusdPurposeSet purposes)
void setAltFileName(const UT_StringHolder &fileName)
GA_API const UT_StringHolder transform
bool isValid() const override
Test whether the deferred load primitive data is valid.
PXR_NAMESPACE_OPEN_SCOPE typedef void(* GusdPackedUSDTracker)(const GU_PackedImpl *prim, bool create)
const UT_StringHolder & fileName() const
void getVelocityRange(UT_Vector3 &min, UT_Vector3 &max) const override
UT_StringHolder intrinsicSrcPrimPath(const GU_PrimPacked *prim) const
void setPrimPath(GU_PrimPacked *prim, const UT_StringHolder &p)
static void mergeGeometry(GU_Detail &destgdp, UT_Array< GU_DetailHandle > &details)
A map of string to various well defined value types.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
void getIntrinsicPurposes(UT_StringArray &purposes) const
GA_Size usdLocalToWorldTransformSize() const
exint getNumPurposes() const
GusdPurposeSet getPurposes() const
static void install(GA_PrimitiveFactory &factory)
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
#define PXR_NAMESPACE_CLOSE_SCOPE
void countMemory(UT_MemoryCounter &counter, bool inclusive) const override
static void setPackedUSDTracker(GusdPackedUSDTracker tracker)
bool unpackGeometry(GU_Detail &destgdp, const GU_Detail *srcgdp, const GA_Offset srcprimoff, const UT_StringRef &primvarPattern, bool importInheritedPrimvars, const UT_StringRef &attributePattern, bool translateSTtoUV, const UT_StringRef &nonTransformingPrimvarPattern, const UT_Matrix4D *transform, const GT_RefineParms *parms=nullptr) const
exint index(const GU_PrimPacked *prim) const
UT_StringHolder intrinsicSrcPrimPath() const
bool getInstanceKey(UT_Options &key) const
GUSD_API double GetNumericTime(UsdTimeCode time)
bool unpack(GU_Detail &destgdp, const UT_Matrix4D *transform) const override
const SdfPath & srcPrimPath() const
bool unpackWithPrim(GU_Detail &destgdp, const UT_Matrix4D *transform, const GU_PrimPacked *prim) const override
static GU_PrimPacked * Build(GU_Detail &detail, const UT_StringHolder &fileName, const SdfPath &primPath, UsdTimeCode frame, const char *lod=nullptr, GusdPurposeSet purposes=GUSD_PURPOSE_PROXY, const UsdPrim &prim=UsdPrim(), const UT_Matrix4D *xform=nullptr, PivotLocation pivotloc=PivotLocation::Origin)
void update(GU_PrimPacked *prim, const UT_Options &options) override
bool isPointInstance() const
void clearData() override
UT_StringHolder intrinsicFileName(const GU_PrimPacked *prim) const
fpreal intrinsicFrame() const
int64 getMemoryUsage(bool inclusive) const override
Report memory usage (includes all shared memory)
void setIndex(GU_PrimPacked *prim, exint i)
const SdfPath & primPath() const