24 #ifndef PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H 25 #define PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H 32 #include "openvdb/openvdb.h" 34 #include "pxr/imaging/hioOpenVDB/api.h" 36 PXR_NAMESPACE_OPEN_SCOPE
47 virtual openvdb::GridBase::Ptr
GetGrid(
const std::string& name)
const = 0;
50 virtual openvdb::GridPtrVecPtr
GetGrids()
const = 0;
53 PXR_NAMESPACE_CLOSE_SCOPE
55 #endif // PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H Interface for an ArAsset subclass that enables direct access to OpenVDB grids.
Interface for accessing the contents of an asset.
virtual openvdb::GridPtrVecPtr GetGrids() const =0
Return a shared pointer to a vector of OpenVDB grids.
virtual openvdb::GridBase::Ptr GetGrid(const std::string &name) const =0
Return a shared pointer to an OpenVDB grid with name, or nullptr if no grid matching name exists.