21#ifndef GENERATED_AGX_PHYSICS_GEOMETRYPARTICLECONTACTLIST_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRYPARTICLECONTACTLIST_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
30# pragma warning( disable : 4505 )
32# pragma warning( disable : 4251 )
34# pragma warning( disable : 4355 )
36# pragma warning( disable: 4714 )
54namespace agx {
namespace Physics {
class GeometryPtr; }}
55namespace agx {
namespace Physics {
class RigidBodyPtr; }}
56namespace agx {
namespace Physics {
class ParticleGeometryContactPtr; }}
63 class GeometryParticleContactListModel;
64 class GeometryParticleContactListData;
65 class GeometryParticleContactListPtr;
66 class GeometryParticleContactListInstance;
67 class GeometryParticleContactListSemantics;
107 virtual void configure(agx::TiXmlElement* eEntity)
override;
115 #ifndef AGX_PHYSICS_GEOMETRYPARTICLECONTACTLIST_DATA_SET_OVERRIDE
116 #define AGX_PHYSICS_GEOMETRYPARTICLECONTACTLIST_DATA_SET
117 class AGXPHYSICS_EXPORT GeometryParticleContactListData :
public agx::Physics::InteractionData
120 GeometryParticleContactListInstance operator[] (
size_t index);
141 GeometryParticleContactListData();
144 virtual ~GeometryParticleContactListData() {}
145 virtual void setNumElements(
agx::Index numElements)
override;
148 GeometryParticleContactListData& operator= (
const GeometryParticleContactListData&) {
return *
this; }
156 class
AGXPHYSICS_EXPORT GeometryParticleContactListSemantics : public
agx::Physics::InteractionSemantics
173 void setBodyForce(
agx::Vec3 const& value);
174 void setBodyTorque(
agx::Vec3 const& value);
175 void setIsImpacting(
agx::Bool const& value);
180 friend class GeometryParticleContactListPtr;
181 friend class GeometryParticleContactListInstance;
182 GeometryParticleContactListSemantics();
211 const GeometryParticleContactListData*
getData()
const;
248 class
AGXPHYSICS_EXPORT GeometryParticleContactListInstance : public
agx::Physics::InteractionInstance
251 GeometryParticleContactListInstance();
252 GeometryParticleContactListInstance(GeometryParticleContactListData* data,
agx::Index index);
257 GeometryParticleContactListData* getData();
258 const GeometryParticleContactListData* getData()
const;
305 inline GeometryParticleContactListInstance
agx::Physics::GeometryParticleContactListData::operator[] (
size_t index) {
return GeometryParticleContactListInstance(
this, (
agx::Index)index); }
312 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
319 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
328 EntityPtr::getModel()->fullPath().c_str(), GeometryParticleContactListModel::instance()->fullPath().c_str());
336 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
337 EntityPtr::getModel()->fullPath().c_str(), GeometryParticleContactListModel::instance()->fullPath().c_str());
342 inline const GeometryParticleContactListInstance GeometryParticleContactListPtr::instance()
const {
return agxData::EntityPtr::instance(); }
343 AGX_FORCE_INLINE GeometryParticleContactListSemantics* GeometryParticleContactListPtr::operator->() {
return (GeometryParticleContactListSemantics* )
this; }
344 AGX_FORCE_INLINE const GeometryParticleContactListSemantics* GeometryParticleContactListPtr::operator->()
const {
return (
const GeometryParticleContactListSemantics* )
this; }
354 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListPtr::bodyForce() { verifyIndex();
return getData()->bodyForce[calculateIndex()]; }
355 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListPtr::bodyForce()
const { verifyIndex();
return getData()->bodyForce[calculateIndex()]; }
357 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListPtr::bodyTorque() { verifyIndex();
return getData()->bodyTorque[calculateIndex()]; }
358 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListPtr::bodyTorque()
const { verifyIndex();
return getData()->bodyTorque[calculateIndex()]; }
360 AGX_FORCE_INLINE agx::Bool& GeometryParticleContactListPtr::isImpacting() { verifyIndex();
return getData()->isImpacting[calculateIndex()]; }
361 AGX_FORCE_INLINE agx::Bool const& GeometryParticleContactListPtr::isImpacting()
const { verifyIndex();
return getData()->isImpacting[calculateIndex()]; }
367 AGX_FORCE_INLINE GeometryParticleContactListInstance::GeometryParticleContactListInstance() {}
368 AGX_FORCE_INLINE GeometryParticleContactListInstance::GeometryParticleContactListInstance(GeometryParticleContactListData* data,
agx::Index index) :
agx::Physics::InteractionInstance(data, index) {}
373 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
380 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
394 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListInstance::bodyForce() { verifyIndex();
return getData()->bodyForce[getIndex()]; }
395 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListInstance::bodyForce()
const { verifyIndex();
return getData()->bodyForce[getIndex()]; }
397 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListInstance::bodyTorque() { verifyIndex();
return getData()->bodyTorque[getIndex()]; }
398 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListInstance::bodyTorque()
const { verifyIndex();
return getData()->bodyTorque[getIndex()]; }
400 AGX_FORCE_INLINE agx::Bool& GeometryParticleContactListInstance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
401 AGX_FORCE_INLINE agx::Bool const& GeometryParticleContactListInstance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
407 AGX_FORCE_INLINE GeometryParticleContactListSemantics::GeometryParticleContactListSemantics() {}
414AGX_TYPE_BINDING(
agx::Physics::GeometryParticleContactListInstance, "Physics.GeometryParticleContactListInstance")
420#undef AGX_ENTITY_WRAPPER
421#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...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
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.GeometryParticleContactList entity.
static agxData::ArrayAttributeT< agx::Physics::ParticleGeometryContactPtr > * contactsAttribute
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometryAttribute
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void construct(agxData::EntityPtr instance) override
void construct(agx::Physics::GeometryParticleContactListPtr geometryParticleContactList)
static GeometryParticleContactListPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Physics::RigidBodyPtr > * bodyAttribute
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
static agxData::EntityStorage * defaultStorage()
virtual ~GeometryParticleContactListModel()
static agxData::ScalarAttributeT< agx::Vec3 > * bodyTorqueAttribute
GeometryParticleContactListPtr PtrT
GeometryParticleContactListModel(const agx::String &name="GeometryParticleContactList")
virtual void initAttributeAccessors() override
static GeometryParticleContactListModel * instance()
static agxData::ScalarAttributeT< agx::Vec3 > * bodyForceAttribute
Pointer to a entity instance of type Physics.GeometryParticleContactList.
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr const & body() const
AGXPHYSICS_EXPORT GeometryParticleContactListPtr(const agxData::EntityInstance &instance)
GeometryParticleContactListData * getData()
AGXPHYSICS_EXPORT agx::Vec3 & bodyForce()
GeometryParticleContactListInstance InstanceType
AGXPHYSICS_EXPORT const GeometryParticleContactListInstance instance() const
AGXPHYSICS_EXPORT GeometryParticleContactListSemantics * operator->()
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ParticleGeometryContactPtr > & contacts()
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr & body()
AGXPHYSICS_EXPORT agx::Bool & isImpacting()
AGXPHYSICS_EXPORT agx::Vec3 & bodyTorque()
AGXPHYSICS_EXPORT GeometryParticleContactListPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ParticleGeometryContactPtr > const & contacts() const
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry() const
AGXPHYSICS_EXPORT GeometryParticleContactListPtr()
AGXPHYSICS_EXPORT GeometryParticleContactListInstance instance()
AGXPHYSICS_EXPORT const GeometryParticleContactListSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Vec3 const & bodyForce() const
const GeometryParticleContactListData * getData() const
AGXPHYSICS_EXPORT agx::Bool const & isImpacting() const
GeometryParticleContactListData DataType
GeometryParticleContactListModel ModelType
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & geometry()
AGXPHYSICS_EXPORT GeometryParticleContactListPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Vec3 const & bodyTorque() const
Pointer to a entity instance of type Physics.Geometry.
Abstract description of the data attributes for the Physics.Interaction entity.
Pointer to a entity instance of type Physics.Interaction.
Pointer to a entity instance of type Physics.RigidBody.
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.