21 #ifndef GENERATED_AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINT_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 ) 60 class ContactConstraintData;
62 class ContactConstraintInstance;
63 class ContactConstraintSemantics;
88 virtual void shutdownCleanup()
override;
104 virtual void configure(agx::TiXmlElement* eEntity)
override;
105 virtual void initAttributeAccessors()
override;
112 #ifndef AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINT_DATA_SET_OVERRIDE 113 #define AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINT_DATA_SET 114 class AGXPHYSICS_EXPORT ContactConstraintData :
public agx::Physics::InteractionData
117 ContactConstraintInstance operator[] (
size_t index);
140 ContactConstraintData();
143 virtual ~ContactConstraintData() {}
144 virtual void setNumElements(
agx::Index numElements)
override;
147 ContactConstraintData& operator= (
const ContactConstraintData&) {
return *
this; }
175 void setIsImpacting(
agx::Bool const& value);
182 friend class ContactConstraintInstance;
183 ContactConstraintSemantics();
211 ContactConstraintData* getData();
212 const ContactConstraintData* getData()
const;
252 #ifdef AGX_GENERATED_TOLUA_WRAPPER 253 inline agx::UInt32 const& getParticle1()
const {
return (*this)->getParticle1(); }
254 inline agx::UInt32 const& getParticle2()
const {
return (*this)->getParticle2(); }
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 setParticle1(
agx::UInt32 const& value) { (*this)->setParticle1(value); }
263 inline void setParticle2(
agx::UInt32 const& value) { (*this)->setParticle2(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); }
279 ContactConstraintInstance();
280 ContactConstraintInstance(ContactConstraintData* data,
agx::Index index);
285 ContactConstraintData* getData();
286 const ContactConstraintData* getData()
const;
338 inline ContactConstraintInstance
agx::Physics::Particle::ContactConstraintData::operator[] (
size_t index) {
return ContactConstraintInstance(
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\'",
404 AGX_FORCE_INLINE ContactConstraintInstance::ContactConstraintInstance(ContactConstraintData* 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\'",
425 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::particle1()
const { verifyIndex();
return getData()->particle1[getIndex()]; }
428 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::particle2()
const { verifyIndex();
return getData()->particle2[getIndex()]; }
430 AGX_FORCE_INLINE agx::UInt32& ContactConstraintInstance::contactIndex() { verifyIndex();
return getData()->contactIndex[getIndex()]; }
431 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::contactIndex()
const { verifyIndex();
return getData()->contactIndex[getIndex()]; }
433 AGX_FORCE_INLINE agx::UInt32& ContactConstraintInstance::materialIndex() { verifyIndex();
return getData()->materialIndex[getIndex()]; }
434 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::materialIndex()
const { verifyIndex();
return getData()->materialIndex[getIndex()]; }
436 AGX_FORCE_INLINE agx::Bool& ContactConstraintInstance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
437 AGX_FORCE_INLINE agx::Bool const& ContactConstraintInstance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
446 AGX_FORCE_INLINE ContactConstraintSemantics::ContactConstraintSemantics() {}
454 AGX_TYPE_BINDING(agx::Physics::Particle::ContactConstraintInstance,
"Physics.Particle.ContactConstraintInstance")
457 # pragma warning(pop) 460 #undef AGX_ENTITY_WRAPPER 461 #undef AGX_ENTITY_NAMESPACE ContactConstraintPtr PtrT
ContactConstraintModel ModelType
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
Pointer to a entity instance of type Physics.Particle.ContactConstraint.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
AGXPHYSICS_EXPORT agx::ParticleParticleContactJacobian & GMInv()
static agxData::ScalarAttributeT< agx::ParticleParticleContactJacobian > * GMInvAttribute
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
static agxData::ScalarAttributeT< agx::UInt32 > * particle2Attribute
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...
AGXPHYSICS_EXPORT agx::UInt32 & materialIndex()
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT ContactConstraintPtr & operator=(const agxData::EntityPtr &ptr)
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
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.
AGXPHYSICS_EXPORT agx::UInt32 & contactIndex()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT agx::Bool & isImpacting()
ContactConstraintInstance InstanceType
Abstract description of the data attributes for the Physics.Particle.ContactConstraint entity...
Contains classes for low level data storage for AGX.
ContactConstraintData * getData()
static agxData::ScalarAttributeT< agx::ParticleParticleContactJacobian > * GAttribute
AGXPHYSICS_EXPORT ContactConstraintPtr()
AGXPHYSICS_EXPORT ContactConstraintSemantics * operator->()
ContactConstraintData DataType
static agxData::ScalarAttributeT< agx::UInt32 > * materialIndexAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * particle1Attribute
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::UInt32 > * contactIndexAttribute
AGXPHYSICS_EXPORT agx::ParticleParticleContactJacobian & G()
static ContactConstraintModel * instance()
AGXPHYSICS_EXPORT agx::UInt32 & particle1()
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::UInt32 & particle2()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT ContactConstraintInstance instance()