34 const char *
className()
const override {
return "GT_PrimVDB"; }
62 int nsegments)
const override;
81 myUniformList = uniform;
85 {
return myUniformList; }
88 const openvdb::GridBase *
getGrid() {
return &myVDB->getGrid(); }
119 vdbh =
new GT_PrimVDB(g->getGeometry(0), prim_list[0]);
virtual bool updateGeoPrim(const GU_ConstDetailHandle &dtl, const GT_RefineParms &parms)
update any cached data for geometry and its attributes
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
virtual const GT_ViewportRefineOptions & viewportRefineOptions() const
int getMotionSegments() const override
Collection data container.
Trivial collector class for VDBs - 1 GT_PrimVDB per VDB primitive.
SYS_FORCE_INLINE const openvdb::GridBase * getGrid()
UT_Vector3F getPrimColor() const
const char * className() const override
The base class for all GT primitive types.
const GEO_PrimVDB * getGeoPrimitive() const
Processes primitives generated by refinement process.
void setUniformAttributes(const GT_AttributeListHandle &uniform)
Set the list of uniform attributes.
GT_PrimitiveHandle doSoftCopy() const override
GT_PrimitiveHandle collect(const GT_GEODetailListHandle &g, const GEO_Primitive *const *prim_list, int, GT_GEOPrimCollectData *) const override
~GT_GEOPrimCollectVDB() override
GA_Offset getPointOffset() const
const GU_ConstDetailHandle & getDetail() const
UT_SharedPtr< GT_GEODetailList > GT_GEODetailListHandle
GA_Offset getPrimitiveOffset() const
const GT_AttributeListHandle & getUniformAttributes() const override
virtual void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const =0
int64 getMemoryUsage() const override
int getPrimitiveType() const override