21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRYPARTICLECONTACTLIST_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRYPARTICLECONTACTLIST_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 )
54 namespace agx {
namespace Physics {
class GeometryPtr; }}
55 namespace agx {
namespace Physics {
class RigidBodyPtr; }}
56 namespace 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;
246 #ifdef AGX_GENERATED_TOLUA_WRAPPER
249 inline agx::Vec3 const& getBodyForce()
const {
return (*this)->getBodyForce(); }
250 inline agx::Vec3 const& getBodyTorque()
const {
return (*this)->getBodyTorque(); }
251 inline agx::Bool const& getIsImpacting()
const {
return (*this)->getIsImpacting(); }
257 inline void setBodyForce(
agx::Vec3 const& value) { (*this)->setBodyForce(value); }
258 inline void setBodyTorque(
agx::Vec3 const& value) { (*this)->setBodyTorque(value); }
259 inline void setIsImpacting(
agx::Bool const& value) { (*this)->setIsImpacting(value); }
268 class
AGXPHYSICS_EXPORT GeometryParticleContactListInstance : public
agx::Physics::InteractionInstance
271 GeometryParticleContactListInstance();
272 GeometryParticleContactListInstance(GeometryParticleContactListData* data,
agx::Index index);
277 GeometryParticleContactListData* getData();
278 const GeometryParticleContactListData* getData()
const;
325 inline GeometryParticleContactListInstance
agx::Physics::GeometryParticleContactListData::operator[] (
size_t index) {
return GeometryParticleContactListInstance(
this, (
agx::Index)index); }
332 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
339 "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\'",
356 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
362 inline const GeometryParticleContactListInstance GeometryParticleContactListPtr::instance()
const {
return agxData::EntityPtr::instance(); }
363 AGX_FORCE_INLINE GeometryParticleContactListSemantics* GeometryParticleContactListPtr::operator->() {
return (GeometryParticleContactListSemantics* )
this; }
364 AGX_FORCE_INLINE const GeometryParticleContactListSemantics* GeometryParticleContactListPtr::operator->()
const {
return (
const GeometryParticleContactListSemantics* )
this; }
374 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListPtr::bodyForce() { verifyIndex();
return getData()->bodyForce[calculateIndex()]; }
375 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListPtr::bodyForce()
const { verifyIndex();
return getData()->bodyForce[calculateIndex()]; }
377 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListPtr::bodyTorque() { verifyIndex();
return getData()->bodyTorque[calculateIndex()]; }
378 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListPtr::bodyTorque()
const { verifyIndex();
return getData()->bodyTorque[calculateIndex()]; }
380 AGX_FORCE_INLINE agx::Bool& GeometryParticleContactListPtr::isImpacting() { verifyIndex();
return getData()->isImpacting[calculateIndex()]; }
381 AGX_FORCE_INLINE agx::Bool const& GeometryParticleContactListPtr::isImpacting()
const { verifyIndex();
return getData()->isImpacting[calculateIndex()]; }
387 AGX_FORCE_INLINE GeometryParticleContactListInstance::GeometryParticleContactListInstance() {}
388 AGX_FORCE_INLINE GeometryParticleContactListInstance::GeometryParticleContactListInstance(GeometryParticleContactListData* data,
agx::Index index) :
agx::Physics::InteractionInstance(data, index) {}
393 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
400 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
414 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListInstance::bodyForce() { verifyIndex();
return getData()->bodyForce[getIndex()]; }
415 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListInstance::bodyForce()
const { verifyIndex();
return getData()->bodyForce[getIndex()]; }
417 AGX_FORCE_INLINE agx::Vec3& GeometryParticleContactListInstance::bodyTorque() { verifyIndex();
return getData()->bodyTorque[getIndex()]; }
418 AGX_FORCE_INLINE agx::Vec3 const& GeometryParticleContactListInstance::bodyTorque()
const { verifyIndex();
return getData()->bodyTorque[getIndex()]; }
420 AGX_FORCE_INLINE agx::Bool& GeometryParticleContactListInstance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
421 AGX_FORCE_INLINE agx::Bool const& GeometryParticleContactListInstance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
427 AGX_FORCE_INLINE GeometryParticleContactListSemantics::GeometryParticleContactListSemantics() {}
434 AGX_TYPE_BINDING(
agx::Physics::GeometryParticleContactListInstance, "Physics.GeometryParticleContactListInstance")
437 # pragma warning(pop)
440 #undef AGX_ENTITY_WRAPPER
441 #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.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 agxData::EntityStorage * defaultStorage()
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 void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
static GeometryParticleContactListModel * instance()
virtual ~GeometryParticleContactListModel()
static agxData::ScalarAttributeT< agx::Vec3 > * bodyTorqueAttribute
GeometryParticleContactListPtr PtrT
GeometryParticleContactListModel(const agx::String &name="GeometryParticleContactList")
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::Vec3 > * bodyForceAttribute
Pointer to a entity instance of type Physics.GeometryParticleContactList.
AGXPHYSICS_EXPORT GeometryParticleContactListPtr(const agxData::EntityInstance &instance)
GeometryParticleContactListInstance InstanceType
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ParticleGeometryContactPtr > & contacts()
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & geometry()
AGXPHYSICS_EXPORT const GeometryParticleContactListInstance instance() const
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry() const
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr const & body() const
AGXPHYSICS_EXPORT agx::Vec3 const & bodyForce() const
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::ParticleGeometryContactPtr > const & contacts() const
AGXPHYSICS_EXPORT agx::Bool const & isImpacting() const
GeometryParticleContactListData * getData()
AGXPHYSICS_EXPORT GeometryParticleContactListSemantics * operator->()
AGXPHYSICS_EXPORT GeometryParticleContactListPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Bool & isImpacting()
AGXPHYSICS_EXPORT const GeometryParticleContactListSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Physics::RigidBodyPtr & body()
AGXPHYSICS_EXPORT GeometryParticleContactListPtr()
AGXPHYSICS_EXPORT GeometryParticleContactListInstance instance()
const GeometryParticleContactListData * getData() const
GeometryParticleContactListData DataType
GeometryParticleContactListModel ModelType
AGXPHYSICS_EXPORT agx::Vec3 & bodyTorque()
AGXPHYSICS_EXPORT agx::Vec3 const & bodyTorque() const
AGXPHYSICS_EXPORT GeometryParticleContactListPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Vec3 & bodyForce()
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())