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;
210 #ifdef AGX_GENERATED_TOLUA_WRAPPER 211 inline agx::UInt32 const& getContactIndex()
const {
return (*this)->getContactIndex(); }
212 inline agx::UInt32 const& getMaterialIndex()
const {
return (*this)->getMaterialIndex(); }
213 inline agx::IndexRange const& getContactPointRange()
const {
return (*this)->getContactPointRange(); }
216 inline void setContactIndex(
agx::UInt32 const& value) { (*this)->setContactIndex(value); }
217 inline void setMaterialIndex(
agx::UInt32 const& value) { (*this)->setMaterialIndex(value); }
218 inline void setContactPointRange(
agx::IndexRange const& value) { (*this)->setContactPointRange(value); }
226 class
AGXPHYSICS_EXPORT ContactConstraintInstance : public
agx::Physics::BinaryConstraintInstance
229 ContactConstraintInstance();
230 ContactConstraintInstance(ContactConstraintData* data,
agx::Index index);
235 ContactConstraintData* getData();
236 const ContactConstraintData* getData()
const;
268 inline ContactConstraintInstance
agx::Physics::ContactConstraintData::operator[] (
size_t index) {
return ContactConstraintInstance(
this, (
agx::Index)index); }
275 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
282 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
290 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
299 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
322 AGX_FORCE_INLINE ContactConstraintInstance::ContactConstraintInstance(ContactConstraintData* data,
agx::Index index) : agx::Physics::BinaryConstraintInstance(data, index) {}
327 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
334 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
342 AGX_FORCE_INLINE agx::UInt32& ContactConstraintInstance::contactIndex() { verifyIndex();
return getData()->contactIndex[getIndex()]; }
343 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::contactIndex()
const { verifyIndex();
return getData()->contactIndex[getIndex()]; }
345 AGX_FORCE_INLINE agx::UInt32& ContactConstraintInstance::materialIndex() { verifyIndex();
return getData()->materialIndex[getIndex()]; }
346 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraintInstance::materialIndex()
const { verifyIndex();
return getData()->materialIndex[getIndex()]; }
349 AGX_FORCE_INLINE agx::IndexRange const& ContactConstraintInstance::contactPointRange()
const { verifyIndex();
return getData()->contactPointRange[getIndex()]; }
352 AGX_FORCE_INLINE ContactConstraintSemantics::ContactConstraintSemantics() {}
359 AGX_TYPE_BINDING(agx::Physics::ContactConstraintInstance,
"Physics.ContactConstraintInstance")
362 # pragma warning(pop) 365 #undef AGX_ENTITY_WRAPPER 366 #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
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
Pointer to a entity instance of type Physics.BinaryConstraint.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()