All Classes Files Functions Variables Pages
physxVehicleWheelAttachmentAPI.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXVEHICLEWHEELATTACHMENTAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXVEHICLEWHEELATTACHMENTAPI_H
26 
28 
29 #include "pxr/pxr.h"
30 #include ".//api.h"
31 #include "pxr/usd/usd/apiSchemaBase.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
34 #include ".//tokens.h"
35 
36 #include "pxr/base/vt/value.h"
37 
38 #include "pxr/base/gf/vec3d.h"
39 #include "pxr/base/gf/vec3f.h"
40 #include "pxr/base/gf/matrix4d.h"
41 
42 #include "pxr/base/tf/token.h"
43 #include "pxr/base/tf/type.h"
44 
45 PXR_NAMESPACE_OPEN_SCOPE
46 
47 class SdfAssetPath;
48 
49 // -------------------------------------------------------------------------- //
50 // PHYSXVEHICLEWHEELATTACHMENTAPI //
51 // -------------------------------------------------------------------------- //
52 
70 class PhysxSchemaPhysxVehicleWheelAttachmentAPI : public UsdAPISchemaBase
71 {
72 public:
76  static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI;
77 
82  explicit PhysxSchemaPhysxVehicleWheelAttachmentAPI(const UsdPrim& prim=UsdPrim())
83  : UsdAPISchemaBase(prim)
84  {
85  }
86 
90  explicit PhysxSchemaPhysxVehicleWheelAttachmentAPI(const UsdSchemaBase& schemaObj)
91  : UsdAPISchemaBase(schemaObj)
92  {
93  }
94 
96  PHYSXSCHEMA_API
98 
102  PHYSXSCHEMA_API
103  static const TfTokenVector &
104  GetSchemaAttributeNames(bool includeInherited=true);
105 
115  PHYSXSCHEMA_API
117  Get(const UsdStagePtr &stage, const SdfPath &path);
118 
119 
134  PHYSXSCHEMA_API
136  Apply(const UsdPrim &prim);
137 
138 protected:
142  PHYSXSCHEMA_API
143  UsdSchemaType _GetSchemaType() const override;
144 
145 private:
146  // needs to invoke _GetStaticTfType.
147  friend class UsdSchemaRegistry;
148  PHYSXSCHEMA_API
149  static const TfType &_GetStaticTfType();
150 
151  static bool _IsTypedSchema();
152 
153  // override SchemaBase virtuals.
154  PHYSXSCHEMA_API
155  const TfType &_GetTfType() const override;
156 
157 public:
158  // --------------------------------------------------------------------- //
159  // INDEX
160  // --------------------------------------------------------------------- //
172  PHYSXSCHEMA_API
173  UsdAttribute GetIndexAttr() const;
174 
180  PHYSXSCHEMA_API
181  UsdAttribute CreateIndexAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
182 
183 public:
184  // --------------------------------------------------------------------- //
185  // SUSPENSIONTRAVELDIRECTION
186  // --------------------------------------------------------------------- //
197  PHYSXSCHEMA_API
198  UsdAttribute GetSuspensionTravelDirectionAttr() const;
199 
205  PHYSXSCHEMA_API
206  UsdAttribute CreateSuspensionTravelDirectionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
207 
208 public:
209  // --------------------------------------------------------------------- //
210  // SUSPENSIONFRAMEPOSITION
211  // --------------------------------------------------------------------- //
225  PHYSXSCHEMA_API
226  UsdAttribute GetSuspensionFramePositionAttr() const;
227 
233  PHYSXSCHEMA_API
234  UsdAttribute CreateSuspensionFramePositionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
235 
236 public:
237  // --------------------------------------------------------------------- //
238  // SUSPENSIONFRAMEORIENTATION
239  // --------------------------------------------------------------------- //
250  PHYSXSCHEMA_API
251  UsdAttribute GetSuspensionFrameOrientationAttr() const;
252 
258  PHYSXSCHEMA_API
259  UsdAttribute CreateSuspensionFrameOrientationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
260 
261 public:
262  // --------------------------------------------------------------------- //
263  // SUSPENSIONFORCEAPPPOINTOFFSET
264  // --------------------------------------------------------------------- //
277  PHYSXSCHEMA_API
278  UsdAttribute GetSuspensionForceAppPointOffsetAttr() const;
279 
285  PHYSXSCHEMA_API
286  UsdAttribute CreateSuspensionForceAppPointOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
287 
288 public:
289  // --------------------------------------------------------------------- //
290  // WHEELCENTEROFMASSOFFSET
291  // --------------------------------------------------------------------- //
304  PHYSXSCHEMA_API
305  UsdAttribute GetWheelCenterOfMassOffsetAttr() const;
306 
312  PHYSXSCHEMA_API
313  UsdAttribute CreateWheelCenterOfMassOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
314 
315 public:
316  // --------------------------------------------------------------------- //
317  // TIREFORCEAPPPOINTOFFSET
318  // --------------------------------------------------------------------- //
331  PHYSXSCHEMA_API
332  UsdAttribute GetTireForceAppPointOffsetAttr() const;
333 
339  PHYSXSCHEMA_API
340  UsdAttribute CreateTireForceAppPointOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
341 
342 public:
343  // --------------------------------------------------------------------- //
344  // WHEELFRAMEPOSITION
345  // --------------------------------------------------------------------- //
355  PHYSXSCHEMA_API
356  UsdAttribute GetWheelFramePositionAttr() const;
357 
363  PHYSXSCHEMA_API
364  UsdAttribute CreateWheelFramePositionAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
365 
366 public:
367  // --------------------------------------------------------------------- //
368  // WHEELFRAMEORIENTATION
369  // --------------------------------------------------------------------- //
378  PHYSXSCHEMA_API
379  UsdAttribute GetWheelFrameOrientationAttr() const;
380 
386  PHYSXSCHEMA_API
387  UsdAttribute CreateWheelFrameOrientationAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
388 
389 public:
390  // --------------------------------------------------------------------- //
391  // DRIVEN
392  // --------------------------------------------------------------------- //
404  PHYSXSCHEMA_API
405  UsdAttribute GetDrivenAttr() const;
406 
412  PHYSXSCHEMA_API
413  UsdAttribute CreateDrivenAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
414 
415 public:
416  // --------------------------------------------------------------------- //
417  // WHEEL
418  // --------------------------------------------------------------------- //
424  PHYSXSCHEMA_API
425  UsdRelationship GetWheelRel() const;
426 
429  PHYSXSCHEMA_API
430  UsdRelationship CreateWheelRel() const;
431 
432 public:
433  // --------------------------------------------------------------------- //
434  // TIRE
435  // --------------------------------------------------------------------- //
441  PHYSXSCHEMA_API
442  UsdRelationship GetTireRel() const;
443 
446  PHYSXSCHEMA_API
447  UsdRelationship CreateTireRel() const;
448 
449 public:
450  // --------------------------------------------------------------------- //
451  // SUSPENSION
452  // --------------------------------------------------------------------- //
458  PHYSXSCHEMA_API
459  UsdRelationship GetSuspensionRel() const;
460 
463  PHYSXSCHEMA_API
464  UsdRelationship CreateSuspensionRel() const;
465 
466 public:
467  // --------------------------------------------------------------------- //
468  // COLLISIONGROUP
469  // --------------------------------------------------------------------- //
472  PHYSXSCHEMA_API
473  UsdRelationship GetCollisionGroupRel() const;
474 
477  PHYSXSCHEMA_API
478  UsdRelationship CreateCollisionGroupRel() const;
479 
480 public:
481  // ===================================================================== //
482  // Feel free to add custom code below this line, it will be preserved by
483  // the code generator.
484  //
485  // Just remember to:
486  // - Close the class declaration with };
487  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
488  // - Close the include guard with #endif
489  // ===================================================================== //
490  // --(BEGIN CUSTOM CODE)--
491 };
492 
493 PXR_NAMESPACE_CLOSE_SCOPE
494 
495 #endif
PhysxSchemaPhysxVehicleWheelAttachmentAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxVehicleWheelAttachmentAPI on the prim held by schemaObj ...
PHYSXSCHEMA_API UsdRelationship GetCollisionGroupRel() const
A relationship to a PhysicsCollisionGroup instance that defines what the wheel/suspension scene queri...
PHYSXSCHEMA_API UsdAttribute GetWheelFramePositionAttr() const
A position offset of the wheel center relative to the suspension frame.
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
PHYSXSCHEMA_API UsdAttribute CreateSuspensionTravelDirectionAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSuspensionTravelDirectionAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Cr...
PHYSXSCHEMA_API UsdAttribute GetDrivenAttr() const
Deprecated.
PHYSXSCHEMA_API UsdAttribute GetSuspensionFramePositionAttr() const
The point of the suspension at max compression (relative to the vehicle center of mass frame)...
PHYSXSCHEMA_API UsdRelationship CreateWheelRel() const
See GetWheelRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute GetSuspensionForceAppPointOffsetAttr() const
Deprecated.
PHYSXSCHEMA_API UsdAttribute GetWheelFrameOrientationAttr() const
An orientation adjustment of the wheel relative to the suspension frame.
PHYSXSCHEMA_API UsdAttribute CreateDrivenAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDrivenAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreateWheelFramePositionAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWheelFramePositionAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateSuspensionForceAppPointOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSuspensionForceAppPointOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get v...
PhysxSchemaPhysxVehicleWheelAttachmentAPI(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxVehicleWheelAttachmentAPI on UsdPrim prim .
PHYSXSCHEMA_API UsdAttribute GetWheelCenterOfMassOffsetAttr() const
Deprecated.
PHYSXSCHEMA_API UsdAttribute CreateTireForceAppPointOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetTireForceAppPointOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Crea...
static PHYSXSCHEMA_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
PHYSXSCHEMA_API UsdAttribute GetSuspensionTravelDirectionAttr() const
The direction of the suspension travel (towards the wheel) in vehicle center of mass frame...
PHYSXSCHEMA_API UsdAttribute GetTireForceAppPointOffsetAttr() const
Deprecated.
PHYSXSCHEMA_API UsdAttribute CreateSuspensionFrameOrientationAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSuspensionFrameOrientationAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs C...
PHYSXSCHEMA_API UsdRelationship GetWheelRel() const
A relationship to a PhysxVehicleWheelAPI prim.
PHYSXSCHEMA_API UsdRelationship CreateCollisionGroupRel() const
See GetCollisionGroupRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateWheelFrameOrientationAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWheelFrameOrientationAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetSuspensionFrameOrientationAttr() const
The orientation of the suspension frame relative to the vehicle center of mass frame.
PHYSXSCHEMA_API UsdAttribute CreateSuspensionFramePositionAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSuspensionFramePositionAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Crea...
static PHYSXSCHEMA_API PhysxSchemaPhysxVehicleWheelAttachmentAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxVehicleWheelAttachmentAPI holding the prim adhering to this schema at path o...
PHYSXSCHEMA_API UsdRelationship GetSuspensionRel() const
A relationship to a PhysxVehicleSuspensionAPI prim.
PHYSXSCHEMA_API UsdAttribute CreateWheelCenterOfMassOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWheelCenterOfMassOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Crea...
PHYSXSCHEMA_API UsdRelationship GetTireRel() const
A relationship to a PhysxVehicleTireAPI prim.
static PHYSXSCHEMA_API PhysxSchemaPhysxVehicleWheelAttachmentAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
PHYSXSCHEMA_API UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
PHYSXSCHEMA_API UsdRelationship CreateTireRel() const
See GetTireRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreateIndexAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetIndexAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdRelationship CreateSuspensionRel() const
See GetSuspensionRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
For every wheel of a vehicle, this class defines the attachment properties.
PHYSXSCHEMA_API UsdAttribute GetIndexAttr() const
The index of the wheel attachment.
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxVehicleWheelAttachmentAPI()
Destructor.