// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trademarks. This License does not grant permission to use the trade // names, trademarks, service marks, or product names of the Licensor // and its affiliates, except as required to comply with Section 4(c) of // the License and to reproduce the content of the NOTICE file. // // You may obtain a copy of the Apache License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the Apache License with the above modification is // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the Apache License for the specific // language governing permissions and limitations under the Apache License. // #ifndef USDRI_TOKENS_H #define USDRI_TOKENS_H /// \file usdRi/tokens.h // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX // // This is an automatically generated file (by usdGenSchema.py). // Do not hand-edit! // // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #include "pxr/pxr.h" #include "pxr/usd/usdRi/api.h" #include "pxr/base/tf/staticData.h" #include "pxr/base/tf/token.h" #include PXR_NAMESPACE_OPEN_SCOPE /// \class UsdRiTokensType /// /// \link UsdRiTokens \endlink provides static, efficient /// \link TfToken TfTokens\endlink for use in all public USD API. /// /// These tokens are auto-generated from the module's schema, representing /// property names, for when you need to fetch an attribute or relationship /// directly by name, e.g. UsdPrim::GetAttribute(), in the most efficient /// manner, and allow the compiler to verify that you spelled the name /// correctly. /// /// UsdRiTokens also contains all of the \em allowedTokens values /// declared for schema builtin attributes of 'token' scene description type. /// Use UsdRiTokens like so: /// /// \code /// gprim.GetMyTokenValuedAttr().Set(UsdRiTokens->bspline); /// \endcode struct UsdRiTokensType { USDRI_API UsdRiTokensType(); /// \brief "bspline" /// /// UsdSplineAPI - BSpline spline interpolation const TfToken bspline; /// \brief "catmull-rom" /// /// UsdSplineAPI - Catmull-Rom spline interpolation const TfToken catmullRom; /// \brief "constant" /// /// UsdSplineAPI - Constant-value spline interpolation const TfToken constant; /// \brief "interpolation" /// /// UsdSplineAPI - Interpolation attribute name const TfToken interpolation; /// \brief "linear" /// /// UsdSplineAPI - Linear spline interpolation const TfToken linear; /// \brief "outputs:ri:displacement" /// /// UsdRiMaterialAPI const TfToken outputsRiDisplacement; /// \brief "outputs:ri:surface" /// /// UsdRiMaterialAPI const TfToken outputsRiSurface; /// \brief "outputs:ri:volume" /// /// UsdRiMaterialAPI const TfToken outputsRiVolume; /// \brief "positions" /// /// UsdSplineAPI - Positions attribute name const TfToken positions; /// \brief "ri" /// /// UsdShadeMaterial / Hydra render context token for UsdRi const TfToken renderContext; /// \brief "ri:texture:gamma" /// /// UsdRiTextureAPI const TfToken riTextureGamma; /// \brief "ri:texture:saturation" /// /// UsdRiTextureAPI const TfToken riTextureSaturation; /// \brief "spline" /// /// UsdSplineAPI - Namespace for spline attributes const TfToken spline; /// \brief "values" /// /// UsdSplineAPI - values attribute name const TfToken values; /// A vector of all of the tokens listed above. const std::vector allTokens; }; /// \var UsdRiTokens /// /// A global variable with static, efficient \link TfToken TfTokens\endlink /// for use in all public USD API. \sa UsdRiTokensType extern USDRI_API TfStaticData UsdRiTokens; PXR_NAMESPACE_CLOSE_SCOPE #endif