All Classes Files Functions Variables Pages
physxVehicleAckermannSteeringAPI.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_PHYSXVEHICLEACKERMANNSTEERINGAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXVEHICLEACKERMANNSTEERINGAPI_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 // PHYSXVEHICLEACKERMANNSTEERINGAPI //
51 // -------------------------------------------------------------------------- //
52 
65 class PhysxSchemaPhysxVehicleAckermannSteeringAPI : public UsdAPISchemaBase
66 {
67 public:
71  static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI;
72 
77  explicit PhysxSchemaPhysxVehicleAckermannSteeringAPI(const UsdPrim& prim=UsdPrim())
78  : UsdAPISchemaBase(prim)
79  {
80  }
81 
85  explicit PhysxSchemaPhysxVehicleAckermannSteeringAPI(const UsdSchemaBase& schemaObj)
86  : UsdAPISchemaBase(schemaObj)
87  {
88  }
89 
91  PHYSXSCHEMA_API
93 
97  PHYSXSCHEMA_API
98  static const TfTokenVector &
99  GetSchemaAttributeNames(bool includeInherited=true);
100 
110  PHYSXSCHEMA_API
112  Get(const UsdStagePtr &stage, const SdfPath &path);
113 
114 
129  PHYSXSCHEMA_API
131  Apply(const UsdPrim &prim);
132 
133 protected:
137  PHYSXSCHEMA_API
138  UsdSchemaType _GetSchemaType() const override;
139 
140 private:
141  // needs to invoke _GetStaticTfType.
142  friend class UsdSchemaRegistry;
143  PHYSXSCHEMA_API
144  static const TfType &_GetStaticTfType();
145 
146  static bool _IsTypedSchema();
147 
148  // override SchemaBase virtuals.
149  PHYSXSCHEMA_API
150  const TfType &_GetTfType() const override;
151 
152 public:
153  // --------------------------------------------------------------------- //
154  // WHEEL0
155  // --------------------------------------------------------------------- //
167  PHYSXSCHEMA_API
168  UsdAttribute GetWheel0Attr() const;
169 
175  PHYSXSCHEMA_API
176  UsdAttribute CreateWheel0Attr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
177 
178 public:
179  // --------------------------------------------------------------------- //
180  // WHEEL1
181  // --------------------------------------------------------------------- //
193  PHYSXSCHEMA_API
194  UsdAttribute GetWheel1Attr() const;
195 
201  PHYSXSCHEMA_API
202  UsdAttribute CreateWheel1Attr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
203 
204 public:
205  // --------------------------------------------------------------------- //
206  // MAXSTEERANGLE
207  // --------------------------------------------------------------------- //
217  PHYSXSCHEMA_API
218  UsdAttribute GetMaxSteerAngleAttr() const;
219 
225  PHYSXSCHEMA_API
226  UsdAttribute CreateMaxSteerAngleAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
227 
228 public:
229  // --------------------------------------------------------------------- //
230  // WHEELBASE
231  // --------------------------------------------------------------------- //
243  PHYSXSCHEMA_API
244  UsdAttribute GetWheelBaseAttr() const;
245 
251  PHYSXSCHEMA_API
252  UsdAttribute CreateWheelBaseAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
253 
254 public:
255  // --------------------------------------------------------------------- //
256  // TRACKWIDTH
257  // --------------------------------------------------------------------- //
268  PHYSXSCHEMA_API
269  UsdAttribute GetTrackWidthAttr() const;
270 
276  PHYSXSCHEMA_API
277  UsdAttribute CreateTrackWidthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
278 
279 public:
280  // --------------------------------------------------------------------- //
281  // STRENGTH
282  // --------------------------------------------------------------------- //
291  PHYSXSCHEMA_API
292  UsdAttribute GetStrengthAttr() const;
293 
299  PHYSXSCHEMA_API
300  UsdAttribute CreateStrengthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
301 
302 public:
303  // ===================================================================== //
304  // Feel free to add custom code below this line, it will be preserved by
305  // the code generator.
306  //
307  // Just remember to:
308  // - Close the class declaration with };
309  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
310  // - Close the include guard with #endif
311  // ===================================================================== //
312  // --(BEGIN CUSTOM CODE)--
313 };
314 
315 PXR_NAMESPACE_CLOSE_SCOPE
316 
317 #endif
PHYSXSCHEMA_API UsdAttribute CreateStrengthAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetStrengthAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetStrengthAttr() const
The strength of the Ackermann correction with 0 denoting no correction and 1 denoting perfect correct...
PhysxSchemaPhysxVehicleAckermannSteeringAPI(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxVehicleAckermannSteeringAPI on UsdPrim prim .
PHYSXSCHEMA_API UsdAttribute GetMaxSteerAngleAttr() const
The maximum steer angle (in radians) that can be achieved by the wheels.
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...
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxVehicleAckermannSteeringAPI()
Destructor.
PHYSXSCHEMA_API UsdAttribute CreateMaxSteerAngleAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxSteerAngleAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
static PHYSXSCHEMA_API PhysxSchemaPhysxVehicleAckermannSteeringAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
PhysxSchemaPhysxVehicleAckermannSteeringAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxVehicleAckermannSteeringAPI on the prim held by schemaObj ...
static PHYSXSCHEMA_API PhysxSchemaPhysxVehicleAckermannSteeringAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxVehicleAckermannSteeringAPI holding the prim adhering to this schema at path...
PHYSXSCHEMA_API UsdAttribute CreateWheelBaseAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWheelBaseAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
PHYSXSCHEMA_API UsdAttribute GetTrackWidthAttr() const
The width of the axle defined by wheel0 and wheel1 (units: distance).
PHYSXSCHEMA_API UsdAttribute GetWheel1Attr() const
The index of the wheel that is positive along the lateral axis and should get connected to the steeri...
PHYSXSCHEMA_API UsdAttribute CreateWheel0Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWheel0Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreateTrackWidthAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetTrackWidthAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetWheelBaseAttr() const
The longitudinal distance between the axle that is affected by Ackermann correction and a reference a...
Describes a steering system with Ackermann correction for two wheels.
PHYSXSCHEMA_API UsdAttribute CreateWheel1Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWheel1Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute GetWheel0Attr() const
The index of the wheel that is negative along the lateral axis and should get connected to the steeri...