21 #ifndef GENERATED_AGX_PHYSICS_INTERACTIONGROUP_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_INTERACTIONGROUP_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 ) 56 class InteractionGroupModel;
57 class InteractionGroupData;
58 class InteractionGroupPtr;
59 class InteractionGroupInstance;
60 class InteractionGroupSemantics;
85 virtual void shutdownCleanup()
override;
96 virtual void configure(agx::TiXmlElement* eEntity)
override;
97 virtual void initAttributeAccessors()
override;
104 #ifndef AGX_PHYSICS_INTERACTIONGROUP_DATA_SET_OVERRIDE 105 #define AGX_PHYSICS_INTERACTIONGROUP_DATA_SET 109 InteractionGroupInstance operator[] (
size_t index);
122 InteractionGroupData();
125 virtual ~InteractionGroupData() {}
126 virtual void setNumElements(
agx::Index numElements)
override;
129 InteractionGroupData& operator= (
const InteractionGroupData&) {
return *
this; }
154 friend class InteractionGroupInstance;
155 InteractionGroupSemantics();
183 InteractionGroupData* getData();
184 const InteractionGroupData* getData()
const;
204 InteractionGroupInstance();
205 InteractionGroupInstance(InteractionGroupData* data,
agx::Index index);
210 InteractionGroupData* getData();
211 const InteractionGroupData* getData()
const;
238 inline InteractionGroupInstance
agx::Physics::InteractionGroupData::operator[] (
size_t index) {
return InteractionGroupInstance(
this, (
agx::Index)index); }
245 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
252 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
260 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
301 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
313 AGX_FORCE_INLINE agx::Vec4f const& InteractionGroupInstance::color()
const { verifyIndex();
return getData()->color[getIndex()]; }
323 AGX_TYPE_BINDING(agx::Physics::InteractionGroupInstance,
"Physics.InteractionGroupInstance")
326 # pragma warning(pop) 329 #undef AGX_ENTITY_WRAPPER 330 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT InteractionGroupInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT agx::Vec4f & color()
#define agxAssertN(expr, format,...)
A class holding 4 dimensional vectors and providing basic arithmetic.
agxData::EntityData * getData()
static InteractionGroupModel * instance()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#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.
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
static agxData::ScalarAttributeT< agx::Vec4f > * colorAttribute
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & nodes()
AGXPHYSICS_EXPORT InteractionGroupPtr()
InteractionGroupData * getData()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT InteractionGroupPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT InteractionGroupSemantics * operator->()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
static agxData::ArrayAttributeT< agx::UInt32 > * nodesAttribute
Pointer to a entity instance of type Physics.InteractionGroup.
bool isInstanceOf(agxData::EntityModel *model) const
InteractionGroupInstance InstanceType
InteractionGroupData DataType
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
InteractionGroupModel ModelType