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 USDPHYSICS_TOKENS_H
8 #define USDPHYSICS_TOKENS_H
9 
10 /// \file usdPhysics/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/usdPhysics/api.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdPhysicsTokensType
29 ///
30 /// \link UsdPhysicsTokens \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 /// UsdPhysicsTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdPhysicsTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdPhysicsTokens->acceleration);
45 /// \endcode
48  /// \brief "acceleration"
49  ///
50  /// Possible value for UsdPhysicsDriveAPI::GetTypeAttr()
52  /// \brief "angular"
53  ///
54  /// This token represents the angular degree of freedom used in Revolute Joint Drive.
56  /// \brief "boundingCube"
57  ///
58  /// Possible value for UsdPhysicsMeshCollisionAPI::GetApproximationAttr()
60  /// \brief "boundingSphere"
61  ///
62  /// Possible value for UsdPhysicsMeshCollisionAPI::GetApproximationAttr()
64  /// \brief "colliders"
65  ///
66  /// This token represents the collection name to use with UsdCollectionAPI to represent colliders of a CollisionGroup prim.
68  /// \brief "convexDecomposition"
69  ///
70  /// Possible value for UsdPhysicsMeshCollisionAPI::GetApproximationAttr()
72  /// \brief "convexHull"
73  ///
74  /// Possible value for UsdPhysicsMeshCollisionAPI::GetApproximationAttr()
76  /// \brief "distance"
77  ///
78  /// This token represents the distance limit used for generic D6 joint.
80  /// \brief "drive"
81  ///
82  /// Property namespace prefix for the UsdPhysicsDriveAPI schema.
83  const TfToken drive;
84  /// \brief "drive:__INSTANCE_NAME__:physics:damping"
85  ///
86  /// UsdPhysicsDriveAPI
88  /// \brief "drive:__INSTANCE_NAME__:physics:maxForce"
89  ///
90  /// UsdPhysicsDriveAPI
92  /// \brief "drive:__INSTANCE_NAME__:physics:stiffness"
93  ///
94  /// UsdPhysicsDriveAPI
96  /// \brief "drive:__INSTANCE_NAME__:physics:targetPosition"
97  ///
98  /// UsdPhysicsDriveAPI
100  /// \brief "drive:__INSTANCE_NAME__:physics:targetVelocity"
101  ///
102  /// UsdPhysicsDriveAPI
104  /// \brief "drive:__INSTANCE_NAME__:physics:type"
105  ///
106  /// UsdPhysicsDriveAPI
108  /// \brief "force"
109  ///
110  /// Fallback value for UsdPhysicsDriveAPI::GetTypeAttr()
111  const TfToken force;
112  /// \brief "kilogramsPerUnit"
113  ///
114  /// Stage-level metadata that encodes a scene's linear unit of measure as kilograms per encoded unit.
116  /// \brief "limit"
117  ///
118  /// Property namespace prefix for the UsdPhysicsLimitAPI schema.
119  const TfToken limit;
120  /// \brief "limit:__INSTANCE_NAME__:physics:high"
121  ///
122  /// UsdPhysicsLimitAPI
124  /// \brief "limit:__INSTANCE_NAME__:physics:low"
125  ///
126  /// UsdPhysicsLimitAPI
128  /// \brief "linear"
129  ///
130  /// This token represents the linear degree of freedom used in Prismatic Joint Drive.
132  /// \brief "meshSimplification"
133  ///
134  /// Possible value for UsdPhysicsMeshCollisionAPI::GetApproximationAttr()
136  /// \brief "none"
137  ///
138  /// Fallback value for UsdPhysicsMeshCollisionAPI::GetApproximationAttr()
139  const TfToken none;
140  /// \brief "physics:angularVelocity"
141  ///
142  /// UsdPhysicsRigidBodyAPI
144  /// \brief "physics:approximation"
145  ///
146  /// UsdPhysicsMeshCollisionAPI
148  /// \brief "physics:axis"
149  ///
150  /// UsdPhysicsRevoluteJoint, UsdPhysicsPrismaticJoint, UsdPhysicsSphericalJoint
152  /// \brief "physics:body0"
153  ///
154  /// UsdPhysicsJoint
156  /// \brief "physics:body1"
157  ///
158  /// UsdPhysicsJoint
160  /// \brief "physics:breakForce"
161  ///
162  /// UsdPhysicsJoint
164  /// \brief "physics:breakTorque"
165  ///
166  /// UsdPhysicsJoint
168  /// \brief "physics:centerOfMass"
169  ///
170  /// UsdPhysicsMassAPI
172  /// \brief "physics:collisionEnabled"
173  ///
174  /// UsdPhysicsCollisionAPI, UsdPhysicsJoint
176  /// \brief "physics:coneAngle0Limit"
177  ///
178  /// UsdPhysicsSphericalJoint
180  /// \brief "physics:coneAngle1Limit"
181  ///
182  /// UsdPhysicsSphericalJoint
184  /// \brief "physics:density"
185  ///
186  /// UsdPhysicsMassAPI, UsdPhysicsMaterialAPI
188  /// \brief "physics:diagonalInertia"
189  ///
190  /// UsdPhysicsMassAPI
192  /// \brief "physics:dynamicFriction"
193  ///
194  /// UsdPhysicsMaterialAPI
196  /// \brief "physics:excludeFromArticulation"
197  ///
198  /// UsdPhysicsJoint
200  /// \brief "physics:filteredGroups"
201  ///
202  /// UsdPhysicsCollisionGroup
204  /// \brief "physics:filteredPairs"
205  ///
206  /// UsdPhysicsFilteredPairsAPI
208  /// \brief "physics:gravityDirection"
209  ///
210  /// UsdPhysicsScene
212  /// \brief "physics:gravityMagnitude"
213  ///
214  /// UsdPhysicsScene
216  /// \brief "physics:invertFilteredGroups"
217  ///
218  /// UsdPhysicsCollisionGroup
220  /// \brief "physics:jointEnabled"
221  ///
222  /// UsdPhysicsJoint
224  /// \brief "physics:kinematicEnabled"
225  ///
226  /// UsdPhysicsRigidBodyAPI
228  /// \brief "physics:localPos0"
229  ///
230  /// UsdPhysicsJoint
232  /// \brief "physics:localPos1"
233  ///
234  /// UsdPhysicsJoint
236  /// \brief "physics:localRot0"
237  ///
238  /// UsdPhysicsJoint
240  /// \brief "physics:localRot1"
241  ///
242  /// UsdPhysicsJoint
244  /// \brief "physics:lowerLimit"
245  ///
246  /// UsdPhysicsRevoluteJoint, UsdPhysicsPrismaticJoint
248  /// \brief "physics:mass"
249  ///
250  /// UsdPhysicsMassAPI
252  /// \brief "physics:maxDistance"
253  ///
254  /// UsdPhysicsDistanceJoint
256  /// \brief "physics:mergeGroup"
257  ///
258  /// UsdPhysicsCollisionGroup
260  /// \brief "physics:minDistance"
261  ///
262  /// UsdPhysicsDistanceJoint
264  /// \brief "physics:principalAxes"
265  ///
266  /// UsdPhysicsMassAPI
268  /// \brief "physics:restitution"
269  ///
270  /// UsdPhysicsMaterialAPI
272  /// \brief "physics:rigidBodyEnabled"
273  ///
274  /// UsdPhysicsRigidBodyAPI
276  /// \brief "physics:simulationOwner"
277  ///
278  /// UsdPhysicsRigidBodyAPI, UsdPhysicsCollisionAPI
280  /// \brief "physics:startsAsleep"
281  ///
282  /// UsdPhysicsRigidBodyAPI
284  /// \brief "physics:staticFriction"
285  ///
286  /// UsdPhysicsMaterialAPI
288  /// \brief "physics:upperLimit"
289  ///
290  /// UsdPhysicsRevoluteJoint, UsdPhysicsPrismaticJoint
292  /// \brief "physics:velocity"
293  ///
294  /// UsdPhysicsRigidBodyAPI
296  /// \brief "rotX"
297  ///
298  /// This token represents the rotate around X axis degree of freedom used in Joint Limits and Drives.
299  const TfToken rotX;
300  /// \brief "rotY"
301  ///
302  /// This token represents the rotate around Y axis degree of freedom used in Joint Limits and Drives.
303  const TfToken rotY;
304  /// \brief "rotZ"
305  ///
306  /// This token represents the rotate around Z axis degree of freedom used in Joint Limits and Drives.
307  const TfToken rotZ;
308  /// \brief "transX"
309  ///
310  /// This token represents the translate around X axis degree of freedom used in Joint Limits and Drives.
312  /// \brief "transY"
313  ///
314  /// This token represents the translate around Y axis degree of freedom used in Joint Limits and Drives.
316  /// \brief "transZ"
317  ///
318  /// This token represents the translate around Z axis degree of freedom used in Joint Limits and Drives.
320  /// \brief "X"
321  ///
322  /// Fallback value for UsdPhysicsRevoluteJoint::GetAxisAttr(), Fallback value for UsdPhysicsPrismaticJoint::GetAxisAttr(), Fallback value for UsdPhysicsSphericalJoint::GetAxisAttr()
323  const TfToken x;
324  /// \brief "Y"
325  ///
326  /// Possible value for UsdPhysicsRevoluteJoint::GetAxisAttr(), Possible value for UsdPhysicsPrismaticJoint::GetAxisAttr(), Possible value for UsdPhysicsSphericalJoint::GetAxisAttr()
327  const TfToken y;
328  /// \brief "Z"
329  ///
330  /// Possible value for UsdPhysicsRevoluteJoint::GetAxisAttr(), Possible value for UsdPhysicsPrismaticJoint::GetAxisAttr(), Possible value for UsdPhysicsSphericalJoint::GetAxisAttr()
331  const TfToken z;
332  /// \brief "PhysicsArticulationRootAPI"
333  ///
334  /// Schema identifer and family for UsdPhysicsArticulationRootAPI
336  /// \brief "PhysicsCollisionAPI"
337  ///
338  /// Schema identifer and family for UsdPhysicsCollisionAPI
340  /// \brief "PhysicsCollisionGroup"
341  ///
342  /// Schema identifer and family for UsdPhysicsCollisionGroup
344  /// \brief "PhysicsDistanceJoint"
345  ///
346  /// Schema identifer and family for UsdPhysicsDistanceJoint
348  /// \brief "PhysicsDriveAPI"
349  ///
350  /// Schema identifer and family for UsdPhysicsDriveAPI
352  /// \brief "PhysicsFilteredPairsAPI"
353  ///
354  /// Schema identifer and family for UsdPhysicsFilteredPairsAPI
356  /// \brief "PhysicsFixedJoint"
357  ///
358  /// Schema identifer and family for UsdPhysicsFixedJoint
360  /// \brief "PhysicsJoint"
361  ///
362  /// Schema identifer and family for UsdPhysicsJoint
364  /// \brief "PhysicsLimitAPI"
365  ///
366  /// Schema identifer and family for UsdPhysicsLimitAPI
368  /// \brief "PhysicsMassAPI"
369  ///
370  /// Schema identifer and family for UsdPhysicsMassAPI
372  /// \brief "PhysicsMaterialAPI"
373  ///
374  /// Schema identifer and family for UsdPhysicsMaterialAPI
376  /// \brief "PhysicsMeshCollisionAPI"
377  ///
378  /// Schema identifer and family for UsdPhysicsMeshCollisionAPI
380  /// \brief "PhysicsPrismaticJoint"
381  ///
382  /// Schema identifer and family for UsdPhysicsPrismaticJoint
384  /// \brief "PhysicsRevoluteJoint"
385  ///
386  /// Schema identifer and family for UsdPhysicsRevoluteJoint
388  /// \brief "PhysicsRigidBodyAPI"
389  ///
390  /// Schema identifer and family for UsdPhysicsRigidBodyAPI
392  /// \brief "PhysicsScene"
393  ///
394  /// Schema identifer and family for UsdPhysicsScene
396  /// \brief "PhysicsSphericalJoint"
397  ///
398  /// Schema identifer and family for UsdPhysicsSphericalJoint
400  /// A vector of all of the tokens listed above.
401  const std::vector<TfToken> allTokens;
402 };
403 
404 /// \var UsdPhysicsTokens
405 ///
406 /// A global variable with static, efficient \link TfToken TfTokens\endlink
407 /// for use in all public USD API. \sa UsdPhysicsTokensType
409 
411 
412 #endif
const TfToken physicsLocalPos1
"physics:localPos1"
Definition: tokens.h:235
const TfToken convexHull
"convexHull"
Definition: tokens.h:75
const TfToken physicsCenterOfMass
"physics:centerOfMass"
Definition: tokens.h:171
const TfToken physicsInvertFilteredGroups
"physics:invertFilteredGroups"
Definition: tokens.h:219
const TfToken drive
"drive"
Definition: tokens.h:83
const TfToken physicsMinDistance
"physics:minDistance"
Definition: tokens.h:263
const TfToken PhysicsDistanceJoint
"PhysicsDistanceJoint"
Definition: tokens.h:347
const TfToken physicsBody0
"physics:body0"
Definition: tokens.h:155
const TfToken y
"Y"
Definition: tokens.h:327
const TfToken z
"Z"
Definition: tokens.h:331
const TfToken physicsMass
"physics:mass"
Definition: tokens.h:251
const TfToken physicsCollisionEnabled
"physics:collisionEnabled"
Definition: tokens.h:175
const TfToken physicsLocalPos0
"physics:localPos0"
Definition: tokens.h:231
const TfToken rotZ
"rotZ"
Definition: tokens.h:307
const TfToken PhysicsRigidBodyAPI
"PhysicsRigidBodyAPI"
Definition: tokens.h:391
const TfToken force
"force"
Definition: tokens.h:111
const TfToken physicsStartsAsleep
"physics:startsAsleep"
Definition: tokens.h:283
const TfToken physicsFilteredPairs
"physics:filteredPairs"
Definition: tokens.h:207
const TfToken physicsUpperLimit
"physics:upperLimit"
Definition: tokens.h:291
const TfToken PhysicsLimitAPI
"PhysicsLimitAPI"
Definition: tokens.h:367
const TfToken physicsRestitution
"physics:restitution"
Definition: tokens.h:271
const TfToken physicsLocalRot0
"physics:localRot0"
Definition: tokens.h:239
const TfToken transX
"transX"
Definition: tokens.h:311
const TfToken physicsBreakTorque
"physics:breakTorque"
Definition: tokens.h:167
const TfToken physicsLocalRot1
"physics:localRot1"
Definition: tokens.h:243
const TfToken physicsExcludeFromArticulation
"physics:excludeFromArticulation"
Definition: tokens.h:199
const TfToken physicsKinematicEnabled
"physics:kinematicEnabled"
Definition: tokens.h:227
const TfToken acceleration
"acceleration"
Definition: tokens.h:51
const TfToken physicsDynamicFriction
"physics:dynamicFriction"
Definition: tokens.h:195
const TfToken physicsGravityMagnitude
"physics:gravityMagnitude"
Definition: tokens.h:215
USDPHYSICS_API TfStaticData< UsdPhysicsTokensType > UsdPhysicsTokens
const TfToken physicsPrincipalAxes
"physics:principalAxes"
Definition: tokens.h:267
const TfToken physicsMaxDistance
"physics:maxDistance"
Definition: tokens.h:255
const TfToken kilogramsPerUnit
"kilogramsPerUnit"
Definition: tokens.h:115
USDPHYSICS_API UsdPhysicsTokensType()
const TfToken transY
"transY"
Definition: tokens.h:315
const TfToken PhysicsRevoluteJoint
"PhysicsRevoluteJoint"
Definition: tokens.h:387
const TfToken x
"X"
Definition: tokens.h:323
Definition: token.h:70
const TfToken drive_MultipleApplyTemplate_PhysicsType
"drive:__INSTANCE_NAME__:physics:type"
Definition: tokens.h:107
const TfToken limit_MultipleApplyTemplate_PhysicsHigh
"limit:__INSTANCE_NAME__:physics:high"
Definition: tokens.h:123
const TfToken PhysicsJoint
"PhysicsJoint"
Definition: tokens.h:363
const TfToken PhysicsFixedJoint
"PhysicsFixedJoint"
Definition: tokens.h:359
const TfToken physicsBody1
"physics:body1"
Definition: tokens.h:159
const TfToken physicsLowerLimit
"physics:lowerLimit"
Definition: tokens.h:247
const TfToken physicsVelocity
"physics:velocity"
Definition: tokens.h:295
const TfToken physicsDiagonalInertia
"physics:diagonalInertia"
Definition: tokens.h:191
const TfToken linear
"linear"
Definition: tokens.h:131
const TfToken rotX
"rotX"
Definition: tokens.h:299
const TfToken PhysicsCollisionGroup
"PhysicsCollisionGroup"
Definition: tokens.h:343
const TfToken physicsRigidBodyEnabled
"physics:rigidBodyEnabled"
Definition: tokens.h:275
const TfToken physicsStaticFriction
"physics:staticFriction"
Definition: tokens.h:287
const TfToken colliders
"colliders"
Definition: tokens.h:67
const TfToken physicsAxis
"physics:axis"
Definition: tokens.h:151
const TfToken meshSimplification
"meshSimplification"
Definition: tokens.h:135
const TfToken PhysicsFilteredPairsAPI
"PhysicsFilteredPairsAPI"
Definition: tokens.h:355
const TfToken physicsConeAngle1Limit
"physics:coneAngle1Limit"
Definition: tokens.h:183
const TfToken PhysicsArticulationRootAPI
"PhysicsArticulationRootAPI"
Definition: tokens.h:335
const TfToken physicsAngularVelocity
"physics:angularVelocity"
Definition: tokens.h:143
const TfToken PhysicsPrismaticJoint
"PhysicsPrismaticJoint"
Definition: tokens.h:383
#define USDPHYSICS_API
Definition: api.h:23
const TfToken PhysicsCollisionAPI
"PhysicsCollisionAPI"
Definition: tokens.h:339
const TfToken drive_MultipleApplyTemplate_PhysicsTargetPosition
"drive:__INSTANCE_NAME__:physics:targetPosition"
Definition: tokens.h:99
const TfToken physicsConeAngle0Limit
"physics:coneAngle0Limit"
Definition: tokens.h:179
const TfToken none
"none"
Definition: tokens.h:139
const TfToken transZ
"transZ"
Definition: tokens.h:319
const TfToken PhysicsMaterialAPI
"PhysicsMaterialAPI"
Definition: tokens.h:375
const TfToken boundingCube
"boundingCube"
Definition: tokens.h:59
const TfToken drive_MultipleApplyTemplate_PhysicsDamping
"drive:__INSTANCE_NAME__:physics:damping"
Definition: tokens.h:87
const TfToken physicsJointEnabled
"physics:jointEnabled"
Definition: tokens.h:223
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
const TfToken drive_MultipleApplyTemplate_PhysicsStiffness
"drive:__INSTANCE_NAME__:physics:stiffness"
Definition: tokens.h:95
const TfToken distance
"distance"
Definition: tokens.h:79
const TfToken physicsBreakForce
"physics:breakForce"
Definition: tokens.h:163
const TfToken convexDecomposition
"convexDecomposition"
Definition: tokens.h:71
const TfToken PhysicsMeshCollisionAPI
"PhysicsMeshCollisionAPI"
Definition: tokens.h:379
const TfToken physicsApproximation
"physics:approximation"
Definition: tokens.h:147
const TfToken physicsGravityDirection
"physics:gravityDirection"
Definition: tokens.h:211
const TfToken PhysicsDriveAPI
"PhysicsDriveAPI"
Definition: tokens.h:351
const TfToken angular
"angular"
Definition: tokens.h:55
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:401
const TfToken boundingSphere
"boundingSphere"
Definition: tokens.h:63
const TfToken limit
"limit"
Definition: tokens.h:119
const TfToken PhysicsSphericalJoint
"PhysicsSphericalJoint"
Definition: tokens.h:399
const TfToken drive_MultipleApplyTemplate_PhysicsMaxForce
"drive:__INSTANCE_NAME__:physics:maxForce"
Definition: tokens.h:91
const TfToken PhysicsMassAPI
"PhysicsMassAPI"
Definition: tokens.h:371
const TfToken physicsSimulationOwner
"physics:simulationOwner"
Definition: tokens.h:279
const TfToken physicsMergeGroup
"physics:mergeGroup"
Definition: tokens.h:259
const TfToken PhysicsScene
"PhysicsScene"
Definition: tokens.h:395
const TfToken physicsDensity
"physics:density"
Definition: tokens.h:187
const TfToken rotY
"rotY"
Definition: tokens.h:303
const TfToken physicsFilteredGroups
"physics:filteredGroups"
Definition: tokens.h:203
const TfToken drive_MultipleApplyTemplate_PhysicsTargetVelocity
"drive:__INSTANCE_NAME__:physics:targetVelocity"
Definition: tokens.h:103
const TfToken limit_MultipleApplyTemplate_PhysicsLow
"limit:__INSTANCE_NAME__:physics:low"
Definition: tokens.h:127