24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXPHYSICSATTACHMENT_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXPHYSICSATTACHMENT_H
31 #include "pxr/usd/usd/typed.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
36 #include "pxr/base/vt/value.h"
38 #include "pxr/base/gf/vec3d.h"
39 #include "pxr/base/gf/vec3f.h"
40 #include "pxr/base/gf/matrix4d.h"
42 #include "pxr/base/tf/token.h"
43 #include "pxr/base/tf/type.h"
45 PXR_NAMESPACE_OPEN_SCOPE
68 static const UsdSchemaType
schemaType = UsdSchemaType::ConcreteTyped;
95 static const TfTokenVector &
109 Get(
const UsdStagePtr &stage,
const SdfPath &path);
135 Define(
const UsdStagePtr &stage,
const SdfPath &path);
146 friend class UsdSchemaRegistry;
148 static const TfType &_GetStaticTfType();
150 static bool _IsTypedSchema();
154 const TfType &_GetTfType()
const override;
198 UsdAttribute
CreatePoints0Attr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
220 UsdAttribute
CreatePoints1Attr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
266 UsdAttribute
CreateFilterType0Attr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
312 UsdAttribute
CreateFilterType1Attr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
378 PXR_NAMESPACE_CLOSE_SCOPE
PHYSXSCHEMA_API UsdAttribute GetFilterType1Attr() const
Specify if indices in collisionFilterIndices1 correspond to vertices; or mesh cell-geometry, i.e.
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 GetFilterType0Attr() const
Specify if indices in collisionFilterIndices0 correspond to vertices; or mesh cell-geometry, i.e.
PHYSXSCHEMA_API UsdAttribute GetCollisionFilterIndices1Attr() const
Indices to mesh triangle/tet/hex/etc.
PHYSXSCHEMA_API UsdAttribute CreateCollisionFilterIndices0Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetCollisionFilterIndices0Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Crea...
static PHYSXSCHEMA_API PhysxSchemaPhysxPhysicsAttachment Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...
PHYSXSCHEMA_API UsdAttribute CreateFilterType1Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFilterType1Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxPhysicsAttachment()
Destructor.
PHYSXSCHEMA_API UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
PHYSXSCHEMA_API UsdRelationship GetActor0Rel() const
Reference to the first actor.
PHYSXSCHEMA_API UsdAttribute GetFilterTypeAttr(int index) const
Helper attribute access via index in [0,1].
PHYSXSCHEMA_API UsdAttribute GetAttachmentEnabledAttr() const
Enable or disable the attachment.
PHYSXSCHEMA_API UsdRelationship CreateActor1Rel() const
See GetActor1Rel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdRelationship CreateActor0Rel() const
See GetActor0Rel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreatePoints1Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPoints1Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreateFilterType0Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFilterType0Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetPoints1Attr() const
Attachment points in Actor 1 local space, defined in the actor's rest state, if it is deformable...
PHYSXSCHEMA_API UsdAttribute GetCollisionFilterIndicesAttr(int index) const
Helper attribute access via index in [0,1].
PHYSXSCHEMA_API UsdAttribute GetCollisionFilterIndices0Attr() const
Indices to geometry of Actor 0 that should not generate collisions with Actor 1 as specified by filte...
PHYSXSCHEMA_API UsdAttribute GetPoints0Attr() const
Attachment points in Actor 0 local space, defined in the actor's rest state, if it is deformable...
static PHYSXSCHEMA_API PhysxSchemaPhysxPhysicsAttachment Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxPhysicsAttachment holding the prim adhering to this schema at path on stage...
Represents attachments between physics actors, for example, between a rigid body and a deformable bod...
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
PHYSXSCHEMA_API UsdAttribute CreateAttachmentEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetAttachmentEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdRelationship GetActor1Rel() const
Reference to the second actor.
PhysxSchemaPhysxPhysicsAttachment(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxPhysicsAttachment on the prim held by schemaObj .
PHYSXSCHEMA_API UsdRelationship GetActorRel(int index) const
Helper attribute access via index in [0,1].
PHYSXSCHEMA_API UsdAttribute GetPointsAttr(int index) const
Helper attribute access via index in [0,1].
PhysxSchemaPhysxPhysicsAttachment(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxPhysicsAttachment on UsdPrim prim .
PHYSXSCHEMA_API UsdAttribute CreateCollisionFilterIndices1Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetCollisionFilterIndices1Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Crea...
PHYSXSCHEMA_API UsdAttribute CreatePoints0Attr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPoints0Attr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.