7#ifndef PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H
8#define PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H
15#include "openvdb/openvdb.h"
17#include "pxr/imaging/hioOpenVDB/api.h"
19PXR_NAMESPACE_OPEN_SCOPE
30 virtual openvdb::GridBase::Ptr
GetGrid(
const std::string& name)
const = 0;
33 virtual openvdb::GridPtrVecPtr
GetGrids()
const = 0;
36PXR_NAMESPACE_CLOSE_SCOPE
Interface for accessing the contents of an asset.
Interface for an ArAsset subclass that enables direct access to 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.
virtual openvdb::GridPtrVecPtr GetGrids() const =0
Return a shared pointer to a vector of OpenVDB grids.