-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathtokens.h
71 lines (63 loc) · 1.93 KB
/
tokens.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//
// Copyright © 2024 Weta Digital Limited
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef USDTRI_TOKENS_H
#define USDTRI_TOKENS_H
/// \file usdTri/tokens.h
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//
// This is an automatically generated file (by usdGenSchema.py).
// Do not hand-edit!
//
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include "pxr/pxr.h"
#include "./api.h"
#include "pxr/base/tf/staticData.h"
#include "pxr/base/tf/token.h"
#include <vector>
PXR_NAMESPACE_OPEN_SCOPE
/// \class UsdTriTokensType
///
/// \link UsdTriTokens \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.
///
/// UsdTriTokens also contains all of the \em allowedTokens values
/// declared for schema builtin attributes of 'token' scene description type.
/// Use UsdTriTokens like so:
///
/// \code
/// gprim.GetMyTokenValuedAttr().Set(UsdTriTokens->extent);
/// \endcode
struct UsdTriTokensType
{
USDTRI_API UsdTriTokensType();
/// \brief "extent"
///
/// UsdTriTriangle
const TfToken extent;
/// \brief "sideLength"
///
/// UsdTriTriangle
const TfToken sideLength;
/// \brief "Triangle"
///
/// Schema identifer and family for UsdTriTriangle
const TfToken Triangle;
/// A vector of all of the tokens listed above.
const std::vector<TfToken> allTokens;
};
/// \var UsdTriTokens
///
/// A global variable with static, efficient \link TfToken TfTokens\endlink
/// for use in all public USD API. \sa UsdTriTokensType
extern USDTRI_API TfStaticData<UsdTriTokensType> UsdTriTokens;
PXR_NAMESPACE_CLOSE_SCOPE
#endif