Loading...
Searching...
No Matches
pxrCameraProjectionAdapter.h
1//
2// Copyright 2025 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_RI_PXR_IMAGING_PXR_CAMERA_PROJECTION_ADAPTER_H
8#define PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_CAMERA_PROJECTION_ADAPTER_H
9
10#include "pxr/imaging/hd/dataSource.h"
11#include "pxr/imaging/hd/dataSourceLocator.h"
12
14#include "pxr/usdImaging/usdImaging/sceneIndexPrimAdapter.h"
15#include "pxr/usdImaging/usdImaging/types.h"
16#include "pxr/usdImaging/usdRiPxrImaging/api.h"
17
18#include "pxr/usd/usd/prim.h"
19
20#include "pxr/base/tf/token.h"
21
22#include "pxr/pxr.h"
23
24PXR_NAMESPACE_OPEN_SCOPE
25
26class UsdRiPxrImagingCameraProjectionAdapter
28{
29public:
30 using BaseAdapter = UsdImagingSceneIndexPrimAdapter;
31
32 UsdRiPxrImagingCameraProjectionAdapter();
33
34 USDRIPXRIMAGING_API
35 ~UsdRiPxrImagingCameraProjectionAdapter() override;
36
37 // ---------------------------------------------------------------------- //
39 // ---------------------------------------------------------------------- //
40
41 USDRIPXRIMAGING_API
43 GetImagingSubprims(
44 const UsdPrim& prim) override;
45
46 USDRIPXRIMAGING_API
48 GetImagingSubprimType(
49 const UsdPrim& prim,
50 const TfToken& subprim) override;
51
52 USDRIPXRIMAGING_API
53 HdContainerDataSourceHandle
54 GetImagingSubprimData(
55 const UsdPrim& prim,
56 const TfToken& subprim,
57 const UsdImagingDataSourceStageGlobals& stageGlobals) override;
58
59 USDRIPXRIMAGING_API
61 InvalidateImagingSubprim(
62 const UsdPrim& prim,
63 const TfToken& subprim,
64 const TfTokenVector& properties,
65 UsdImagingPropertyInvalidationType invalidationType) override;
66};
67
68PXR_NAMESPACE_CLOSE_SCOPE
69
70#endif // PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_CAMERA_PROJECTION_ADAPTER_H
Represents a set of data source locators closed under descendancy.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
This class is used as a context object with global stage information, that gets passed down to dataso...
The base class prim adapter for scene index support.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:117
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440