![]() |
|
Interface for an ArAsset subclass that enables direct access to OpenVDB grids. More...
#include <vdbAssetInterface.h>
Inheritance diagram for HioOpenVDBArAssetInterface:Public Member Functions | |
| 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. | |
| virtual openvdb::GridPtrVecPtr | GetGrids () const =0 |
| Return a shared pointer to a vector of OpenVDB grids. | |
Public Member Functions inherited from ArAsset | |
| ArAsset (const ArAsset &)=delete | |
| ArAsset & | operator= (const ArAsset &)=delete |
| virtual AR_API size_t | GetSize () const =0 |
| Returns size of the asset. | |
| virtual AR_API std::shared_ptr< const char > | GetBuffer () const =0 |
| Returns a pointer to a buffer with the contents of the asset, with size given by GetSize(). | |
| virtual AR_API size_t | Read (void *buffer, size_t count, size_t offset) const =0 |
Read count bytes at offset from the beginning of the asset into buffer. | |
| virtual AR_API std::pair< FILE *, size_t > | GetFileUnsafe () const =0 |
| Returns a read-only FILE* handle and offset for this asset if available, or (nullptr, 0) otherwise. | |
| virtual AR_API std::shared_ptr< ArAsset > | GetDetachedAsset () const |
| Returns an ArAsset with the contents of this asset detached from from this asset's serialized data. | |
Interface for an ArAsset subclass that enables direct access to OpenVDB grids.
Definition at line 25 of file vdbAssetInterface.h.
|
pure virtual |
Return a shared pointer to an OpenVDB grid with name, or nullptr if no grid matching name exists.
|
pure virtual |
Return a shared pointer to a vector of OpenVDB grids.