Loading...
Searching...
No Matches
pxrVolumeAPIAdapter.h
Go to the documentation of this file.
1//
2// Copyright 2026 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_USD_RI_PXR_IMAGING_PXR_VOLUME_API_ADAPTER_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_USD_RI_PXR_IMAGING_PXR_VOLUME_API_ADAPTER_H
9
11
12#include "usdRiPxrImaging/api.h"
13
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18class UsdRiPxrImagingVolumeAPIAdapter : public UsdImagingAPISchemaAdapter
19{
20public:
21 using BaseAdapter = UsdImagingAPISchemaAdapter;
22
23#if PXR_VERSION >= 2605
24
25 USDRIPXRIMAGING_API
27 UsdPrim const& prim,
28 TfToken const& subprim,
29 TfToken const& appliedInstanceName) override;
30
31 USDRIPXRIMAGING_API
32 HdContainerDataSourceHandle GetImagingSubprimData(
33 UsdPrim const& prim,
34 TfToken const& subprim,
35 TfToken const& appliedInstanceName,
36 const UsdImagingDataSourceStageGlobals &stageGlobals) override;
37
38 USDRIPXRIMAGING_API
40 UsdPrim const& prim,
41 TfToken const& subprim,
42 TfToken const& appliedInstanceName,
43 TfTokenVector const& properties,
44 UsdImagingPropertyInvalidationType invalidationType) override;
45
46#endif // PXR_VERSION >= 2605
47};
48
49PXR_NAMESPACE_CLOSE_SCOPE
50
51#endif
Represents a set of data source locators closed under descendancy.
Token for efficient comparison, assignment, and hashing of known strings.
Definition token.h:81
Base class for all API schema adapters.
virtual USDIMAGING_API HdContainerDataSourceHandle GetImagingSubprimData(UsdPrim const &prim, TfToken const &subprim, TfToken const &appliedInstanceName, const UsdImagingDataSourceStageGlobals &stageGlobals)
Returns an HdContainerDataSourceHandle representing the API schema's contributions to the primary pri...
virtual USDIMAGING_API TfToken GetImagingSubprimType(UsdPrim const &prim, TfToken const &subprim, TfToken const &appliedInstanceName)
Called to determine whether an API schema specifies the hydra type of a given prim previously defined...
virtual USDIMAGING_API HdDataSourceLocatorSet InvalidateImagingSubprim(UsdPrim const &prim, TfToken const &subprim, TfToken const &appliedInstanceName, TfTokenVector const &properties, UsdImagingPropertyInvalidationType invalidationType)
Given the names of USD properties which have changed, an adapter may provide a HdDataSourceLocatorSet...
This class is used as a context object with global stage information, that gets passed down to dataso...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition prim.h:117
std::vector< TfToken > TfTokenVector
Convenience types.
Definition token.h:489