21#ifndef GENERATED_AGX_PHYSICS_SOLVEGROUP_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_SOLVEGROUP_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
30# pragma warning( disable : 4505 )
32# pragma warning( disable : 4251 )
34# pragma warning( disable : 4355 )
36# pragma warning( disable: 4714 )
49namespace agx {
class SolveModel; }
51namespace agx {
namespace Physics {
class SolveIslandPtr; }}
58 class SolveGroupModel;
61 class SolveGroupInstance;
62 class SolveGroupSemantics;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
106 #ifndef AGX_PHYSICS_SOLVEGROUP_DATA_SET_OVERRIDE
107 #define AGX_PHYSICS_SOLVEGROUP_DATA_SET
108 class AGXPHYSICS_EXPORT SolveGroupData :
public agx::Physics::InteractionGroupData
111 SolveGroupInstance operator[] (
size_t index);
120 typedef agx::SolveModel* solveModelType;
127 virtual ~SolveGroupData() {}
128 virtual void setNumElements(
agx::Index numElements)
override;
131 SolveGroupData& operator= (
const SolveGroupData&) {
return *
this; }
145 agx::SolveModel*
const& getSolveModel()
const;
151 void setSolveModel(agx::SolveModel*
const& value);
155 friend class SolveGroupPtr;
156 friend class SolveGroupInstance;
157 SolveGroupSemantics();
206 SolveGroupInstance();
207 SolveGroupInstance(SolveGroupData* data,
agx::Index index);
212 SolveGroupData* getData();
213 const SolveGroupData* getData()
const;
222 agx::SolveModel*& solveModel();
224 agx::SolveModel*
const& solveModel()
const;
240 inline SolveGroupInstance
agx::Physics::SolveGroupData::operator[] (
size_t index) {
return SolveGroupInstance(
this, (
agx::Index)index); }
247 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
254 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
262 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
263 EntityPtr::getModel()->fullPath().c_str(), SolveGroupModel::instance()->fullPath().c_str());
271 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
272 EntityPtr::getModel()->fullPath().c_str(), SolveGroupModel::instance()->fullPath().c_str());
278 AGX_FORCE_INLINE SolveGroupSemantics* SolveGroupPtr::operator->() {
return (SolveGroupSemantics* )
this; }
279 AGX_FORCE_INLINE const SolveGroupSemantics* SolveGroupPtr::operator->()
const {
return (
const SolveGroupSemantics* )
this; }
286 AGX_FORCE_INLINE agx::SolveModel*& SolveGroupPtr::solveModel() { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
287 AGX_FORCE_INLINE agx::SolveModel*
const& SolveGroupPtr::solveModel()
const { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
291 AGX_FORCE_INLINE SolveGroupInstance::SolveGroupInstance(SolveGroupData* data,
agx::Index index) :
agx::Physics::InteractionGroupInstance(data, index) {}
296 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
303 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
314 AGX_FORCE_INLINE agx::SolveModel*& SolveGroupInstance::solveModel() { verifyIndex();
return getData()->solveModel[getIndex()]; }
315 AGX_FORCE_INLINE agx::SolveModel*
const& SolveGroupInstance::solveModel()
const { verifyIndex();
return getData()->solveModel[getIndex()]; }
331#undef AGX_ENTITY_WRAPPER
332#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()
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
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.InteractionGroup entity.
Pointer to a entity instance of type Physics.InteractionGroup.
Abstract description of the data attributes for the Physics.SolveGroup entity.
void construct(agx::Physics::SolveGroupPtr solveGroup)
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::Physics::SolveIslandPtr > * islandAttribute
static agxData::EntityStorage * defaultStorage()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::PointerAttributeT< agx::SolveModel * > * solveModelAttribute
static SolveGroupModel * instance()
static SolveGroupPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
SolveGroupModel(const agx::String &name="SolveGroup")
virtual void initAttributeAccessors() override
virtual ~SolveGroupModel()
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
Pointer to a entity instance of type Physics.SolveGroup.
SolveGroupInstance InstanceType
AGXPHYSICS_EXPORT agx::Physics::SolveIslandPtr & island()
const SolveGroupData * getData() const
SolveGroupModel ModelType
AGXPHYSICS_EXPORT SolveGroupPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT const SolveGroupInstance instance() const
AGXPHYSICS_EXPORT agx::SolveModel *& solveModel()
AGXPHYSICS_EXPORT const SolveGroupSemantics * operator->() const
AGXPHYSICS_EXPORT SolveGroupPtr()
AGXPHYSICS_EXPORT SolveGroupPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT SolveGroupSemantics * operator->()
AGXPHYSICS_EXPORT agx::Physics::SolveIslandPtr const & island() const
AGXPHYSICS_EXPORT SolveGroupPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT SolveGroupInstance instance()
AGXPHYSICS_EXPORT agx::SolveModel *const & solveModel() const
SolveGroupData * getData()
Pointer to a entity instance of type Physics.SolveIsland.
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.