21 #ifndef GENERATED_AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW32_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW32_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 ContactConstraintRow32Model;
58 class ContactConstraintRow32Data;
59 class ContactConstraintRow32Ptr;
60 class ContactConstraintRow32Instance;
61 class ContactConstraintRow32Semantics;
86 virtual void shutdownCleanup()
override;
103 virtual void configure(agx::TiXmlElement* eEntity)
override;
104 virtual void initAttributeAccessors()
override;
111 #ifndef AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW32_DATA_SET_OVERRIDE
112 #define AGX_PHYSICS_PARTICLE_CONTACTCONSTRAINTROW32_DATA_SET
116 ContactConstraintRow32Instance operator[] (
size_t index);
141 ContactConstraintRow32Data();
144 virtual ~ContactConstraintRow32Data() {}
145 virtual void setNumElements(
agx::Index numElements)
override;
148 ContactConstraintRow32Data& operator= (
const ContactConstraintRow32Data&) {
return *
this; }
156 class
AGXPHYSICS_EXPORT ContactConstraintRow32Semantics : protected agxData::EntityPtr
180 void setResidual(
agx::Real const& value);
184 friend class ContactConstraintRow32Ptr;
185 friend class ContactConstraintRow32Instance;
186 ContactConstraintRow32Semantics();
214 ContactConstraintRow32Data* getData();
215 const ContactConstraintRow32Data* getData()
const;
260 #ifdef AGX_GENERATED_TOLUA_WRAPPER
261 inline agx::Real32 const& getLambda()
const {
return (*this)->getLambda(); }
262 inline agx::Real32 const& getImpactLambda()
const {
return (*this)->getImpactLambda(); }
263 inline agx::Real32 const& getRhs()
const {
return (*this)->getRhs(); }
264 inline agx::Real32 const& getEpsilon()
const {
return (*this)->getEpsilon(); }
265 inline agx::Real32 const& getVelocity()
const {
return (*this)->getVelocity(); }
266 inline agx::Real32 const& getInvD()
const {
return (*this)->getInvD(); }
267 inline agx::Real32 const& getViolation()
const {
return (*this)->getViolation(); }
268 inline agx::Real const& getResidual()
const {
return (*this)->getResidual(); }
271 inline void setLambda(
agx::Real32 const& value) { (*this)->setLambda(value); }
272 inline void setImpactLambda(
agx::Real32 const& value) { (*this)->setImpactLambda(value); }
273 inline void setRhs(
agx::Real32 const& value) { (*this)->setRhs(value); }
274 inline void setEpsilon(
agx::Real32 const& value) { (*this)->setEpsilon(value); }
275 inline void setVelocity(
agx::Real32 const& value) { (*this)->setVelocity(value); }
276 inline void setInvD(
agx::Real32 const& value) { (*this)->setInvD(value); }
277 inline void setViolation(
agx::Real32 const& value) { (*this)->setViolation(value); }
278 inline void setResidual(
agx::Real const& value) { (*this)->setResidual(value); }
286 class
AGXPHYSICS_EXPORT ContactConstraintRow32Instance : public agxData::EntityInstance
289 ContactConstraintRow32Instance();
290 ContactConstraintRow32Instance(ContactConstraintRow32Data* data,
agx::Index index);
295 ContactConstraintRow32Data* getData();
296 const ContactConstraintRow32Data* getData()
const;
353 inline ContactConstraintRow32Instance agx::Physics::Particle::ContactConstraintRow32Data::operator[] (
size_t index) {
return ContactConstraintRow32Instance(
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\'",
391 AGX_FORCE_INLINE ContactConstraintRow32Semantics* ContactConstraintRow32Ptr::operator->() {
return (ContactConstraintRow32Semantics* )
this; }
392 AGX_FORCE_INLINE const ContactConstraintRow32Semantics* ContactConstraintRow32Ptr::operator->()
const {
return (
const ContactConstraintRow32Semantics* )
this; }
397 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::lambda()
const { verifyIndex();
return getData()->lambda[calculateIndex()]; }
399 AGX_FORCE_INLINE agx::Real32& ContactConstraintRow32Ptr::impactLambda() { verifyIndex();
return getData()->impactLambda[calculateIndex()]; }
400 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::impactLambda()
const { verifyIndex();
return getData()->impactLambda[calculateIndex()]; }
403 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::rhs()
const { verifyIndex();
return getData()->rhs[calculateIndex()]; }
406 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::epsilon()
const { verifyIndex();
return getData()->epsilon[calculateIndex()]; }
408 AGX_FORCE_INLINE agx::Real32& ContactConstraintRow32Ptr::velocity() { verifyIndex();
return getData()->velocity[calculateIndex()]; }
409 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::velocity()
const { verifyIndex();
return getData()->velocity[calculateIndex()]; }
412 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::invD()
const { verifyIndex();
return getData()->invD[calculateIndex()]; }
414 AGX_FORCE_INLINE agx::Real32& ContactConstraintRow32Ptr::violation() { verifyIndex();
return getData()->violation[calculateIndex()]; }
415 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Ptr::violation()
const { verifyIndex();
return getData()->violation[calculateIndex()]; }
417 AGX_FORCE_INLINE agx::Real& ContactConstraintRow32Ptr::residual() { verifyIndex();
return getData()->residual[calculateIndex()]; }
418 AGX_FORCE_INLINE agx::Real const& ContactConstraintRow32Ptr::residual()
const { verifyIndex();
return getData()->residual[calculateIndex()]; }
421 AGX_FORCE_INLINE ContactConstraintRow32Instance::ContactConstraintRow32Instance() {}
422 AGX_FORCE_INLINE ContactConstraintRow32Instance::ContactConstraintRow32Instance(ContactConstraintRow32Data* data,
agx::Index index) : agxData::EntityInstance(data, index) {}
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\'",
443 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::lambda()
const { verifyIndex();
return getData()->lambda[getIndex()]; }
445 AGX_FORCE_INLINE agx::Real32& ContactConstraintRow32Instance::impactLambda() { verifyIndex();
return getData()->impactLambda[getIndex()]; }
446 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::impactLambda()
const { verifyIndex();
return getData()->impactLambda[getIndex()]; }
449 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::rhs()
const { verifyIndex();
return getData()->rhs[getIndex()]; }
452 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::epsilon()
const { verifyIndex();
return getData()->epsilon[getIndex()]; }
454 AGX_FORCE_INLINE agx::Real32& ContactConstraintRow32Instance::velocity() { verifyIndex();
return getData()->velocity[getIndex()]; }
455 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
458 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::invD()
const { verifyIndex();
return getData()->invD[getIndex()]; }
460 AGX_FORCE_INLINE agx::Real32& ContactConstraintRow32Instance::violation() { verifyIndex();
return getData()->violation[getIndex()]; }
461 AGX_FORCE_INLINE agx::Real32 const& ContactConstraintRow32Instance::violation()
const { verifyIndex();
return getData()->violation[getIndex()]; }
463 AGX_FORCE_INLINE agx::Real& ContactConstraintRow32Instance::residual() { verifyIndex();
return getData()->residual[getIndex()]; }
464 AGX_FORCE_INLINE agx::Real const& ContactConstraintRow32Instance::residual()
const { verifyIndex();
return getData()->residual[getIndex()]; }
467 AGX_FORCE_INLINE ContactConstraintRow32Semantics::ContactConstraintRow32Semantics() {}
475 AGX_TYPE_BINDING(agx::Physics::Particle::ContactConstraintRow32Instance, "Physics.Particle.ContactConstraintRow32Instance")
478 # pragma warning(pop)
481 #undef AGX_ENTITY_WRAPPER
482 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
static agxData::ScalarAttributeT< agx::Real32 > * invDAttribute
AGXPHYSICS_EXPORT ContactConstraintRow32Ptr()
agxData::EntityInstance instance()
static agxData::ScalarAttributeT< agx::Real32 > * violationAttribute
Pointer to a entity instance of type Physics.Particle.ContactConstraintRow32.
ContactConstraintRow32Data DataType
Abstract description of the data attributes for the Physics.Particle.ContactConstraintRow32 entity...
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
static ContactConstraintRow32Model * instance()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
ContactConstraintRow32Instance InstanceType
bool isInstanceOf(agxData::EntityModel *model) const
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
static agxData::ScalarAttributeT< agx::Real32 > * rhsAttribute
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
agx::String fullPath() const
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::Real32 > * epsilonAttribute
ContactConstraintRow32Model ModelType
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
static agxData::ScalarAttributeT< agx::Real32 > * lambdaAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
static agxData::ScalarAttributeT< agx::Real32 > * impactLambdaAttribute
bool isInstanceOf(agxData::EntityModel *model) const
ContactConstraintRow32Ptr PtrT
#define DOXYGEN_END_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::Real > * residualAttribute
#define DOXYGEN_START_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::Real32 > * velocityAttribute