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;
104 virtual void configure(agx::TiXmlElement* eEntity)
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);
181 friend class ParticleBodyContactConstraintPtr;
182 friend class ParticleBodyContactConstraintInstance;
183 ParticleBodyContactConstraintSemantics();
195 typedef ParticleBodyContactConstraintData
DataType;
212 const ParticleBodyContactConstraintData*
getData()
const;
252 #ifdef AGX_GENERATED_TOLUA_WRAPPER
253 inline agx::UInt32 const& getParticle()
const {
return (*this)->getParticle(); }
254 inline agx::UInt32 const& getBody()
const {
return (*this)->getBody(); }
255 inline agx::UInt32 const& getContactIndex()
const {
return (*this)->getContactIndex(); }
256 inline agx::UInt32 const& getMaterialIndex()
const {
return (*this)->getMaterialIndex(); }
257 inline agx::Bool const& getIsImpacting()
const {
return (*this)->getIsImpacting(); }
262 inline void setParticle(
agx::UInt32 const& value) { (*this)->setParticle(value); }
263 inline void setBody(
agx::UInt32 const& value) { (*this)->setBody(value); }
264 inline void setContactIndex(
agx::UInt32 const& value) { (*this)->setContactIndex(value); }
265 inline void setMaterialIndex(
agx::UInt32 const& value) { (*this)->setMaterialIndex(value); }
266 inline void setIsImpacting(
agx::Bool const& value) { (*this)->setIsImpacting(value); }
276 class
AGXPHYSICS_EXPORT ParticleBodyContactConstraintInstance : public
agx::Physics::InteractionInstance
279 ParticleBodyContactConstraintInstance();
280 ParticleBodyContactConstraintInstance(ParticleBodyContactConstraintData* data,
agx::Index index);
285 ParticleBodyContactConstraintData* getData();
286 const ParticleBodyContactConstraintData* getData()
const;
338 inline ParticleBodyContactConstraintInstance
agx::Physics::Particle::ParticleBodyContactConstraintData::operator[] (
size_t index) {
return ParticleBodyContactConstraintInstance(
this, (
agx::Index)index); }
345 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
352 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
360 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
369 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
375 inline const ParticleBodyContactConstraintInstance ParticleBodyContactConstraintPtr::instance()
const {
return agxData::EntityPtr::instance(); }
376 AGX_FORCE_INLINE ParticleBodyContactConstraintSemantics* ParticleBodyContactConstraintPtr::operator->() {
return (ParticleBodyContactConstraintSemantics* )
this; }
377 AGX_FORCE_INLINE const ParticleBodyContactConstraintSemantics* ParticleBodyContactConstraintPtr::operator->()
const {
return (
const ParticleBodyContactConstraintSemantics* )
this; }
381 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintPtr::particle() { verifyIndex();
return getData()->particle[calculateIndex()]; }
382 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintPtr::particle()
const { verifyIndex();
return getData()->particle[calculateIndex()]; }
384 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintPtr::body() { verifyIndex();
return getData()->body[calculateIndex()]; }
385 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintPtr::body()
const { verifyIndex();
return getData()->body[calculateIndex()]; }
387 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintPtr::contactIndex() { verifyIndex();
return getData()->contactIndex[calculateIndex()]; }
388 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintPtr::contactIndex()
const { verifyIndex();
return getData()->contactIndex[calculateIndex()]; }
390 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintPtr::materialIndex() { verifyIndex();
return getData()->materialIndex[calculateIndex()]; }
391 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintPtr::materialIndex()
const { verifyIndex();
return getData()->materialIndex[calculateIndex()]; }
393 AGX_FORCE_INLINE agx::Bool& ParticleBodyContactConstraintPtr::isImpacting() { verifyIndex();
return getData()->isImpacting[calculateIndex()]; }
394 AGX_FORCE_INLINE agx::Bool const& ParticleBodyContactConstraintPtr::isImpacting()
const { verifyIndex();
return getData()->isImpacting[calculateIndex()]; }
403 AGX_FORCE_INLINE ParticleBodyContactConstraintInstance::ParticleBodyContactConstraintInstance() {}
404 AGX_FORCE_INLINE ParticleBodyContactConstraintInstance::ParticleBodyContactConstraintInstance(ParticleBodyContactConstraintData* data,
agx::Index index) :
agx::Physics::InteractionInstance(data, index) {}
409 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
416 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
424 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintInstance::particle() { verifyIndex();
return getData()->particle[getIndex()]; }
425 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::particle()
const { verifyIndex();
return getData()->particle[getIndex()]; }
428 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::body()
const { verifyIndex();
return getData()->body[getIndex()]; }
430 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintInstance::contactIndex() { verifyIndex();
return getData()->contactIndex[getIndex()]; }
431 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::contactIndex()
const { verifyIndex();
return getData()->contactIndex[getIndex()]; }
433 AGX_FORCE_INLINE agx::UInt32& ParticleBodyContactConstraintInstance::materialIndex() { verifyIndex();
return getData()->materialIndex[getIndex()]; }
434 AGX_FORCE_INLINE agx::UInt32 const& ParticleBodyContactConstraintInstance::materialIndex()
const { verifyIndex();
return getData()->materialIndex[getIndex()]; }
436 AGX_FORCE_INLINE agx::Bool& ParticleBodyContactConstraintInstance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
437 AGX_FORCE_INLINE agx::Bool const& ParticleBodyContactConstraintInstance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
446 AGX_FORCE_INLINE ParticleBodyContactConstraintSemantics::ParticleBodyContactConstraintSemantics() {}
454 AGX_TYPE_BINDING(
agx::Physics::Particle::ParticleBodyContactConstraintInstance, "Physics.Particle.ParticleBodyContactConstraintInstance")
457 # pragma warning(pop)
460 #undef AGX_ENTITY_WRAPPER
461 #undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
Data storage for a collection of entity instances of a specified EntityModel.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.Interaction entity.
Pointer to a entity instance of type Physics.Interaction.
Abstract description of the data attributes for the Physics.Particle.ParticleBodyContactConstraint en...
virtual ~ParticleBodyContactConstraintModel()
void construct(agx::Physics::Particle::ParticleBodyContactConstraintPtr particleBodyContactConstraint)
ParticleBodyContactConstraintModel(const agx::String &name="ParticleBodyContactConstraint")
static agxData::ScalarAttributeT< agx::UInt32 > * materialIndexAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * contactIndexAttribute
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian > * GAttribute
virtual void initAttributeAccessors() override
static agxData::EntityStorage * defaultStorage()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
static ParticleBodyContactConstraintPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
ParticleBodyContactConstraintPtr PtrT
static agxData::ScalarAttributeT< agx::UInt32 > * bodyAttribute
static agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian > * GMInvAttribute
static ParticleBodyContactConstraintModel * instance()
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::UInt32 > * particleAttribute
Pointer to a entity instance of type Physics.Particle.ParticleBodyContactConstraint.
AGXPHYSICS_EXPORT agx::ParticleBodyContactJacobian & GMInv()
ParticleBodyContactConstraintInstance InstanceType
AGXPHYSICS_EXPORT const ParticleBodyContactConstraintInstance instance() const
AGXPHYSICS_EXPORT ParticleBodyContactConstraintPtr()
AGXPHYSICS_EXPORT ParticleBodyContactConstraintPtr(const agxData::EntityPtr &ptr)
const ParticleBodyContactConstraintData * getData() const
ParticleBodyContactConstraintModel ModelType
AGXPHYSICS_EXPORT agx::Bool & isImpacting()
ParticleBodyContactConstraintData DataType
AGXPHYSICS_EXPORT agx::UInt32 const & materialIndex() const
AGXPHYSICS_EXPORT ParticleBodyContactConstraintPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::ParticleBodyContactJacobian const & GMInv() const
AGXPHYSICS_EXPORT agx::UInt32 const & body() const
AGXPHYSICS_EXPORT agx::Bool const & isImpacting() const
AGXPHYSICS_EXPORT agx::UInt32 & contactIndex()
AGXPHYSICS_EXPORT agx::UInt32 & body()
AGXPHYSICS_EXPORT agx::UInt32 const & contactIndex() const
AGXPHYSICS_EXPORT const ParticleBodyContactConstraintSemantics * operator->() const
AGXPHYSICS_EXPORT agx::UInt32 const & particle() const
AGXPHYSICS_EXPORT agx::ParticleBodyContactJacobian & G()
ParticleBodyContactConstraintData * getData()
AGXPHYSICS_EXPORT agx::UInt32 & materialIndex()
AGXPHYSICS_EXPORT agx::ParticleBodyContactJacobian const & G() const
AGXPHYSICS_EXPORT agx::UInt32 & particle()
AGXPHYSICS_EXPORT ParticleBodyContactConstraintSemantics * operator->()
AGXPHYSICS_EXPORT ParticleBodyContactConstraintPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT ParticleBodyContactConstraintInstance instance()
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())