21 #ifndef GENERATED_AGX_PHYSICS_CONTACTCONSTRAINT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_CONTACTCONSTRAINT_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 ) 57 class ContactConstraintModel;
58 class ContactConstraintData;
59 class ContactConstraintPtr;
60 class ContactConstraintInstance;
61 class ContactConstraintSemantics;
86 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
override;
106 #ifndef AGX_PHYSICS_CONTACTCONSTRAINT_DATA_SET_OVERRIDE 107 #define AGX_PHYSICS_CONTACTCONSTRAINT_DATA_SET 108 class AGXPHYSICS_EXPORT ContactConstraintData :
public agx::Physics::BinaryConstraintData
111 ContactConstraintInstance operator[] (
size_t index);
126 ContactConstraintData();
129 virtual ~ContactConstraintData() {}
130 virtual void setNumElements(
agx::Index numElements)
override;
133 ContactConstraintData& operator= (
const ContactConstraintData&) {
return *
this; }
141 class
AGXPHYSICS_EXPORT ContactConstraintSemantics : public
agx::Physics::BinaryConstraintSemantics
160 friend class ContactConstraintInstance;
161 ContactConstraintSemantics();
189 ContactConstraintData* getData();
190 const ContactConstraintData* getData()
const;
212 class
AGXPHYSICS_EXPORT ContactConstraintInstance : public
agx::Physics::BinaryConstraintInstance
215 ContactConstraintInstance();
216 ContactConstraintInstance(ContactConstraintData* data,
agx::Index index);
221 ContactConstraintData* getData();
222 const ContactConstraintData* getData()
const;
254 inline ContactConstraintInstance
agx::Physics::ContactConstraintData::operator[] (
size_t index) {
return ContactConstraintInstance(
this, (
agx::Index)index); }
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
268 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
276 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
308 AGX_FORCE_INLINE ContactConstraintInstance::ContactConstraintInstance(ContactConstraintData* data,
agx::Index index) : agx::Physics::BinaryConstraintInstance(data, index) {}
313 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
328 AGX_FORCE_INLINE agx::UInt32& ContactConstraintInstance::contactIndex() { verifyIndex();
return getData()->contactIndex[getIndex()]; }
329 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::contactIndex()
const { verifyIndex();
return getData()->contactIndex[getIndex()]; }
331 AGX_FORCE_INLINE agx::UInt32& ContactConstraintInstance::materialIndex() { verifyIndex();
return getData()->materialIndex[getIndex()]; }
332 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::materialIndex()
const { verifyIndex();
return getData()->materialIndex[getIndex()]; }
335 AGX_FORCE_INLINE agx::IndexRange const& ContactConstraintInstance::contactPointRange()
const { verifyIndex();
return getData()->contactPointRange[getIndex()]; }
338 AGX_FORCE_INLINE ContactConstraintSemantics::ContactConstraintSemantics() {}
345 AGX_TYPE_BINDING(agx::Physics::ContactConstraintInstance,
"Physics.ContactConstraintInstance")
348 # pragma warning(pop) 351 #undef AGX_ENTITY_WRAPPER 352 #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())
Abstract description of the data attributes for the Physics.BinaryConstraint entity.
#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.
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
Pointer to a entity instance of type Physics.BinaryConstraint.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()