HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tokens.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef USDRI_TOKENS_H
8 #define USDRI_TOKENS_H
9 
10 /// \file usdRi/tokens.h
11 
12 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
13 //
14 // This is an automatically generated file (by usdGenSchema.py).
15 // Do not hand-edit!
16 //
17 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
18 
19 #include "pxr/pxr.h"
20 #include "pxr/usd/usdRi/api.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdRiTokensType
29 ///
30 /// \link UsdRiTokens \endlink provides static, efficient
31 /// \link TfToken TfTokens\endlink for use in all public USD API.
32 ///
33 /// These tokens are auto-generated from the module's schema, representing
34 /// property names, for when you need to fetch an attribute or relationship
35 /// directly by name, e.g. UsdPrim::GetAttribute(), in the most efficient
36 /// manner, and allow the compiler to verify that you spelled the name
37 /// correctly.
38 ///
39 /// UsdRiTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdRiTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdRiTokens->bspline);
45 /// \endcode
48  /// \brief "bspline"
49  ///
50  /// UsdSplineAPI - BSpline spline interpolation
52  /// \brief "cameraVisibility"
53  ///
54  /// UsdRenderPassAPI - This token represents the collection name to use with UsdCollectionAPI to set the camera visibility attribute on the prims in the collection for the RenderPass.
56  /// \brief "catmull-rom"
57  ///
58  /// UsdSplineAPI - Catmull-Rom spline interpolation
60  /// \brief "constant"
61  ///
62  /// UsdSplineAPI - Constant-value spline interpolation
64  /// \brief "interpolation"
65  ///
66  /// UsdSplineAPI - Interpolation attribute name
68  /// \brief "linear"
69  ///
70  /// UsdSplineAPI - Linear spline interpolation
71  const TfToken linear;
72  /// \brief "matte"
73  ///
74  /// UsdRenderPassAPI - This token represents the collection name to use with UsdCollectionAPI to set the matte attribute on the prims in the collection for the RenderPass.
75  const TfToken matte;
76  /// \brief "outputs:ri:displacement"
77  ///
78  /// UsdRiMaterialAPI
80  /// \brief "outputs:ri:surface"
81  ///
82  /// UsdRiMaterialAPI
84  /// \brief "outputs:ri:volume"
85  ///
86  /// UsdRiMaterialAPI
88  /// \brief "positions"
89  ///
90  /// UsdSplineAPI - Positions attribute name
92  /// \brief "ri"
93  ///
94  /// UsdShadeMaterial / Hydra render context token for UsdRi
96  /// \brief "spline"
97  ///
98  /// UsdSplineAPI - Namespace for spline attributes
99  const TfToken spline;
100  /// \brief "values"
101  ///
102  /// UsdSplineAPI - values attribute name
104  /// \brief "RiMaterialAPI"
105  ///
106  /// Schema identifer and family for UsdRiMaterialAPI
108  /// \brief "RiSplineAPI"
109  ///
110  /// Schema identifer and family for UsdRiSplineAPI
112  /// \brief "StatementsAPI"
113  ///
114  /// Schema identifer and family for UsdRiStatementsAPI
116  /// A vector of all of the tokens listed above.
117  const std::vector<TfToken> allTokens;
118 };
119 
120 /// \var UsdRiTokens
121 ///
122 /// A global variable with static, efficient \link TfToken TfTokens\endlink
123 /// for use in all public USD API. \sa UsdRiTokensType
125 
127 
128 #endif
const TfToken renderContext
"ri"
Definition: tokens.h:95
const TfToken outputsRiVolume
"outputs:ri:volume"
Definition: tokens.h:87
const TfToken cameraVisibility
"cameraVisibility"
Definition: tokens.h:55
const TfToken outputsRiSurface
"outputs:ri:surface"
Definition: tokens.h:83
const TfToken spline
"spline"
Definition: tokens.h:99
Definition: token.h:70
const TfToken RiSplineAPI
"RiSplineAPI"
Definition: tokens.h:111
USDRI_API TfStaticData< UsdRiTokensType > UsdRiTokens
const TfToken values
"values"
Definition: tokens.h:103
const TfToken outputsRiDisplacement
"outputs:ri:displacement"
Definition: tokens.h:79
const TfToken catmullRom
"catmull-rom"
Definition: tokens.h:59
const TfToken matte
"matte"
Definition: tokens.h:75
#define USDRI_API
Definition: api.h:23
const TfToken positions
"positions"
Definition: tokens.h:91
const TfToken RiMaterialAPI
"RiMaterialAPI"
Definition: tokens.h:107
const TfToken constant
"constant"
Definition: tokens.h:63
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
const TfToken interpolation
"interpolation"
Definition: tokens.h:67
const TfToken linear
"linear"
Definition: tokens.h:71
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
const TfToken bspline
"bspline"
Definition: tokens.h:51
USDRI_API UsdRiTokensType()
const TfToken StatementsAPI
"StatementsAPI"
Definition: tokens.h:115
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:117