Loading...
Searching...
No Matches
HioOpenVDBArAssetInterface Class Referenceabstract

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
 
ArAssetoperator= (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< ArAssetGetDetachedAsset () const
 Returns an ArAsset with the contents of this asset detached from from this asset's serialized data.
 

Detailed Description

Interface for an ArAsset subclass that enables direct access to OpenVDB grids.

Definition at line 42 of file vdbAssetInterface.h.

Member Function Documentation

◆ GetGrid()

virtual openvdb::GridBase::Ptr GetGrid ( const std::string &  name) const
pure virtual

Return a shared pointer to an OpenVDB grid with name, or nullptr if no grid matching name exists.

◆ GetGrids()

virtual openvdb::GridPtrVecPtr GetGrids ( ) const
pure virtual

Return a shared pointer to a vector of OpenVDB grids.


The documentation for this class was generated from the following file: