Loading...
Searching...
No Matches
vdbAssetInterface.h
Go to the documentation of this file.
1//
2// Copyright 2021 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H
8#define PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/ar/asset.h"
14
15#include "openvdb/openvdb.h"
16
17#include "pxr/imaging/hioOpenVDB/api.h"
18
19PXR_NAMESPACE_OPEN_SCOPE
20
26{
27public:
30 virtual openvdb::GridBase::Ptr GetGrid(const std::string& name) const = 0;
31
33 virtual openvdb::GridPtrVecPtr GetGrids() const = 0;
34};
35
36PXR_NAMESPACE_CLOSE_SCOPE
37
38#endif // PXR_IMAGING_HIO_OPENVDB_ASSET_INTERFACE_H
Interface for accessing the contents of an asset.
Definition: asset.h:27
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.