21 #ifndef GENERATED_AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW_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 ContactConstraintRowModel;
58 class ContactConstraintRowData;
59 class ContactConstraintRowPtr;
60 class ContactConstraintRowInstance;
61 class ContactConstraintRowSemantics;
86 virtual void shutdownCleanup()
override;
103 virtual void configure(agx::TiXmlElement* eEntity)
override;
104 virtual void initAttributeAccessors()
override;
111 #ifndef AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW_DATA_SET_OVERRIDE 112 #define AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW_DATA_SET 116 ContactConstraintRowInstance operator[] (
size_t index);
141 ContactConstraintRowData();
144 virtual ~ContactConstraintRowData() {}
145 virtual void setNumElements(
agx::Index numElements)
override;
148 ContactConstraintRowData& operator= (
const ContactConstraintRowData&) {
return *
this; }
162 agx::Real const& getImpactLambda()
const;
174 void setImpactLambda(
agx::Real const& value);
177 void setVelocity(
agx::Real const& value);
179 void setViolation(
agx::Real const& value);
180 void setResidual(
agx::Real const& value);
185 friend class ContactConstraintRowInstance;
186 ContactConstraintRowSemantics();
214 ContactConstraintRowData* getData();
215 const ContactConstraintRowData* getData()
const;
260 #ifdef AGX_GENERATED_TOLUA_WRAPPER 261 inline agx::Real const& getLambda()
const {
return (*this)->getLambda(); }
262 inline agx::Real const& getImpactLambda()
const {
return (*this)->getImpactLambda(); }
263 inline agx::Real const& getRhs()
const {
return (*this)->getRhs(); }
264 inline agx::Real const& getEpsilon()
const {
return (*this)->getEpsilon(); }
265 inline agx::Real const& getVelocity()
const {
return (*this)->getVelocity(); }
266 inline agx::Real const& getInvD()
const {
return (*this)->getInvD(); }
267 inline agx::Real const& getViolation()
const {
return (*this)->getViolation(); }
268 inline agx::Real const& getResidual()
const {
return (*this)->getResidual(); }
271 inline void setLambda(
agx::Real const& value) { (*this)->setLambda(value); }
272 inline void setImpactLambda(
agx::Real const& value) { (*this)->setImpactLambda(value); }
273 inline void setRhs(
agx::Real const& value) { (*this)->setRhs(value); }
274 inline void setEpsilon(
agx::Real const& value) { (*this)->setEpsilon(value); }
275 inline void setVelocity(
agx::Real const& value) { (*this)->setVelocity(value); }
276 inline void setInvD(
agx::Real const& value) { (*this)->setInvD(value); }
277 inline void setViolation(
agx::Real const& value) { (*this)->setViolation(value); }
278 inline void setResidual(
agx::Real const& value) { (*this)->setResidual(value); }
289 ContactConstraintRowInstance();
290 ContactConstraintRowInstance(ContactConstraintRowData* data,
agx::Index index);
295 ContactConstraintRowData* getData();
296 const ContactConstraintRowData* getData()
const;
353 inline ContactConstraintRowInstance
agx::Physics::Particle::ContactConstraintRowData::operator[] (
size_t index) {
return ContactConstraintRowInstance(
this, (
agx::Index)index); }
360 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
375 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
384 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
421 AGX_FORCE_INLINE ContactConstraintRowInstance::ContactConstraintRowInstance() {}
427 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
434 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
442 AGX_FORCE_INLINE agx::Real& ContactConstraintRowInstance::lambda() { verifyIndex();
return getData()->lambda[getIndex()]; }
443 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::lambda()
const { verifyIndex();
return getData()->lambda[getIndex()]; }
445 AGX_FORCE_INLINE agx::Real& ContactConstraintRowInstance::impactLambda() { verifyIndex();
return getData()->impactLambda[getIndex()]; }
446 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::impactLambda()
const { verifyIndex();
return getData()->impactLambda[getIndex()]; }
449 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::rhs()
const { verifyIndex();
return getData()->rhs[getIndex()]; }
451 AGX_FORCE_INLINE agx::Real& ContactConstraintRowInstance::epsilon() { verifyIndex();
return getData()->epsilon[getIndex()]; }
452 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::epsilon()
const { verifyIndex();
return getData()->epsilon[getIndex()]; }
454 AGX_FORCE_INLINE agx::Real& ContactConstraintRowInstance::velocity() { verifyIndex();
return getData()->velocity[getIndex()]; }
455 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
458 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::invD()
const { verifyIndex();
return getData()->invD[getIndex()]; }
460 AGX_FORCE_INLINE agx::Real& ContactConstraintRowInstance::violation() { verifyIndex();
return getData()->violation[getIndex()]; }
461 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::violation()
const { verifyIndex();
return getData()->violation[getIndex()]; }
463 AGX_FORCE_INLINE agx::Real& ContactConstraintRowInstance::residual() { verifyIndex();
return getData()->residual[getIndex()]; }
464 AGX_FORCE_INLINE agx::Real const& ContactConstraintRowInstance::residual()
const { verifyIndex();
return getData()->residual[getIndex()]; }
467 AGX_FORCE_INLINE ContactConstraintRowSemantics::ContactConstraintRowSemantics() {}
475 AGX_TYPE_BINDING(agx::Physics::Particle::ContactConstraintRowInstance,
"Physics.Particle.ContactConstraintRowInstance")
478 # pragma warning(pop) 481 #undef AGX_ENTITY_WRAPPER 482 #undef AGX_ENTITY_NAMESPACE static agxData::ScalarAttributeT< agx::Real > * residualAttribute
static agxData::ScalarAttributeT< agx::Real > * epsilonAttribute
agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT ContactConstraintRowPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & impactLambda()
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT agx::Real & violation()
#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())
AGXPHYSICS_EXPORT agx::Real & residual()
#define AGXPHYSICS_EXPORT
ContactConstraintRowData * getData()
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 ContactConstraintRowInstance instance()
#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.
AGXPHYSICS_EXPORT agx::Real & lambda()
static ContactConstraintRowModel * instance()
static agxData::ScalarAttributeT< agx::Real > * rhsAttribute
static agxData::ScalarAttributeT< agx::Real > * velocityAttribute
AGXPHYSICS_EXPORT agx::Real & epsilon()
AGXPHYSICS_EXPORT agx::Real & velocity()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
ContactConstraintRowModel ModelType
static agxData::ScalarAttributeT< agx::Real > * invDAttribute
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::Real & invD()
ContactConstraintRowPtr PtrT
static agxData::ScalarAttributeT< agx::Real > * lambdaAttribute
AGXPHYSICS_EXPORT agx::Real & rhs()
Abstract description of the data attributes for the Physics.Particle.ContactConstraintRow entity...
static agxData::ScalarAttributeT< agx::Real > * violationAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
ContactConstraintRowData DataType
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Real > * impactLambdaAttribute
ContactConstraintRowInstance InstanceType
Pointer to a entity instance of type Physics.Particle.ContactConstraintRow.
AGXPHYSICS_EXPORT ContactConstraintRowSemantics * operator->()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT ContactConstraintRowPtr()