21 #ifndef GENERATED_AGX_PHYSICS_PARTICLE_PARTICLEBODYCONTACTCONSTRAINT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_PARTICLE_PARTICLEBODYCONTACTCONSTRAINT_H_PLUGIN 24 #define AGX_ENTITY_WRAPPER 1 28 # pragma warning(push) 30 # pragma warning( disable : 4505 ) 32 # pragma warning( disable : 4251 ) 34 # pragma warning( disable : 4355 ) 36 # pragma warning( disable: 4714 ) 59 class ParticleBodyContactConstraintModel;
60 class ParticleBodyContactConstraintData;
61 class ParticleBodyContactConstraintPtr;
62 class ParticleBodyContactConstraintInstance;
63 class ParticleBodyContactConstraintSemantics;
88 virtual void shutdownCleanup()
override;
104 virtual void configure(agx::TiXmlElement* eEntity)
override;
105 virtual void initAttributeAccessors()
override;
112 #ifndef AGX_PHYSICS_PARTICLE_PARTICLEBODYCONTACTCONSTRAINT_DATA_SET_OVERRIDE 113 #define AGX_PHYSICS_PARTICLE_PARTICLEBODYCONTACTCONSTRAINT_DATA_SET 114 class AGXPHYSICS_EXPORT ParticleBodyContactConstraintData :
public agx::Physics::InteractionData
117 ParticleBodyContactConstraintInstance operator[] (
size_t index);
140 ParticleBodyContactConstraintData();
143 virtual ~ParticleBodyContactConstraintData() {}
144 virtual void setNumElements(
agx::Index numElements)
override;
147 ParticleBodyContactConstraintData& operator= (
const ParticleBodyContactConstraintData&) {
return *
this; }
155 class
AGXPHYSICS_EXPORT ParticleBodyContactConstraintSemantics : public
agx::Physics::InteractionSemantics
175 void setIsImpacting(
agx::Bool const& value);
182 friend class ParticleBodyContactConstraintInstance;
183 ParticleBodyContactConstraintSemantics();
195 typedef ParticleBodyContactConstraintData
DataType;
209 AGXPHYSICS_EXPORT const ParticleBodyContactConstraintSemantics* operator->()
const;
211 ParticleBodyContactConstraintData* getData();
212 const ParticleBodyContactConstraintData* getData()
const;
254 class
AGXPHYSICS_EXPORT ParticleBodyContactConstraintInstance : public
agx::Physics::InteractionInstance
257 ParticleBodyContactConstraintInstance();
258 ParticleBodyContactConstraintInstance(ParticleBodyContactConstraintData* data,
agx::Index index);
263 ParticleBodyContactConstraintData* getData();
264 const ParticleBodyContactConstraintData* getData()
const;
316 inline ParticleBodyContactConstraintInstance
agx::Physics::Particle::ParticleBodyContactConstraintData::operator[] (
size_t index) {
return ParticleBodyContactConstraintInstance(
this, (
agx::Index)index); }
323 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
330 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
338 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
347 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
381 AGX_FORCE_INLINE ParticleBodyContactConstraintInstance::ParticleBodyContactConstraintInstance() {}
382 AGX_FORCE_INLINE ParticleBodyContactConstraintInstance::ParticleBodyContactConstraintInstance(ParticleBodyContactConstraintData* data,
agx::Index index) : agx::Physics::InteractionInstance(data, index) {}
387 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
394 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
402 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintInstance::particle() { verifyIndex();
return getData()->particle[getIndex()]; }
403 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::particle()
const { verifyIndex();
return getData()->particle[getIndex()]; }
406 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::body()
const { verifyIndex();
return getData()->body[getIndex()]; }
408 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintInstance::contactIndex() { verifyIndex();
return getData()->contactIndex[getIndex()]; }
409 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::contactIndex()
const { verifyIndex();
return getData()->contactIndex[getIndex()]; }
411 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintInstance::materialIndex() { verifyIndex();
return getData()->materialIndex[getIndex()]; }
412 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::materialIndex()
const { verifyIndex();
return getData()->materialIndex[getIndex()]; }
414 AGX_FORCE_INLINE agx::Bool& ParticleBodyContactConstraintInstance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
415 AGX_FORCE_INLINE agx::Bool const& ParticleBodyContactConstraintInstance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
424 AGX_FORCE_INLINE ParticleBodyContactConstraintSemantics::ParticleBodyContactConstraintSemantics() {}
432 AGX_TYPE_BINDING(agx::Physics::Particle::ParticleBodyContactConstraintInstance,
"Physics.Particle.ParticleBodyContactConstraintInstance")
435 # pragma warning(pop) 438 #undef AGX_ENTITY_WRAPPER 439 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
agxData::EntityInstance instance()
ParticleBodyContactConstraintData * getData()
Data storage for a collection of entity instances of a specified EntityModel.
ParticleBodyContactConstraintPtr PtrT
ParticleBodyContactConstraintInstance InstanceType
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Pointer to a entity instance of type Physics.Interaction.
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
Abstract description of the data attributes for the Physics.Particle.ParticleBodyContactConstraint en...
bool isInstanceOf(agxData::EntityModel *model) const
static ParticleBodyContactConstraintModel * instance()
Type-specific Array used for fast access into the data held by a Buffer.
Abstract description of the data attributes for the Physics.Interaction entity.
static agxData::ScalarAttributeT< agx::UInt32 > * materialIndexAttribute
AGXPHYSICS_EXPORT agx::UInt32 & materialIndex()
static agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian > * GAttribute
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT ParticleBodyContactConstraintInstance instance()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::ParticleBodyContactJacobian & G()
ParticleBodyContactConstraintModel ModelType
Pointer to a entity instance of type Physics.Particle.ParticleBodyContactConstraint.
AGXPHYSICS_EXPORT ParticleBodyContactConstraintPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::UInt32 & body()
static agxData::ScalarAttributeT< agx::UInt32 > * bodyAttribute
AGXPHYSICS_EXPORT ParticleBodyContactConstraintPtr()
static agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian > * GMInvAttribute
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::Bool & isImpacting()
AGXPHYSICS_EXPORT agx::UInt32 & particle()
static agxData::ScalarAttributeT< agx::UInt32 > * contactIndexAttribute
AGXPHYSICS_EXPORT agx::ParticleBodyContactJacobian & GMInv()
static agxData::ScalarAttributeT< agx::UInt32 > * particleAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT ParticleBodyContactConstraintSemantics * operator->()
ParticleBodyContactConstraintData DataType
AGXPHYSICS_EXPORT agx::UInt32 & contactIndex()