21 #ifndef GENERATED_AGX_PHYSICS_CONTACT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_CONTACT_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 ) 51 namespace agx {
namespace Physics {
class ContactMaterialPtr; }}
61 class ContactInstance;
62 class ContactSemantics;
87 virtual void shutdownCleanup()
override;
100 virtual void configure(agx::TiXmlElement* eEntity)
override;
101 virtual void initAttributeAccessors()
override;
108 #ifndef AGX_PHYSICS_CONTACT_DATA_SET_OVERRIDE 109 #define AGX_PHYSICS_CONTACT_DATA_SET 113 ContactInstance operator[] (
size_t index);
133 virtual ~ContactData() {}
134 virtual void setNumElements(
agx::Index numElements)
override;
137 ContactData& operator= (
const ContactData&) {
return *
this; }
160 void setContactZoneIndex(
agx::UInt32 const& value);
166 friend class ContactInstance;
195 ContactData* getData();
196 const ContactData* getData()
const;
221 #ifdef AGX_GENERATED_TOLUA_WRAPPER 222 inline agx::UInt32 const& getConstraintIndex()
const {
return (*this)->getConstraintIndex(); }
224 inline agx::UInt32 const& getContactZoneIndex()
const {
return (*this)->getContactZoneIndex(); }
225 inline agx::UInt16 const& getContactZoneSlot()
const {
return (*this)->getContactZoneSlot(); }
228 inline void setConstraintIndex(
agx::UInt32 const& value) { (*this)->setConstraintIndex(value); }
230 inline void setContactZoneIndex(
agx::UInt32 const& value) { (*this)->setContactZoneIndex(value); }
231 inline void setContactZoneSlot(
agx::UInt16 const& value) { (*this)->setContactZoneSlot(value); }
243 ContactInstance(ContactData* data,
agx::Index index);
248 ContactData* getData();
249 const ContactData* getData()
const;
286 inline ContactInstance
agx::Physics::ContactData::operator[] (
size_t index) {
return ContactInstance(
this, (
agx::Index)index); }
293 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
300 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
308 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
317 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
343 AGX_FORCE_INLINE ContactInstance::ContactInstance(ContactData* data,
agx::Index index) : agx::Physics::InteractionInstance(data, index) {}
348 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
355 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
364 AGX_FORCE_INLINE agx::UInt32 const& ContactInstance::constraintIndex()
const { verifyIndex();
return getData()->constraintIndex[getIndex()]; }
369 AGX_FORCE_INLINE agx::UInt32& ContactInstance::contactZoneIndex() { verifyIndex();
return getData()->contactZoneIndex[getIndex()]; }
370 AGX_FORCE_INLINE agx::UInt32 const& ContactInstance::contactZoneIndex()
const { verifyIndex();
return getData()->contactZoneIndex[getIndex()]; }
373 AGX_FORCE_INLINE agx::UInt16 const& ContactInstance::contactZoneSlot()
const { verifyIndex();
return getData()->contactZoneSlot[getIndex()]; }
386 # pragma warning(pop) 389 #undef AGX_ENTITY_WRAPPER 390 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#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())
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...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
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.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
bool isInstanceOf(agxData::EntityModel *model) const
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()