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 USDMTLX_TOKENS_H
8 #define USDMTLX_TOKENS_H
9 
10 /// \file usdMtlx/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/usdMtlx/api.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdMtlxTokensType
29 ///
30 /// \link UsdMtlxTokens \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 /// UsdMtlxTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdMtlxTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdMtlxTokens->configMtlxVersion);
45 /// \endcode
48  /// \brief "config:mtlx:version"
49  ///
50  /// UsdMtlxMaterialXConfigAPI
52  /// \brief "out"
53  ///
54  /// Special token for the usdMtlx library.
56  /// \brief "MaterialXConfigAPI"
57  ///
58  /// Schema identifer and family for UsdMtlxMaterialXConfigAPI
60  /// A vector of all of the tokens listed above.
61  const std::vector<TfToken> allTokens;
62 };
63 
64 /// \var UsdMtlxTokens
65 ///
66 /// A global variable with static, efficient \link TfToken TfTokens\endlink
67 /// for use in all public USD API. \sa UsdMtlxTokensType
69 
71 
72 #endif
const TfToken DefaultOutputName
"out"
Definition: tokens.h:55
USDMTLX_API TfStaticData< UsdMtlxTokensType > UsdMtlxTokens
Definition: token.h:70
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:61
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
const TfToken MaterialXConfigAPI
"MaterialXConfigAPI"
Definition: tokens.h:59
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
const TfToken configMtlxVersion
"config:mtlx:version"
Definition: tokens.h:51
USDMTLX_API UsdMtlxTokensType()
#define USDMTLX_API
Definition: api.h:23