21#ifndef GENERATED_AGX_PHYSICS_INTERACTIONGROUP_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_INTERACTIONGROUP_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 )
56 class InteractionGroupModel;
57 class InteractionGroupData;
58 class InteractionGroupPtr;
59 class InteractionGroupInstance;
60 class InteractionGroupSemantics;
96 virtual void configure(agx::TiXmlElement* eEntity)
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; }
153 friend class InteractionGroupPtr;
154 friend class InteractionGroupInstance;
155 InteractionGroupSemantics();
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\'",
261 EntityPtr::getModel()->fullPath().c_str(), InteractionGroupModel::instance()->fullPath().c_str());
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
270 EntityPtr::getModel()->fullPath().c_str(), InteractionGroupModel::instance()->fullPath().c_str());
276 AGX_FORCE_INLINE InteractionGroupSemantics* InteractionGroupPtr::operator->() {
return (InteractionGroupSemantics* )
this; }
277 AGX_FORCE_INLINE const InteractionGroupSemantics* InteractionGroupPtr::operator->()
const {
return (
const InteractionGroupSemantics* )
this; }
285 AGX_FORCE_INLINE agx::Vec4f const& InteractionGroupPtr::color()
const { verifyIndex();
return getData()->color[calculateIndex()]; }
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()]; }
323AGX_TYPE_BINDING(
agx::Physics::InteractionGroupInstance, "Physics.InteractionGroupInstance")
329#undef AGX_ENTITY_WRAPPER
330#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()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
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.
InteractionGroupModel(const agx::String &name="InteractionGroup")
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::Vec4f > * colorAttribute
virtual void configure(agx::TiXmlElement *eEntity) override
static agxData::ArrayAttributeT< agx::UInt32 > * nodesAttribute
static InteractionGroupModel * instance()
virtual ~InteractionGroupModel()
static agxData::EntityStorage * defaultStorage()
virtual void construct(agxData::EntityPtr instance) override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
void construct(agx::Physics::InteractionGroupPtr interactionGroup)
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static InteractionGroupPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
Pointer to a entity instance of type Physics.InteractionGroup.
AGXPHYSICS_EXPORT InteractionGroupPtr()
AGXPHYSICS_EXPORT InteractionGroupSemantics * operator->()
InteractionGroupInstance InstanceType
AGXPHYSICS_EXPORT InteractionGroupPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT const InteractionGroupSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Vec4f & color()
InteractionGroupModel ModelType
AGXPHYSICS_EXPORT agx::Vec4f const & color() const
const InteractionGroupData * getData() const
AGXPHYSICS_EXPORT InteractionGroupInstance instance()
InteractionGroupData DataType
InteractionGroupData * getData()
AGXPHYSICS_EXPORT InteractionGroupPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & nodes()
AGXPHYSICS_EXPORT InteractionGroupPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT const InteractionGroupInstance instance() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & nodes() const
A class holding 4 dimensional vectors and providing basic arithmetic.
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.