Loading...
Searching...
No Matches
collectionAPIAdapter.h
1//
2// Copyright 2022 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_USD_IMAGING_USD_IMAGING_COLLECTION_API_ADAPTER_H
8#define PXR_USD_IMAGING_USD_IMAGING_COLLECTION_API_ADAPTER_H
9
11
12PXR_NAMESPACE_OPEN_SCOPE
13
14class UsdImagingCollectionAPIAdapter : public UsdImagingAPISchemaAdapter
15{
16public:
17
18 using BaseAdapter = UsdImagingAPISchemaAdapter;
19
20 USDIMAGING_API
21 HdContainerDataSourceHandle GetImagingSubprimData(
22 UsdPrim const& prim,
23 TfToken const& subprim,
24 TfToken const& appliedInstanceName,
25 const UsdImagingDataSourceStageGlobals &stageGlobals) override;
26
27 USDIMAGING_API
29 UsdPrim const& prim,
30 TfToken const& subprim,
31 TfToken const& appliedInstanceName,
32 TfTokenVector const& properties,
33 UsdImagingPropertyInvalidationType invalidationType) override;
34};
35
36PXR_NAMESPACE_CLOSE_SCOPE
37
38#endif
Represents a set of data source locators closed under descendancy.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
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 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:440