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;
102 virtual void configure(agx::TiXmlElement* eEntity)
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);
179 friend class SolveBody32Ptr;
180 friend class SolveBody32Instance;
181 SolveBody32Semantics();
250 #ifdef AGX_GENERATED_TOLUA_WRAPPER
251 inline agx::Vec3f const& getVelocity()
const {
return (*this)->getVelocity(); }
252 inline agx::Vec3f const& getAngularVelocity()
const {
return (*this)->getAngularVelocity(); }
253 inline agx::Vec3f const& getOldVelocity()
const {
return (*this)->getOldVelocity(); }
254 inline agx::Vec3f const& getOldAngularVelocity()
const {
return (*this)->getOldAngularVelocity(); }
255 inline agx::Real32 const& getInvMass()
const {
return (*this)->getInvMass(); }
256 inline agx::Real32 const& getInvInertia()
const {
return (*this)->getInvInertia(); }
257 inline agx::SpinMutex const& getSolveMutex()
const {
return (*this)->getSolveMutex(); }
260 inline void setVelocity(
agx::Vec3f const& value) { (*this)->setVelocity(value); }
261 inline void setAngularVelocity(
agx::Vec3f const& value) { (*this)->setAngularVelocity(value); }
262 inline void setOldVelocity(
agx::Vec3f const& value) { (*this)->setOldVelocity(value); }
263 inline void setOldAngularVelocity(
agx::Vec3f const& value) { (*this)->setOldAngularVelocity(value); }
264 inline void setInvMass(
agx::Real32 const& value) { (*this)->setInvMass(value); }
265 inline void setInvInertia(
agx::Real32 const& value) { (*this)->setInvInertia(value); }
266 inline void setSolveMutex(
agx::SpinMutex const& value) { (*this)->setSolveMutex(value); }
277 SolveBody32Instance();
278 SolveBody32Instance(SolveBody32Data* data,
agx::Index index);
283 SolveBody32Data* getData();
284 const SolveBody32Data* getData()
const;
336 inline SolveBody32Instance
agx::Physics::SolveBody32Data::operator[] (
size_t index) {
return SolveBody32Instance(
this, (
agx::Index)index); }
343 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
350 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
358 "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\'",
374 AGX_FORCE_INLINE SolveBody32Semantics* SolveBody32Ptr::operator->() {
return (SolveBody32Semantics* )
this; }
375 AGX_FORCE_INLINE const SolveBody32Semantics* SolveBody32Ptr::operator->()
const {
return (
const SolveBody32Semantics* )
this; }
380 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Ptr::velocity()
const { verifyIndex();
return getData()->velocity[calculateIndex()]; }
382 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Ptr::angularVelocity() { verifyIndex();
return getData()->angularVelocity[calculateIndex()]; }
383 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Ptr::angularVelocity()
const { verifyIndex();
return getData()->angularVelocity[calculateIndex()]; }
385 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Ptr::oldVelocity() { verifyIndex();
return getData()->oldVelocity[calculateIndex()]; }
386 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Ptr::oldVelocity()
const { verifyIndex();
return getData()->oldVelocity[calculateIndex()]; }
388 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Ptr::oldAngularVelocity() { verifyIndex();
return getData()->oldAngularVelocity[calculateIndex()]; }
389 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Ptr::oldAngularVelocity()
const { verifyIndex();
return getData()->oldAngularVelocity[calculateIndex()]; }
392 AGX_FORCE_INLINE agx::Real32 const& SolveBody32Ptr::invMass()
const { verifyIndex();
return getData()->invMass[calculateIndex()]; }
395 AGX_FORCE_INLINE agx::Real32 const& SolveBody32Ptr::invInertia()
const { verifyIndex();
return getData()->invInertia[calculateIndex()]; }
407 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
414 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
423 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
425 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Instance::angularVelocity() { verifyIndex();
return getData()->angularVelocity[getIndex()]; }
426 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::angularVelocity()
const { verifyIndex();
return getData()->angularVelocity[getIndex()]; }
429 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::oldVelocity()
const { verifyIndex();
return getData()->oldVelocity[getIndex()]; }
431 AGX_FORCE_INLINE agx::Vec3f& SolveBody32Instance::oldAngularVelocity() { verifyIndex();
return getData()->oldAngularVelocity[getIndex()]; }
432 AGX_FORCE_INLINE agx::Vec3f const& SolveBody32Instance::oldAngularVelocity()
const { verifyIndex();
return getData()->oldAngularVelocity[getIndex()]; }
438 AGX_FORCE_INLINE agx::Real32 const& SolveBody32Instance::invInertia()
const { verifyIndex();
return getData()->invInertia[getIndex()]; }
454 # pragma warning(pop)
457 #undef AGX_ENTITY_WRAPPER
458 #undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
Data storage for a collection of entity instances of a specified EntityModel.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.SolveBody32 entity.
SolveBody32Model(const agx::String &name="SolveBody32")
static agxData::ScalarAttributeT< agx::Real32 > * invInertiaAttribute
static SolveBody32Model * instance()
void construct(agx::Physics::SolveBody32Ptr solveBody32)
static agxData::ScalarAttributeT< agx::Real32 > * invMassAttribute
static agxData::ScalarAttributeT< agx::Vec3f > * oldVelocityAttribute
static agxData::ScalarAttributeT< agx::Vec3f > * velocityAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual ~SolveBody32Model()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agx::Vec3f > * angularVelocityAttribute
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::SpinMutex > * solveMutexAttribute
static agxData::ScalarAttributeT< agx::Vec3f > * oldAngularVelocityAttribute
virtual void construct(agxData::EntityPtr instance) override
static SolveBody32Ptr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
Pointer to a entity instance of type Physics.SolveBody32.
AGXPHYSICS_EXPORT agx::SpinMutex & solveMutex()
AGXPHYSICS_EXPORT agx::Real32 & invMass()
AGXPHYSICS_EXPORT agx::SpinMutex const & solveMutex() const
SolveBody32Data * getData()
AGXPHYSICS_EXPORT agx::Real32 const & invInertia() const
AGXPHYSICS_EXPORT agx::Vec3f & angularVelocity()
const SolveBody32Data * getData() const
AGXPHYSICS_EXPORT const SolveBody32Semantics * operator->() const
SolveBody32Instance InstanceType
AGXPHYSICS_EXPORT agx::Vec3f & velocity()
SolveBody32Model ModelType
AGXPHYSICS_EXPORT agx::Vec3f & oldAngularVelocity()
AGXPHYSICS_EXPORT const SolveBody32Instance instance() const
AGXPHYSICS_EXPORT agx::Vec3f const & velocity() const
AGXPHYSICS_EXPORT agx::Real32 const & invMass() const
AGXPHYSICS_EXPORT SolveBody32Ptr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT SolveBody32Ptr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT SolveBody32Semantics * operator->()
AGXPHYSICS_EXPORT SolveBody32Instance instance()
AGXPHYSICS_EXPORT agx::Vec3f const & angularVelocity() const
AGXPHYSICS_EXPORT SolveBody32Ptr()
AGXPHYSICS_EXPORT agx::Vec3f const & oldAngularVelocity() const
AGXPHYSICS_EXPORT agx::Real32 & invInertia()
AGXPHYSICS_EXPORT agx::Vec3f & oldVelocity()
AGXPHYSICS_EXPORT agx::Vec3f const & oldVelocity() const
AGXPHYSICS_EXPORT SolveBody32Ptr(const agxData::EntityPtr &ptr)
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())