21 #ifndef GENERATED_AGX_PHYSICS_SOLVEBODY32_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_SOLVEBODY32_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 SolveBody32Model;
58 class SolveBody32Data;
60 class SolveBody32Instance;
61 class SolveBody32Semantics;
86 virtual void shutdownCleanup()
override;
102 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 virtual void initAttributeAccessors()
override;
110 #ifndef AGX_PHYSICS_SOLVEBODY32_DATA_SET_OVERRIDE 111 #define AGX_PHYSICS_SOLVEBODY32_DATA_SET 115 SolveBody32Instance operator[] (
size_t index);
141 virtual ~SolveBody32Data() {}
142 virtual void setNumElements(
agx::Index numElements)
override;
145 SolveBody32Data& operator= (
const SolveBody32Data&) {
return *
this; }
161 agx::Vec3f const& getOldAngularVelocity()
const;
170 void setAngularVelocity(
agx::Vec3f const& value);
172 void setOldAngularVelocity(
agx::Vec3f const& value);
180 friend class SolveBody32Instance;
181 SolveBody32Semantics();
209 SolveBody32Data* getData();
210 const SolveBody32Data* getData()
const;
255 SolveBody32Instance();
256 SolveBody32Instance(SolveBody32Data* data,
agx::Index index);
261 SolveBody32Data* getData();
262 const SolveBody32Data* getData()
const;
314 inline SolveBody32Instance
agx::Physics::SolveBody32Data::operator[] (
size_t index) {
return SolveBody32Instance(
this, (
agx::Index)index); }
321 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
328 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
336 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
345 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
385 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
392 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
401 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
403 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Instance::angularVelocity() { verifyIndex();
return getData()->angularVelocity[getIndex()]; }
404 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::angularVelocity()
const { verifyIndex();
return getData()->angularVelocity[getIndex()]; }
407 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::oldVelocity()
const { verifyIndex();
return getData()->oldVelocity[getIndex()]; }
409 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Instance::oldAngularVelocity() { verifyIndex();
return getData()->oldAngularVelocity[getIndex()]; }
410 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::oldAngularVelocity()
const { verifyIndex();
return getData()->oldAngularVelocity[getIndex()]; }
416 AGX_FORCE_INLINE agx::Real32 const& SolveBody32Instance::invInertia()
const { verifyIndex();
return getData()->invInertia[getIndex()]; }
429 AGX_TYPE_BINDING(agx::Physics::SolveBody32Instance,
"Physics.SolveBody32Instance")
432 # pragma warning(pop) 435 #undef AGX_ENTITY_WRAPPER 436 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::Vec3f & oldAngularVelocity()
static agxData::ScalarAttributeT< agx::Vec3f > * oldVelocityAttribute
agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agx::Vec3f & angularVelocity()
Data storage for a collection of entity instances of a specified EntityModel.
SolveBody32Model ModelType
#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::Real32 & invInertia()
#define AGXPHYSICS_EXPORT
AGXPHYSICS_EXPORT agx::Vec3f & oldVelocity()
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...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Real32 > * invMassAttribute
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT agx::Real32 & invMass()
Abstract description of the data attributes for the Physics.SolveBody32 entity.
AGXPHYSICS_EXPORT SolveBody32Instance instance()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Pointer to a entity instance of type Physics.SolveBody32.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT agx::Vec3f & velocity()
SolveBody32Data * getData()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT SolveBody32Semantics * operator->()
static agxData::ScalarAttributeT< agx::Vec3f > * velocityAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT SolveBody32Ptr & operator=(const agxData::EntityPtr &ptr)
static agxData::ScalarAttributeT< agx::SpinMutex > * solveMutexAttribute
SolveBody32Instance InstanceType
AGXPHYSICS_EXPORT SolveBody32Ptr()
AGXPHYSICS_EXPORT agx::SpinMutex & solveMutex()
static agxData::ScalarAttributeT< agx::Real32 > * invInertiaAttribute
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Vec3f > * oldAngularVelocityAttribute
static agxData::ScalarAttributeT< agx::Vec3f > * angularVelocityAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
static SolveBody32Model * instance()
#define DOXYGEN_START_INTERNAL_BLOCK()