All Classes Files Functions Variables Pages
physxTendonAxisRootAPI.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_PHYSXTENDONAXISROOTAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXTENDONAXISROOTAPI_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 // PHYSXTENDONAXISROOTAPI //
51 // -------------------------------------------------------------------------- //
52 
66 class PhysxSchemaPhysxTendonAxisRootAPI : public UsdAPISchemaBase
67 {
68 public:
72  static const UsdSchemaKind schemaKind = UsdSchemaKind::MultipleApplyAPI;
73 
84  const UsdPrim& prim=UsdPrim(), const TfToken &name=TfToken())
85  : UsdAPISchemaBase(prim, /*instanceName*/ name)
86  { }
87 
93  const UsdSchemaBase& schemaObj, const TfToken &name)
94  : UsdAPISchemaBase(schemaObj, /*instanceName*/ name)
95  { }
96 
98  PHYSXSCHEMA_API
100 
104  PHYSXSCHEMA_API
105  static const TfTokenVector &
106  GetSchemaAttributeNames(bool includeInherited=true);
107 
113  PHYSXSCHEMA_API
114  static TfTokenVector
115  GetSchemaAttributeNames(bool includeInherited, const TfToken &instanceName);
116 
118  TfToken GetName() const {
119  return _GetInstanceName();
120  }
121 
136  PHYSXSCHEMA_API
138  Get(const UsdStagePtr &stage, const SdfPath &path);
139 
142  PHYSXSCHEMA_API
144  Get(const UsdPrim &prim, const TfToken &name);
145 
148  PHYSXSCHEMA_API
149  static std::vector<PhysxSchemaPhysxTendonAxisRootAPI>
150  GetAll(const UsdPrim &prim);
151 
154  PHYSXSCHEMA_API
155  static bool
156  IsSchemaPropertyBaseName(const TfToken &baseName);
157 
161  PHYSXSCHEMA_API
162  static bool
163  IsPhysxTendonAxisRootAPIPath(const SdfPath &path, TfToken *name);
164 
181  PHYSXSCHEMA_API
182  static bool
183  CanApply(const UsdPrim &prim, const TfToken &name,
184  std::string *whyNot=nullptr);
185 
205  PHYSXSCHEMA_API
207  Apply(const UsdPrim &prim, const TfToken &name);
208 
209 protected:
213  PHYSXSCHEMA_API
214  UsdSchemaKind _GetSchemaKind() const override;
215 
216 private:
217  // needs to invoke _GetStaticTfType.
218  friend class UsdSchemaRegistry;
219  PHYSXSCHEMA_API
220  static const TfType &_GetStaticTfType();
221 
222  static bool _IsTypedSchema();
223 
224  // override SchemaBase virtuals.
225  PHYSXSCHEMA_API
226  const TfType &_GetTfType() const override;
227 
228 public:
229  // --------------------------------------------------------------------- //
230  // STIFFNESS
231  // --------------------------------------------------------------------- //
241  PHYSXSCHEMA_API
242  UsdAttribute GetStiffnessAttr() const;
243 
249  PHYSXSCHEMA_API
250  UsdAttribute CreateStiffnessAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
251 
252 public:
253  // --------------------------------------------------------------------- //
254  // DAMPING
255  // --------------------------------------------------------------------- //
265  PHYSXSCHEMA_API
266  UsdAttribute GetDampingAttr() const;
267 
273  PHYSXSCHEMA_API
274  UsdAttribute CreateDampingAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
275 
276 public:
277  // --------------------------------------------------------------------- //
278  // LIMITSTIFFNESS
279  // --------------------------------------------------------------------- //
289  PHYSXSCHEMA_API
290  UsdAttribute GetLimitStiffnessAttr() const;
291 
297  PHYSXSCHEMA_API
298  UsdAttribute CreateLimitStiffnessAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
299 
300 public:
301  // --------------------------------------------------------------------- //
302  // OFFSET
303  // --------------------------------------------------------------------- //
313  PHYSXSCHEMA_API
314  UsdAttribute GetOffsetAttr() const;
315 
321  PHYSXSCHEMA_API
322  UsdAttribute CreateOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
323 
324 public:
325  // --------------------------------------------------------------------- //
326  // RESTLENGTH
327  // --------------------------------------------------------------------- //
337  PHYSXSCHEMA_API
338  UsdAttribute GetRestLengthAttr() const;
339 
345  PHYSXSCHEMA_API
346  UsdAttribute CreateRestLengthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
347 
348 public:
349  // --------------------------------------------------------------------- //
350  // LOWERLIMIT
351  // --------------------------------------------------------------------- //
361  PHYSXSCHEMA_API
362  UsdAttribute GetLowerLimitAttr() const;
363 
369  PHYSXSCHEMA_API
370  UsdAttribute CreateLowerLimitAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
371 
372 public:
373  // --------------------------------------------------------------------- //
374  // UPPERLIMIT
375  // --------------------------------------------------------------------- //
385  PHYSXSCHEMA_API
386  UsdAttribute GetUpperLimitAttr() const;
387 
393  PHYSXSCHEMA_API
394  UsdAttribute CreateUpperLimitAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
395 
396 public:
397  // --------------------------------------------------------------------- //
398  // TENDONENABLED
399  // --------------------------------------------------------------------- //
407  PHYSXSCHEMA_API
408  UsdAttribute GetTendonEnabledAttr() const;
409 
415  PHYSXSCHEMA_API
416  UsdAttribute CreateTendonEnabledAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
417 
418 public:
419  // ===================================================================== //
420  // Feel free to add custom code below this line, it will be preserved by
421  // the code generator.
422  //
423  // Just remember to:
424  // - Close the class declaration with };
425  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
426  // - Close the include guard with #endif
427  // ===================================================================== //
428  // --(BEGIN CUSTOM CODE)--
429 };
430 
431 PXR_NAMESPACE_CLOSE_SCOPE
432 
433 #endif
PHYSXSCHEMA_API UsdAttribute GetRestLengthAttr() const
Tendon rest length.
PHYSXSCHEMA_API UsdAttribute GetLimitStiffnessAttr() const
Tendon length-limit spring stiffness.
static PHYSXSCHEMA_API std::vector< PhysxSchemaPhysxTendonAxisRootAPI > GetAll(const UsdPrim &prim)
Return a vector of all named instances of PhysxSchemaPhysxTendonAxisRootAPI on the given prim...
static PHYSXSCHEMA_API bool IsPhysxTendonAxisRootAPIPath(const SdfPath &path, TfToken *name)
Checks if the given path path is of an API schema of type PhysxTendonAxisRootAPI. ...
PHYSXSCHEMA_API UsdAttribute CreateLowerLimitAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLowerLimitAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateTendonEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetTendonEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateRestLengthAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetRestLengthAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API bool CanApply(const UsdPrim &prim, const TfToken &name, std::string *whyNot=nullptr)
Returns true if this multiple-apply API schema can be applied, with the given instance name...
PHYSXSCHEMA_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
static PHYSXSCHEMA_API PhysxSchemaPhysxTendonAxisRootAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxTendonAxisRootAPI holding the prim adhering to this schema at path on stage...
PHYSXSCHEMA_API UsdAttribute GetOffsetAttr() const
Tendon length offset.
PHYSXSCHEMA_API UsdAttribute GetLowerLimitAttr() const
Tendon length lower limit.
PHYSXSCHEMA_API UsdAttribute CreateLimitStiffnessAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLimitStiffnessAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
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...
PhysxSchemaPhysxTendonAxisRootAPI(const UsdSchemaBase &schemaObj, const TfToken &name)
Construct a PhysxSchemaPhysxTendonAxisRootAPI on the prim held by schemaObj with name name...
PHYSXSCHEMA_API UsdAttribute GetUpperLimitAttr() const
Tendon length upper limit.
PHYSXSCHEMA_API UsdAttribute CreateUpperLimitAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetUpperLimitAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API PhysxSchemaPhysxTendonAxisRootAPI Apply(const UsdPrim &prim, const TfToken &name)
Applies this multiple-apply API schema to the given prim along with the given instance name...
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
PhysxSchemaPhysxTendonAxisRootAPI(const UsdPrim &prim=UsdPrim(), const TfToken &name=TfToken())
Construct a PhysxSchemaPhysxTendonAxisRootAPI on UsdPrim prim with name name .
TfToken GetName() const
Returns the name of this multiple-apply schema instance.
PHYSXSCHEMA_API UsdAttribute GetStiffnessAttr() const
Tendon length spring stiffness.
PHYSXSCHEMA_API UsdAttribute GetTendonEnabledAttr() const
Enables/disables the tendon from contributing to the articulation dynamics.
PHYSXSCHEMA_API UsdAttribute CreateStiffnessAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetStiffnessAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API bool IsSchemaPropertyBaseName(const TfToken &baseName)
Checks if the given name baseName is the base name of a property of PhysxTendonAxisRootAPI.
PHYSXSCHEMA_API UsdAttribute GetDampingAttr() const
Tendon length damping.
PHYSXSCHEMA_API UsdAttribute CreateDampingAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDampingAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxTendonAxisRootAPI()
Destructor.
PHYSXSCHEMA_API UsdAttribute CreateOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
WARNING: Draft API, this design is not fixed and may change in the future.