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;
310 #ifdef AGX_GENERATED_TOLUA_WRAPPER 311 inline agx::Bool const& getHolonomic()
const {
return (*this)->getHolonomic(); }
312 inline agx::Real const& getDamping()
const {
return (*this)->getDamping(); }
313 inline agx::Real const& getEpsilon()
const {
return (*this)->getEpsilon(); }
314 inline agx::Real const& getLambda()
const {
return (*this)->getLambda(); }
315 inline agx::Real const& getTotalLambda()
const {
return (*this)->getTotalLambda(); }
316 inline agx::Real const& getRhs()
const {
return (*this)->getRhs(); }
317 inline agx::Real const& getInvD()
const {
return (*this)->getInvD(); }
318 inline agx::Real const& getImpactSpeed()
const {
return (*this)->getImpactSpeed(); }
319 inline agx::Real const& getVelocity()
const {
return (*this)->getVelocity(); }
320 inline agx::Real const& getViolation()
const {
return (*this)->getViolation(); }
321 inline agx::RangeReal const& getBound()
const {
return (*this)->getBound(); }
322 inline agx::Real const& getResidual()
const {
return (*this)->getResidual(); }
323 inline agx::Int8 const& getIndexSetState()
const {
return (*this)->getIndexSetState(); }
326 inline void setHolonomic(
agx::Bool const& value) { (*this)->setHolonomic(value); }
328 inline void setEpsilon(
agx::Real const& value) { (*this)->setEpsilon(value); }
329 inline void setLambda(
agx::Real const& value) { (*this)->setLambda(value); }
330 inline void setTotalLambda(
agx::Real const& value) { (*this)->setTotalLambda(value); }
331 inline void setRhs(
agx::Real const& value) { (*this)->setRhs(value); }
332 inline void setInvD(
agx::Real const& value) { (*this)->setInvD(value); }
333 inline void setImpactSpeed(
agx::Real const& value) { (*this)->setImpactSpeed(value); }
334 inline void setVelocity(
agx::Real const& value) { (*this)->setVelocity(value); }
335 inline void setViolation(
agx::Real const& value) { (*this)->setViolation(value); }
336 inline void setBound(
agx::RangeReal const& value) { (*this)->setBound(value); }
337 inline void setResidual(
agx::Real const& value) { (*this)->setResidual(value); }
338 inline void setIndexSetState(
agx::Int8 const& value) { (*this)->setIndexSetState(value); }
349 ConstraintRowInstance();
350 ConstraintRowInstance(ConstraintRowData* data,
agx::Index index);
355 ConstraintRowData* getData();
356 const ConstraintRowData* getData()
const;
438 inline ConstraintRowInstance
agx::Physics::ConstraintRowData::operator[] (
size_t index) {
return ConstraintRowInstance(
this, (
agx::Index)index); }
445 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
452 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
460 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
469 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
527 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
534 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
542 AGX_FORCE_INLINE agx::Bool& ConstraintRowInstance::holonomic() { verifyIndex();
return getData()->holonomic[getIndex()]; }
543 AGX_FORCE_INLINE agx::Bool const& ConstraintRowInstance::holonomic()
const { verifyIndex();
return getData()->holonomic[getIndex()]; }
546 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::damping()
const { verifyIndex();
return getData()->damping[getIndex()]; }
549 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::epsilon()
const { verifyIndex();
return getData()->epsilon[getIndex()]; }
552 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::lambda()
const { verifyIndex();
return getData()->lambda[getIndex()]; }
554 AGX_FORCE_INLINE agx::Real& ConstraintRowInstance::totalLambda() { verifyIndex();
return getData()->totalLambda[getIndex()]; }
555 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::totalLambda()
const { verifyIndex();
return getData()->totalLambda[getIndex()]; }
558 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::rhs()
const { verifyIndex();
return getData()->rhs[getIndex()]; }
561 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::invD()
const { verifyIndex();
return getData()->invD[getIndex()]; }
563 AGX_FORCE_INLINE agx::Real& ConstraintRowInstance::impactSpeed() { verifyIndex();
return getData()->impactSpeed[getIndex()]; }
564 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::impactSpeed()
const { verifyIndex();
return getData()->impactSpeed[getIndex()]; }
567 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
569 AGX_FORCE_INLINE agx::Real& ConstraintRowInstance::violation() { verifyIndex();
return getData()->violation[getIndex()]; }
570 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::violation()
const { verifyIndex();
return getData()->violation[getIndex()]; }
576 AGX_FORCE_INLINE agx::Real const& ConstraintRowInstance::residual()
const { verifyIndex();
return getData()->residual[getIndex()]; }
578 AGX_FORCE_INLINE agx::Int8& ConstraintRowInstance::indexSetState() { verifyIndex();
return getData()->indexSetState[getIndex()]; }
579 AGX_FORCE_INLINE agx::Int8 const& ConstraintRowInstance::indexSetState()
const { verifyIndex();
return getData()->indexSetState[getIndex()]; }
589 AGX_TYPE_BINDING(agx::Physics::ConstraintRowInstance,
"Physics.ConstraintRowInstance")
592 # pragma warning(pop) 595 #undef AGX_ENTITY_WRAPPER 596 #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()
Namespace agx 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()