21 #ifndef GENERATED_AGX_PHYSICS_SOLVEPARTICLE_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_SOLVEPARTICLE_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 SolveParticleModel;
58 class SolveParticleData;
59 class SolveParticlePtr;
60 class SolveParticleInstance;
61 class SolveParticleSemantics;
86 virtual void shutdownCleanup()
override;
102 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 virtual void initAttributeAccessors()
override;
110 #ifndef AGX_PHYSICS_SOLVEPARTICLE_DATA_SET_OVERRIDE 111 #define AGX_PHYSICS_SOLVEPARTICLE_DATA_SET 115 SolveParticleInstance operator[] (
size_t index);
141 virtual ~SolveParticleData() {}
142 virtual void setNumElements(
agx::Index numElements)
override;
145 SolveParticleData& operator= (
const SolveParticleData&) {
return *
this; }
169 void setPosition(
agx::Vec3 const& value);
170 void setVelocity(
agx::Vec3 const& value);
180 friend class SolveParticleInstance;
181 SolveParticleSemantics();
209 SolveParticleData* getData();
210 const SolveParticleData* getData()
const;
255 SolveParticleInstance();
256 SolveParticleInstance(SolveParticleData* data,
agx::Index index);
261 SolveParticleData* getData();
262 const SolveParticleData* getData()
const;
314 inline SolveParticleInstance
agx::Physics::SolveParticleData::operator[] (
size_t index) {
return SolveParticleInstance(
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::Vec3 const& SolveParticleInstance::position()
const { verifyIndex();
return getData()->position[getIndex()]; }
404 AGX_FORCE_INLINE agx::Vec3 const& SolveParticleInstance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
407 AGX_FORCE_INLINE agx::Vec3 const& SolveParticleInstance::force()
const { verifyIndex();
return getData()->force[getIndex()]; }
410 AGX_FORCE_INLINE agx::Real const& SolveParticleInstance::density()
const { verifyIndex();
return getData()->density[getIndex()]; }
413 AGX_FORCE_INLINE agx::UInt32 const& SolveParticleInstance::sourceIndex()
const { verifyIndex();
return getData()->sourceIndex[getIndex()]; }
416 AGX_FORCE_INLINE agx::UInt32 const& SolveParticleInstance::solveIndex()
const { verifyIndex();
return getData()->solveIndex[getIndex()]; }
429 AGX_TYPE_BINDING(agx::Physics::SolveParticleInstance,
"Physics.SolveParticleInstance")
432 # pragma warning(pop) 435 #undef AGX_ENTITY_WRAPPER 436 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
AGXPHYSICS_EXPORT agx::Vec3 & force()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agx::Vec3 & position()
Data storage for a collection of entity instances of a specified EntityModel.
static agxData::ScalarAttributeT< agx::Vec3 > * forceAttribute
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & contactList()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
static agxData::ScalarAttributeT< agx::UInt32 > * solveIndexAttribute
SolveParticleInstance InstanceType
#define AGXPHYSICS_EXPORT
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
AGXPHYSICS_EXPORT agx::Real & density()
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT SolveParticleSemantics * operator->()
static agxData::ArrayAttributeT< agx::UInt32 > * contactListAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Pointer to a entity instance of type Physics.SolveParticle.
Contains classes for low level data storage for AGX.
Abstract description of the data attributes for the Physics.SolveParticle entity. ...
SolveParticleModel ModelType
static agxData::ScalarAttributeT< agx::Real > * densityAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT SolveParticleInstance instance()
SolveParticleData * getData()
static agxData::ScalarAttributeT< agx::Vec3 > * velocityAttribute
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT SolveParticlePtr & operator=(const agxData::EntityPtr &ptr)
SolveParticleData DataType
AGXPHYSICS_EXPORT agx::UInt32 & sourceIndex()
AGXPHYSICS_EXPORT agx::UInt32 & solveIndex()
AGXPHYSICS_EXPORT SolveParticlePtr()
static SolveParticleModel * instance()
static agxData::ScalarAttributeT< agx::Vec3 > * positionAttribute
AGXPHYSICS_EXPORT agx::Vec3 & velocity()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::UInt32 > * sourceIndexAttribute