21 #ifndef GENERATED_AGX_PHYSICS_BODYCONTACT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_BODYCONTACT_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 ) 55 class BodyContactModel;
56 class BodyContactData;
58 class BodyContactInstance;
59 class BodyContactSemantics;
84 virtual void shutdownCleanup()
override;
96 virtual void configure(agx::TiXmlElement* eEntity)
override;
97 virtual void initAttributeAccessors()
override;
104 #ifndef AGX_PHYSICS_BODYCONTACT_DATA_SET_OVERRIDE 105 #define AGX_PHYSICS_BODYCONTACT_DATA_SET 109 BodyContactInstance operator[] (
size_t index);
120 typedef agx::Int contactListOffsetType;
127 virtual ~BodyContactData() {}
128 virtual void setNumElements(
agx::Index numElements)
override;
131 BodyContactData& operator= (
const BodyContactData&) {
return *
this; }
146 agx::Int const& getContactListOffset()
const;
151 void setBody1(
agx::Int const& value);
152 void setBody2(
agx::Int const& value);
153 void setContactListOffset(
agx::Int const& value);
158 friend class BodyContactInstance;
159 BodyContactSemantics();
187 BodyContactData* getData();
188 const BodyContactData* getData()
const;
213 BodyContactInstance();
214 BodyContactInstance(BodyContactData* data,
agx::Index index);
219 BodyContactData* getData();
220 const BodyContactData* getData()
const;
236 agx::Int const& contactListOffset()
const;
252 inline BodyContactInstance
agx::Physics::BodyContactData::operator[] (
size_t index) {
return BodyContactInstance(
this, (
agx::Index)index); }
259 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
266 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
274 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
283 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
311 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
318 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 AGX_FORCE_INLINE agx::Int const& BodyContactInstance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
330 AGX_FORCE_INLINE agx::Int const& BodyContactInstance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
332 AGX_FORCE_INLINE agx::Int& BodyContactInstance::contactListOffset() { verifyIndex();
return getData()->contactListOffset[getIndex()]; }
333 AGX_FORCE_INLINE agx::Int const& BodyContactInstance::contactListOffset()
const { verifyIndex();
return getData()->contactListOffset[getIndex()]; }
343 AGX_TYPE_BINDING(agx::Physics::BodyContactInstance,
"Physics.BodyContactInstance")
346 # pragma warning(pop) 349 #undef AGX_ENTITY_WRAPPER 350 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT BodyContactSemantics * operator->()
Abstract description of the data attributes for the Physics.BodyContact entity.
AGXPHYSICS_EXPORT agx::Int & contactListOffset()
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT BodyContactPtr()
#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())
BodyContactModel ModelType
static agxData::ScalarAttributeT< agx::Int > * body1Attribute
#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)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT BodyContactInstance instance()
BodyContactInstance InstanceType
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::Int > * contactListOffsetAttribute
static BodyContactModel * instance()
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 agx::Int & body2()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::Int & body1()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT BodyContactPtr & operator=(const agxData::EntityPtr &ptr)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Int > * body2Attribute
BodyContactData * getData()
Pointer to a entity instance of type Physics.BodyContact.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()