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 EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_USD_RI_PXR_IMAGING_PXR_CAMERA_PROJECTION_ADAPTER_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_USD_RI_PXR_IMAGING_PXR_CAMERA_PROJECTION_ADAPTER_H
9
10#include "usdRiPxrImaging/api.h"
11
12#include "pxr/imaging/hd/dataSource.h"
13#include "pxr/imaging/hd/dataSourceLocator.h"
14
16#include "pxr/usdImaging/usdImaging/sceneIndexPrimAdapter.h"
17#include "pxr/usdImaging/usdImaging/types.h"
18
19#include "pxr/usd/usd/prim.h"
20
21#include "pxr/base/tf/token.h"
22
23#include "pxr/pxr.h"
24
25PXR_NAMESPACE_OPEN_SCOPE
26
27class UsdRiPxrImagingCameraProjectionAdapter
29{
30public:
31 using BaseAdapter = UsdImagingSceneIndexPrimAdapter;
32
33 UsdRiPxrImagingCameraProjectionAdapter();
34
35 USDRIPXRIMAGING_API
36 ~UsdRiPxrImagingCameraProjectionAdapter() override;
37
38 // ---------------------------------------------------------------------- //
40 // ---------------------------------------------------------------------- //
41
42 USDRIPXRIMAGING_API
44 GetImagingSubprims(
45 const UsdPrim& prim) override;
46
47 USDRIPXRIMAGING_API
49 GetImagingSubprimType(
50 const UsdPrim& prim,
51 const TfToken& subprim) override;
52
53 USDRIPXRIMAGING_API
54 HdContainerDataSourceHandle
55 GetImagingSubprimData(
56 const UsdPrim& prim,
57 const TfToken& subprim,
58 const UsdImagingDataSourceStageGlobals& stageGlobals) override;
59
60 USDRIPXRIMAGING_API
62 InvalidateImagingSubprim(
63 const UsdPrim& prim,
64 const TfToken& subprim,
65 const TfTokenVector& properties,
66 UsdImagingPropertyInvalidationType invalidationType) override;
67};
68
69PXR_NAMESPACE_CLOSE_SCOPE
70
71#endif // EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_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