21 #ifndef GENERATED_AGX_PHYSICS_CONSTRAINTROW_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_CONSTRAINTROW_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 ConstraintRowModel;
58 class ConstraintRowData;
59 class ConstraintRowPtr;
60 class ConstraintRowInstance;
61 class ConstraintRowSemantics;
86 virtual void shutdownCleanup()
override;
108 virtual void configure(agx::TiXmlElement* eEntity)
override;
109 virtual void initAttributeAccessors()
override;
116 #ifndef AGX_PHYSICS_CONSTRAINTROW_DATA_SET_OVERRIDE 117 #define AGX_PHYSICS_CONSTRAINTROW_DATA_SET 121 ConstraintRowInstance operator[] (
size_t index);
159 virtual ~ConstraintRowData() {}
160 virtual void setNumElements(
agx::Index numElements)
override;
163 ConstraintRowData& operator= (
const ConstraintRowData&) {
return *
this; }
188 agx::Int8 const& getIndexSetState()
const;
193 void setHolonomic(
agx::Bool const& value);
197 void setTotalLambda(
agx::Real const& value);
200 void setImpactSpeed(
agx::Real const& value);
201 void setVelocity(
agx::Real const& value);
202 void setViolation(
agx::Real const& value);
204 void setResidual(
agx::Real const& value);
205 void setIndexSetState(
agx::Int8 const& value);
210 friend class ConstraintRowInstance;
211 ConstraintRowSemantics();
239 ConstraintRowData* getData();
240 const ConstraintRowData* getData()
const;
315 ConstraintRowInstance();
316 ConstraintRowInstance(ConstraintRowData* data,
agx::Index index);
321 ConstraintRowData* getData();
322 const ConstraintRowData* getData()
const;
404 inline ConstraintRowInstance
agx::Physics::ConstraintRowData::operator[] (
size_t index) {
return ConstraintRowInstance(
this, (
agx::Index)index); }
411 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
418 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
426 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
435 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
493 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
500 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
508 AGX_FORCE_INLINE agx::Bool& ConstraintRowInstance::holonomic() { verifyIndex();
return getData()->holonomic[getIndex()]; }
509 AGX_FORCE_INLINE agx::Bool const& ConstraintRowInstance::holonomic()
const { verifyIndex();
return getData()->holonomic[getIndex()]; }
512 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::damping()
const { verifyIndex();
return getData()->damping[getIndex()]; }
515 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::epsilon()
const { verifyIndex();
return getData()->epsilon[getIndex()]; }
518 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::lambda()
const { verifyIndex();
return getData()->lambda[getIndex()]; }
520 AGX_FORCE_INLINE agx::Real& ConstraintRowInstance::totalLambda() { verifyIndex();
return getData()->totalLambda[getIndex()]; }
521 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::totalLambda()
const { verifyIndex();
return getData()->totalLambda[getIndex()]; }
524 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::rhs()
const { verifyIndex();
return getData()->rhs[getIndex()]; }
527 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::invD()
const { verifyIndex();
return getData()->invD[getIndex()]; }
529 AGX_FORCE_INLINE agx::Real& ConstraintRowInstance::impactSpeed() { verifyIndex();
return getData()->impactSpeed[getIndex()]; }
530 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::impactSpeed()
const { verifyIndex();
return getData()->impactSpeed[getIndex()]; }
533 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
535 AGX_FORCE_INLINE agx::Real& ConstraintRowInstance::violation() { verifyIndex();
return getData()->violation[getIndex()]; }
536 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::violation()
const { verifyIndex();
return getData()->violation[getIndex()]; }
542 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::residual()
const { verifyIndex();
return getData()->residual[getIndex()]; }
544 AGX_FORCE_INLINE agx::Int8& ConstraintRowInstance::indexSetState() { verifyIndex();
return getData()->indexSetState[getIndex()]; }
545 AGX_FORCE_INLINE agx::Int8 const& ConstraintRowInstance::indexSetState()
const { verifyIndex();
return getData()->indexSetState[getIndex()]; }
555 AGX_TYPE_BINDING(agx::Physics::ConstraintRowInstance,
"Physics.ConstraintRowInstance")
558 # pragma warning(pop) 561 #undef AGX_ENTITY_WRAPPER 562 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::Real & invD()
agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agx::RangeReal & bound()
Abstract description of the data attributes for the Physics.ConstraintRow entity. ...
AGXPHYSICS_EXPORT agx::Real & violation()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
static agxData::ScalarAttributeT< agx::RangeReal > * boundAttribute
ConstraintRowInstance InstanceType
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
ConstraintRowModel ModelType
#define AGXPHYSICS_EXPORT
ConstraintRowData DataType
AGXPHYSICS_EXPORT ConstraintRowPtr & operator=(const agxData::EntityPtr &ptr)
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...
static agxData::ScalarAttributeT< agx::Real > * invDAttribute
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Real > * totalLambdaAttribute
static agxData::ScalarAttributeT< agx::Real > * velocityAttribute
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
AGXPHYSICS_EXPORT agx::Real & impactSpeed()
EntityPtr & operator=(const EntityPtr &other)=default
AGXPHYSICS_EXPORT ConstraintRowInstance instance()
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT ConstraintRowSemantics * operator->()
static agxData::ScalarAttributeT< agx::Real > * impactSpeedAttribute
Pointer to a entity instance of type Physics.ConstraintRow.
Contains classes for low level data storage for AGX.
static ConstraintRowModel * instance()
AGXPHYSICS_EXPORT agx::Real & totalLambda()
AGXPHYSICS_EXPORT ConstraintRowPtr()
static agxData::ScalarAttributeT< agx::Real > * violationAttribute
static agxData::ScalarAttributeT< agx::Real > * residualAttribute
static agxData::ScalarAttributeT< agx::Real > * dampingAttribute
AGXPHYSICS_EXPORT agx::Real & damping()
AGXPHYSICS_EXPORT agx::Int8 & indexSetState()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
static agxData::ScalarAttributeT< agx::Bool > * holonomicAttribute
AGXPHYSICS_EXPORT agx::Real & lambda()
static agxData::ScalarAttributeT< agx::Real > * rhsAttribute
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
bool isInstanceOf(agxData::EntityModel *model) const
ConstraintRowData * getData()
static agxData::ScalarAttributeT< agx::Real > * epsilonAttribute
AGXPHYSICS_EXPORT agx::Real & rhs()
static agxData::ScalarAttributeT< agx::Int8 > * indexSetStateAttribute
AGXPHYSICS_EXPORT agx::Real & velocity()
AGXPHYSICS_EXPORT agx::Real & residual()
AGXPHYSICS_EXPORT agx::Real & epsilon()
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::Bool & holonomic()
static agxData::ScalarAttributeT< agx::Real > * lambdaAttribute
#define DOXYGEN_START_INTERNAL_BLOCK()