21 #ifndef GENERATED_AGX_PHYSICS_GRANULARBODY_CONTACTCONSTRAINT32_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GRANULARBODY_CONTACTCONSTRAINT32_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 ) 56 namespace GranularBody
59 class ContactConstraint32Model;
60 class ContactConstraint32Data;
61 class ContactConstraint32Ptr;
62 class ContactConstraint32Instance;
63 class ContactConstraint32Semantics;
88 virtual void shutdownCleanup()
override;
116 virtual void configure(agx::TiXmlElement* eEntity)
override;
117 virtual void initAttributeAccessors()
override;
124 #ifndef AGX_PHYSICS_GRANULARBODY_CONTACTCONSTRAINT32_DATA_SET_OVERRIDE 125 #define AGX_PHYSICS_GRANULARBODY_CONTACTCONSTRAINT32_DATA_SET 129 ContactConstraint32Instance operator[] (
size_t index);
176 ContactConstraint32Data();
179 virtual ~ContactConstraint32Data() {}
180 virtual void setNumElements(
agx::Index numElements)
override;
183 ContactConstraint32Data& operator= (
const ContactConstraint32Data&) {
return *
this; }
214 agx::Real32 const& getTwistLimitMultiplier()
const;
229 void setIsImpacting(
agx::Bool const& value);
230 void setActiveCount(
agx::UInt const& value);
231 void setRestingCompliance(
agx::Real32 const& value);
235 void setNonlinearMultiplier(
agx::Real32 const& value);
236 void setRollingResistanceMu(
agx::Real32 const& value);
237 void setTwistLimitMultiplier(
agx::Real32 const& value);
242 friend class ContactConstraint32Instance;
243 ContactConstraint32Semantics();
271 ContactConstraint32Data* getData();
272 const ContactConstraint32Data* getData()
const;
372 #ifdef AGX_GENERATED_TOLUA_WRAPPER 373 inline agx::UInt32 const& getBody1()
const {
return (*this)->getBody1(); }
374 inline agx::UInt32 const& getBody2()
const {
return (*this)->getBody2(); }
375 inline agx::UInt32 const& getSolveBody1()
const {
return (*this)->getSolveBody1(); }
376 inline agx::UInt32 const& getSolveBody2()
const {
return (*this)->getSolveBody2(); }
377 inline agx::UInt32 const& getCachedContactId()
const {
return (*this)->getCachedContactId(); }
378 inline agx::UInt32 const& getContactIndex()
const {
return (*this)->getContactIndex(); }
379 inline agx::UInt32 const& getJacobianIndex()
const {
return (*this)->getJacobianIndex(); }
380 inline agx::UInt32 const& getRowIndex()
const {
return (*this)->getRowIndex(); }
381 inline agx::UInt32 const& getMaterialIndex()
const {
return (*this)->getMaterialIndex(); }
382 inline agx::UInt32 const& getIterationCount()
const {
return (*this)->getIterationCount(); }
383 inline agx::Bool const& getIsImpacting()
const {
return (*this)->getIsImpacting(); }
384 inline agx::UInt const& getActiveCount()
const {
return (*this)->getActiveCount(); }
385 inline agx::Real32 const& getRestingCompliance()
const {
return (*this)->getRestingCompliance(); }
386 inline agx::Real32 const& getCharContactTime()
const {
return (*this)->getCharContactTime(); }
387 inline agx::Real32 const& getCharMass()
const {
return (*this)->getCharMass(); }
389 inline agx::Real32 const& getNonlinearMultiplier()
const {
return (*this)->getNonlinearMultiplier(); }
390 inline agx::Real32 const& getRollingResistanceMu()
const {
return (*this)->getRollingResistanceMu(); }
391 inline agx::Real32 const& getTwistLimitMultiplier()
const {
return (*this)->getTwistLimitMultiplier(); }
394 inline void setBody1(
agx::UInt32 const& value) { (*this)->setBody1(value); }
395 inline void setBody2(
agx::UInt32 const& value) { (*this)->setBody2(value); }
396 inline void setSolveBody1(
agx::UInt32 const& value) { (*this)->setSolveBody1(value); }
397 inline void setSolveBody2(
agx::UInt32 const& value) { (*this)->setSolveBody2(value); }
398 inline void setCachedContactId(
agx::UInt32 const& value) { (*this)->setCachedContactId(value); }
399 inline void setContactIndex(
agx::UInt32 const& value) { (*this)->setContactIndex(value); }
400 inline void setJacobianIndex(
agx::UInt32 const& value) { (*this)->setJacobianIndex(value); }
401 inline void setRowIndex(
agx::UInt32 const& value) { (*this)->setRowIndex(value); }
402 inline void setMaterialIndex(
agx::UInt32 const& value) { (*this)->setMaterialIndex(value); }
403 inline void setIterationCount(
agx::UInt32 const& value) { (*this)->setIterationCount(value); }
404 inline void setIsImpacting(
agx::Bool const& value) { (*this)->setIsImpacting(value); }
405 inline void setActiveCount(
agx::UInt const& value) { (*this)->setActiveCount(value); }
406 inline void setRestingCompliance(
agx::Real32 const& value) { (*this)->setRestingCompliance(value); }
407 inline void setCharContactTime(
agx::Real32 const& value) { (*this)->setCharContactTime(value); }
408 inline void setCharMass(
agx::Real32 const& value) { (*this)->setCharMass(value); }
410 inline void setNonlinearMultiplier(
agx::Real32 const& value) { (*this)->setNonlinearMultiplier(value); }
411 inline void setRollingResistanceMu(
agx::Real32 const& value) { (*this)->setRollingResistanceMu(value); }
412 inline void setTwistLimitMultiplier(
agx::Real32 const& value) { (*this)->setTwistLimitMultiplier(value); }
423 ContactConstraint32Instance();
424 ContactConstraint32Instance(ContactConstraint32Data* data,
agx::Index index);
429 ContactConstraint32Data* getData();
430 const ContactConstraint32Data* getData()
const;
542 inline ContactConstraint32Instance
agx::Physics::GranularBody::ContactConstraint32Data::operator[] (
size_t index) {
return ContactConstraint32Instance(
this, (
agx::Index)index); }
549 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
556 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
564 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
573 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
643 AGX_FORCE_INLINE ContactConstraint32Instance::ContactConstraint32Instance() {}
649 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
656 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
665 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
668 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
670 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::solveBody1() { verifyIndex();
return getData()->solveBody1[getIndex()]; }
671 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::solveBody1()
const { verifyIndex();
return getData()->solveBody1[getIndex()]; }
673 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::solveBody2() { verifyIndex();
return getData()->solveBody2[getIndex()]; }
674 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::solveBody2()
const { verifyIndex();
return getData()->solveBody2[getIndex()]; }
676 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::cachedContactId() { verifyIndex();
return getData()->cachedContactId[getIndex()]; }
677 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::cachedContactId()
const { verifyIndex();
return getData()->cachedContactId[getIndex()]; }
679 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::contactIndex() { verifyIndex();
return getData()->contactIndex[getIndex()]; }
680 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::contactIndex()
const { verifyIndex();
return getData()->contactIndex[getIndex()]; }
682 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::jacobianIndex() { verifyIndex();
return getData()->jacobianIndex[getIndex()]; }
683 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::jacobianIndex()
const { verifyIndex();
return getData()->jacobianIndex[getIndex()]; }
686 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::rowIndex()
const { verifyIndex();
return getData()->rowIndex[getIndex()]; }
688 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::materialIndex() { verifyIndex();
return getData()->materialIndex[getIndex()]; }
689 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::materialIndex()
const { verifyIndex();
return getData()->materialIndex[getIndex()]; }
691 AGX_FORCE_INLINE agx::UInt32& ContactConstraint32Instance::iterationCount() { verifyIndex();
return getData()->iterationCount[getIndex()]; }
692 AGX_FORCE_INLINE agx::UInt32 const& ContactConstraint32Instance::iterationCount()
const { verifyIndex();
return getData()->iterationCount[getIndex()]; }
694 AGX_FORCE_INLINE agx::Bool& ContactConstraint32Instance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
695 AGX_FORCE_INLINE agx::Bool const& ContactConstraint32Instance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
697 AGX_FORCE_INLINE agx::UInt& ContactConstraint32Instance::activeCount() { verifyIndex();
return getData()->activeCount[getIndex()]; }
698 AGX_FORCE_INLINE agx::UInt const& ContactConstraint32Instance::activeCount()
const { verifyIndex();
return getData()->activeCount[getIndex()]; }
700 AGX_FORCE_INLINE agx::Real32& ContactConstraint32Instance::restingCompliance() { verifyIndex();
return getData()->restingCompliance[getIndex()]; }
701 AGX_FORCE_INLINE agx::Real32 const& ContactConstraint32Instance::restingCompliance()
const { verifyIndex();
return getData()->restingCompliance[getIndex()]; }
703 AGX_FORCE_INLINE agx::Real32& ContactConstraint32Instance::charContactTime() { verifyIndex();
return getData()->charContactTime[getIndex()]; }
704 AGX_FORCE_INLINE agx::Real32 const& ContactConstraint32Instance::charContactTime()
const { verifyIndex();
return getData()->charContactTime[getIndex()]; }
707 AGX_FORCE_INLINE agx::Real32 const& ContactConstraint32Instance::charMass()
const { verifyIndex();
return getData()->charMass[getIndex()]; }
712 AGX_FORCE_INLINE agx::Real32& ContactConstraint32Instance::nonlinearMultiplier() { verifyIndex();
return getData()->nonlinearMultiplier[getIndex()]; }
713 AGX_FORCE_INLINE agx::Real32 const& ContactConstraint32Instance::nonlinearMultiplier()
const { verifyIndex();
return getData()->nonlinearMultiplier[getIndex()]; }
715 AGX_FORCE_INLINE agx::Real32& ContactConstraint32Instance::rollingResistanceMu() { verifyIndex();
return getData()->rollingResistanceMu[getIndex()]; }
716 AGX_FORCE_INLINE agx::Real32 const& ContactConstraint32Instance::rollingResistanceMu()
const { verifyIndex();
return getData()->rollingResistanceMu[getIndex()]; }
718 AGX_FORCE_INLINE agx::Real32& ContactConstraint32Instance::twistLimitMultiplier() { verifyIndex();
return getData()->twistLimitMultiplier[getIndex()]; }
719 AGX_FORCE_INLINE agx::Real32 const& ContactConstraint32Instance::twistLimitMultiplier()
const { verifyIndex();
return getData()->twistLimitMultiplier[getIndex()]; }
722 AGX_FORCE_INLINE ContactConstraint32Semantics::ContactConstraint32Semantics() {}
730 AGX_TYPE_BINDING(agx::Physics::GranularBody::ContactConstraint32Instance,
"Physics.GranularBody.ContactConstraint32Instance")
733 # pragma warning(pop) 736 #undef AGX_ENTITY_WRAPPER 737 #undef AGX_ENTITY_NAMESPACE static agxData::ScalarAttributeT< agx::UInt32 > * solveBody2Attribute
Abstract description of the data attributes for the Physics.GranularBody.ContactConstraint32 entity...
ContactConstraint32Data * getData()
static agxData::ScalarAttributeT< agx::Real32 > * nonlinearMultiplierAttribute
agxData::EntityData * getData()
static agxData::ScalarAttributeT< agx::UInt > * activeCountAttribute
static agxData::ScalarAttributeT< agx::Real32 > * charContactTimeAttribute
static agxData::ScalarAttributeT< agx::Real32 > * charMassAttribute
agxData::EntityInstance instance()
static ContactConstraint32Model * instance()
static agxData::ScalarAttributeT< agx::Real32 > * twistLimitMultiplierAttribute
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
AGXPHYSICS_EXPORT agx::Bool & isImpacting()
agx::String fullPath() const
AGXPHYSICS_EXPORT agx::Real32 & rollingResistanceMu()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
AGXPHYSICS_EXPORT agx::Real32 & charContactTime()
#define AGXPHYSICS_EXPORT
AGXPHYSICS_EXPORT agx::UInt32 & jacobianIndex()
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...
AGXPHYSICS_EXPORT ContactConstraint32Ptr()
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::UInt32 & body1()
AGXPHYSICS_EXPORT agx::Real32 & restingCompliance()
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * iterationCountAttribute
static agxData::ScalarAttributeT< agx::JacobianMeta32 > * GMetaAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * cachedContactIdAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * solveBody1Attribute
AGXPHYSICS_EXPORT agx::Real32 & charMass()
static agxData::ScalarAttributeT< agx::Real32 > * restingComplianceAttribute
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT agx::Real32 & nonlinearMultiplier()
AGXPHYSICS_EXPORT agx::UInt & activeCount()
AGXPHYSICS_EXPORT agx::Real32 & twistLimitMultiplier()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
AGXPHYSICS_EXPORT agx::UInt32 & body2()
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
ContactConstraint32Ptr PtrT
static agxData::ScalarAttributeT< agx::UInt32 > * body2Attribute
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agx::UInt32 > * rowIndexAttribute
AGXPHYSICS_EXPORT ContactConstraint32Semantics * operator->()
ContactConstraint32Data DataType
AGXPHYSICS_EXPORT agx::UInt32 & materialIndex()
AGXPHYSICS_EXPORT agx::JacobianMeta32 & GMeta()
Pointer to a entity instance of type Physics.GranularBody.ContactConstraint32.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT agx::UInt32 & solveBody2()
static agxData::ScalarAttributeT< agx::Real32 > * rollingResistanceMuAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * body1Attribute
AGXPHYSICS_EXPORT agx::UInt32 & iterationCount()
bool isInstanceOf(agxData::EntityModel *model) const
ContactConstraint32Instance InstanceType
AGXPHYSICS_EXPORT agx::UInt32 & contactIndex()
static agxData::ScalarAttributeT< agx::UInt32 > * contactIndexAttribute
ContactConstraint32Model ModelType
AGXPHYSICS_EXPORT ContactConstraint32Instance instance()
static agxData::ScalarAttributeT< agx::UInt32 > * jacobianIndexAttribute
AGXPHYSICS_EXPORT ContactConstraint32Ptr & operator=(const agxData::EntityPtr &ptr)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::UInt32 & solveBody1()
static agxData::ScalarAttributeT< agx::UInt32 > * materialIndexAttribute
AGXPHYSICS_EXPORT agx::UInt32 & rowIndex()
AGXPHYSICS_EXPORT agx::UInt32 & cachedContactId()