24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXDIFFUSEPARTICLESAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXDIFFUSEPARTICLESAPI_H
31 #include "pxr/usd/usd/apiSchemaBase.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
66 static const UsdSchemaType
schemaType = UsdSchemaType::SingleApplyAPI;
73 : UsdAPISchemaBase(prim)
81 : UsdAPISchemaBase(schemaObj)
93 static const TfTokenVector &
107 Get(
const UsdStagePtr &stage,
const SdfPath &path);
126 Apply(
const UsdPrim &prim);
137 friend class UsdSchemaRegistry;
139 static const TfType &_GetStaticTfType();
141 static bool _IsTypedSchema();
145 const TfType &_GetTfType()
const override;
217 UsdAttribute
CreateThresholdAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
241 UsdAttribute
CreateLifetimeAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
265 UsdAttribute
CreateAirDragAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
289 UsdAttribute
CreateBubbleDragAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
313 UsdAttribute
CreateBuoyancyAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
446 PXR_NAMESPACE_CLOSE_SCOPE
PHYSXSCHEMA_API UsdAttribute CreateMaxDiffuseParticleMultiplierAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxDiffuseParticleMultiplierAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs...
PHYSXSCHEMA_API UsdAttribute GetBubbleDragAttr() const
Fluid drag force factor for bubble particles.
PHYSXSCHEMA_API UsdAttribute CreateDiffuseParticlesEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDiffuseParticlesEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Crea...
PhysxSchemaPhysxDiffuseParticlesAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxDiffuseParticlesAPI on the prim held by schemaObj .
PHYSXSCHEMA_API UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
static PHYSXSCHEMA_API PhysxSchemaPhysxDiffuseParticlesAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxDiffuseParticlesAPI holding the prim adhering to this schema at path on stag...
PHYSXSCHEMA_API UsdAttribute GetCollisionDecayAttr() const
Decay factor of diffuse particles' lifetime after they collide with shapes.
PHYSXSCHEMA_API UsdAttribute GetBuoyancyAttr() const
Buoyancy force factor for bubble particles.
PHYSXSCHEMA_API UsdAttribute GetKineticEnergyWeightAttr() const
Contribution from kinetic energy when deciding diffuse particle creation.
static PHYSXSCHEMA_API PhysxSchemaPhysxDiffuseParticlesAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
PHYSXSCHEMA_API UsdAttribute CreateDivergenceWeightAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetDivergenceWeightAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateKineticEnergyWeightAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetKineticEnergyWeightAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateCollisionDecayAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetCollisionDecayAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateThresholdAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetThresholdAttr(), 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.
PHYSXSCHEMA_API UsdAttribute GetThresholdAttr() const
Kinetic energy threshold a particle must reach to spawn a diffuse particle.
PHYSXSCHEMA_API UsdAttribute GetDiffuseParticlesEnabledAttr() const
Enable or disable the creation of diffuse particles.
PhysxSchemaPhysxDiffuseParticlesAPI(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxDiffuseParticlesAPI on UsdPrim prim .
PHYSXSCHEMA_API UsdAttribute CreateBubbleDragAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetBubbleDragAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetAirDragAttr() const
Air drag force factor for spray particles.
PHYSXSCHEMA_API UsdAttribute CreateBuoyancyAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetBuoyancyAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetPressureWeightAttr() const
Contribution from pressure when deciding diffuse particle creation.
WARNING: This is a draft API; the design is not fixed and may change in the future.
PHYSXSCHEMA_API UsdAttribute GetLifetimeAttr() const
Lifetime of a spawned particle before it is removed again.
PHYSXSCHEMA_API UsdAttribute GetMaxDiffuseParticleMultiplierAttr() const
Maximum number of diffuse particles that can be present in the simulation relative to the number of n...
PHYSXSCHEMA_API UsdAttribute CreateUseAccurateVelocityAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetUseAccurateVelocityAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetUseAccurateVelocityAttr() const
Enables accurate particle velocity estimation.
PHYSXSCHEMA_API UsdAttribute CreateLifetimeAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetLifetimeAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateAirDragAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetAirDragAttr(), 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...
PHYSXSCHEMA_API UsdAttribute CreatePressureWeightAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetPressureWeightAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetDivergenceWeightAttr() const
Contribution from divergence when deciding diffuse particle creation.
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxDiffuseParticlesAPI()
Destructor.