Loading...
Searching...
No Matches
pxrCameraProjectionAPIAdapter.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_API_ADAPTER_H
8#define PXR_USD_IMAGING_USD_RI_PXR_IMAGING_PXR_CAMERA_PROJECTION_API_ADAPTER_H
9
10#include "pxr/base/tf/token.h"
12#include "pxr/imaging/hd/dataSource.h"
13
14#include "pxr/imaging/hd/dataSourceLocator.h"
15#include "pxr/usd/usd/prim.h"
16#include "pxr/usdImaging/usdImaging/dataSourceStageGlobals.h"
17#include "pxr/usdImaging/usdImaging/types.h"
18#include "pxr/usdImaging/usdRiPxrImaging/api.h"
20
21#include "pxr/pxr.h"
22
23PXR_NAMESPACE_OPEN_SCOPE
24
25class UsdRiPxrImagingCameraProjectionAPIAdapter
27{
28public:
29 using BaseAdapter = UsdImagingAPISchemaAdapter;
30
31 USDRIPXRIMAGING_API
32 HdContainerDataSourceHandle
34 const UsdPrim& prim,
35 const TfToken& subprim,
36 const TfToken& appliedInstanceName,
37 const UsdImagingDataSourceStageGlobals& stageGlobals) override;
38
39 USDRIPXRIMAGING_API
42 const UsdPrim& prim,
43 const TfToken& subprim,
44 const TfToken& appliedInstanceName,
45 const TfTokenVector& properties,
46 UsdImagingPropertyInvalidationType invalidationType) override;
47};
48
49// For PxrCameraProjectionAPI schema applied on UsdGeomCamera that
50// allow specification of projection, if the schema expects relationships,
51// perform the following actions for each value of the environment variable.
52// true : Produce a warning message if connections are used.
53// false : Disallow the use of attribute connections for the purposes of
54// connecting projection.
55USDIMAGING_API
56extern TfEnvSetting<bool>
57 LEGACY_PXR_CAMERA_PROJECTION_TERMINAL_ALLOWED_AND_WARN;
58
59PXR_NAMESPACE_CLOSE_SCOPE
60
61#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
Environment setting variable.
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