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"
36PXR_NAMESPACE_OPEN_SCOPE
47 virtual openvdb::GridBase::Ptr
GetGrid(
const std::string& name)
const = 0;
50 virtual openvdb::GridPtrVecPtr
GetGrids()
const = 0;
53PXR_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.