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 USDMEDIA_TOKENS_H
8 #define USDMEDIA_TOKENS_H
9 
10 /// \file usdMedia/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/usdMedia/api.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdMediaTokensType
29 ///
30 /// \link UsdMediaTokens \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 /// UsdMediaTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdMediaTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdMediaTokens->auralMode);
45 /// \endcode
48  /// \brief "auralMode"
49  ///
50  /// UsdMediaSpatialAudio
52  /// \brief "defaultImage"
53  ///
54  /// Dictionary key in a Thumbnails dictionary for the default thumbnail image.
56  /// \brief "endTime"
57  ///
58  /// UsdMediaSpatialAudio
60  /// \brief "filePath"
61  ///
62  /// UsdMediaSpatialAudio
64  /// \brief "gain"
65  ///
66  /// UsdMediaSpatialAudio
67  const TfToken gain;
68  /// \brief "loopFromStage"
69  ///
70  /// Possible value for UsdMediaSpatialAudio::GetPlaybackModeAttr()
72  /// \brief "loopFromStart"
73  ///
74  /// Possible value for UsdMediaSpatialAudio::GetPlaybackModeAttr()
76  /// \brief "loopFromStartToEnd"
77  ///
78  /// Possible value for UsdMediaSpatialAudio::GetPlaybackModeAttr()
80  /// \brief "mediaOffset"
81  ///
82  /// UsdMediaSpatialAudio
84  /// \brief "nonSpatial"
85  ///
86  /// Possible value for UsdMediaSpatialAudio::GetAuralModeAttr()
88  /// \brief "onceFromStart"
89  ///
90  /// Fallback value for UsdMediaSpatialAudio::GetPlaybackModeAttr()
92  /// \brief "onceFromStartToEnd"
93  ///
94  /// Possible value for UsdMediaSpatialAudio::GetPlaybackModeAttr()
96  /// \brief "playbackMode"
97  ///
98  /// UsdMediaSpatialAudio
100  /// \brief "previews"
101  ///
102  /// Dictionary key in the assetInfo dictionary for asset previews sub-dictionary.
104  /// \brief "previews:thumbnails"
105  ///
106  /// Full key in the assetInfo dictionary for thumbnails previews dictionary.
108  /// \brief "previews:thumbnails:default"
109  ///
110  /// Full key in the assetInfo dictionary for the "default" thumbnails in the previews dictionary.
112  /// \brief "spatial"
113  ///
114  /// Fallback value for UsdMediaSpatialAudio::GetAuralModeAttr()
116  /// \brief "startTime"
117  ///
118  /// UsdMediaSpatialAudio
120  /// \brief "thumbnails"
121  ///
122  /// Dictionary key in the assetInfo["previews"] dictionary for thumbnails previews sub-dictionary.
124  /// \brief "AssetPreviewsAPI"
125  ///
126  /// Schema identifer and family for UsdMediaAssetPreviewsAPI
128  /// \brief "SpatialAudio"
129  ///
130  /// Schema identifer and family for UsdMediaSpatialAudio
132  /// A vector of all of the tokens listed above.
133  const std::vector<TfToken> allTokens;
134 };
135 
136 /// \var UsdMediaTokens
137 ///
138 /// A global variable with static, efficient \link TfToken TfTokens\endlink
139 /// for use in all public USD API. \sa UsdMediaTokensType
141 
143 
144 #endif
const TfToken mediaOffset
"mediaOffset"
Definition: tokens.h:83
const TfToken loopFromStartToEnd
"loopFromStartToEnd"
Definition: tokens.h:79
USDMEDIA_API UsdMediaTokensType()
const TfToken thumbnails
"thumbnails"
Definition: tokens.h:123
const TfToken previewThumbnails
"previews:thumbnails"
Definition: tokens.h:107
const TfToken startTime
"startTime"
Definition: tokens.h:119
USDMEDIA_API TfStaticData< UsdMediaTokensType > UsdMediaTokens
const TfToken endTime
"endTime"
Definition: tokens.h:59
Definition: token.h:70
const TfToken playbackMode
"playbackMode"
Definition: tokens.h:99
const TfToken previewThumbnailsDefault
"previews:thumbnails:default"
Definition: tokens.h:111
const TfToken loopFromStart
"loopFromStart"
Definition: tokens.h:75
const TfToken auralMode
"auralMode"
Definition: tokens.h:51
#define USDMEDIA_API
Definition: api.h:23
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:133
const TfToken AssetPreviewsAPI
"AssetPreviewsAPI"
Definition: tokens.h:127
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
const TfToken filePath
"filePath"
Definition: tokens.h:63
const TfToken nonSpatial
"nonSpatial"
Definition: tokens.h:87
const TfToken loopFromStage
"loopFromStage"
Definition: tokens.h:71
const TfToken SpatialAudio
"SpatialAudio"
Definition: tokens.h:131
const TfToken spatial
"spatial"
Definition: tokens.h:115
const TfToken defaultImage
"defaultImage"
Definition: tokens.h:55
const TfToken onceFromStartToEnd
"onceFromStartToEnd"
Definition: tokens.h:95
const TfToken onceFromStart
"onceFromStart"
Definition: tokens.h:91
const TfToken previews
"previews"
Definition: tokens.h:103
const TfToken gain
"gain"
Definition: tokens.h:67