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;
227 ContactInstance(ContactData* data,
agx::Index index);
232 ContactData* getData();
233 const ContactData* getData()
const;
270 inline ContactInstance
agx::Physics::ContactData::operator[] (
size_t index) {
return ContactInstance(
this, (
agx::Index)index); }
277 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
284 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
292 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
301 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 AGX_FORCE_INLINE ContactInstance::ContactInstance(ContactData* data,
agx::Index index) : agx::Physics::InteractionInstance(data, 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\'",
348 AGX_FORCE_INLINE agx::UInt32 const& ContactInstance::constraintIndex()
const { verifyIndex();
return getData()->constraintIndex[getIndex()]; }
353 AGX_FORCE_INLINE agx::UInt32& ContactInstance::contactZoneIndex() { verifyIndex();
return getData()->contactZoneIndex[getIndex()]; }
354 AGX_FORCE_INLINE agx::UInt32 const& ContactInstance::contactZoneIndex()
const { verifyIndex();
return getData()->contactZoneIndex[getIndex()]; }
357 AGX_FORCE_INLINE agx::UInt16 const& ContactInstance::contactZoneSlot()
const { verifyIndex();
return getData()->contactZoneSlot[getIndex()]; }
370 # pragma warning(pop) 373 #undef AGX_ENTITY_WRAPPER 374 #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
The agx namespace 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()