21 #ifndef GENERATED_AGX_PHYSICS_SOLVEGROUP_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_SOLVEGROUP_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 )
49 namespace agx {
class SolveModel; }
51 namespace 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();
201 #ifdef AGX_GENERATED_TOLUA_WRAPPER
203 inline agx::SolveModel*
const& getSolveModel()
const {
return (*this)->getSolveModel(); }
207 inline void setSolveModel(agx::SolveModel*
const& value) { (*this)->setSolveModel(value); }
218 SolveGroupInstance();
219 SolveGroupInstance(SolveGroupData* data,
agx::Index index);
224 SolveGroupData* getData();
225 const SolveGroupData* getData()
const;
234 agx::SolveModel*& solveModel();
236 agx::SolveModel*
const& solveModel()
const;
252 inline SolveGroupInstance
agx::Physics::SolveGroupData::operator[] (
size_t index) {
return SolveGroupInstance(
this, (
agx::Index)index); }
259 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
266 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
274 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
283 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
290 AGX_FORCE_INLINE SolveGroupSemantics* SolveGroupPtr::operator->() {
return (SolveGroupSemantics* )
this; }
291 AGX_FORCE_INLINE const SolveGroupSemantics* SolveGroupPtr::operator->()
const {
return (
const SolveGroupSemantics* )
this; }
298 AGX_FORCE_INLINE agx::SolveModel*& SolveGroupPtr::solveModel() { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
299 AGX_FORCE_INLINE agx::SolveModel*
const& SolveGroupPtr::solveModel()
const { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
303 AGX_FORCE_INLINE SolveGroupInstance::SolveGroupInstance(SolveGroupData* data,
agx::Index index) :
agx::Physics::InteractionGroupInstance(data, index) {}
308 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
315 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
326 AGX_FORCE_INLINE agx::SolveModel*& SolveGroupInstance::solveModel() { verifyIndex();
return getData()->solveModel[getIndex()]; }
327 AGX_FORCE_INLINE agx::SolveModel*
const& SolveGroupInstance::solveModel()
const { verifyIndex();
return getData()->solveModel[getIndex()]; }
340 # pragma warning(pop)
343 #undef AGX_ENTITY_WRAPPER
344 #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...
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.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)
static agxData::EntityStorage * defaultStorage()
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::Physics::SolveIslandPtr > * islandAttribute
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.
const SolveGroupData * getData() const
AGXPHYSICS_EXPORT agx::SolveModel *const & solveModel() const
SolveGroupInstance InstanceType
SolveGroupModel ModelType
AGXPHYSICS_EXPORT SolveGroupPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT const SolveGroupInstance instance() const
SolveGroupData * getData()
AGXPHYSICS_EXPORT agx::Physics::SolveIslandPtr & island()
AGXPHYSICS_EXPORT SolveGroupSemantics * operator->()
AGXPHYSICS_EXPORT SolveGroupPtr()
AGXPHYSICS_EXPORT SolveGroupPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT SolveGroupPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT const SolveGroupSemantics * operator->() const
AGXPHYSICS_EXPORT SolveGroupInstance instance()
AGXPHYSICS_EXPORT agx::Physics::SolveIslandPtr const & island() const
AGXPHYSICS_EXPORT agx::SolveModel *& solveModel()
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())