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;
87 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
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);
156 friend class SolveGroupInstance;
157 SolveGroupSemantics();
185 SolveGroupData* getData();
186 const SolveGroupData* getData()
const;
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\'",
271 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
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()]; }
325 AGX_TYPE_BINDING(agx::Physics::SolveGroupInstance,
"Physics.SolveGroupInstance")
328 # pragma warning(pop) 331 #undef AGX_ENTITY_WRAPPER 332 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
SolveGroupModel ModelType
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#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())
static agxData::PointerAttributeT< agx::SolveModel * > * solveModelAttribute
AGXPHYSICS_EXPORT SolveGroupInstance instance()
#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
Abstract description of the data attributes for the Physics.InteractionGroup entity.
AGXPHYSICS_EXPORT SolveGroupPtr()
Type-specific Array used for fast access into the data held by a Buffer.
Pointer to a entity instance of type Physics.SolveIsland.
Pointer to a entity instance of type Physics.SolveGroup.
AGXPHYSICS_EXPORT agx::Physics::SolveIslandPtr & island()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Abstract description of the data attributes for the Physics.SolveGroup entity.
static SolveGroupModel * instance()
Contains classes for low level data storage for AGX.
SolveGroupInstance InstanceType
static agxData::ScalarAttributeT< agx::Physics::SolveIslandPtr > * islandAttribute
Pointer to a entity instance of type Physics.InteractionGroup.
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::SolveModel *& solveModel()
SolveGroupData * getData()
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT SolveGroupSemantics * operator->()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT SolveGroupPtr & operator=(const agxData::EntityPtr &ptr)