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; }
153 friend class InteractionGroupPtr;
154 friend class InteractionGroupInstance;
155 InteractionGroupSemantics();
183 InteractionGroupData* getData();
184 const InteractionGroupData* getData()
const;
199 #ifdef AGX_GENERATED_TOLUA_WRAPPER
201 inline agx::Vec4f const& getColor()
const {
return (*this)->getColor(); }
205 inline void setColor(
agx::Vec4f const& value) { (*this)->setColor(value); }
213 class
AGXPHYSICS_EXPORT InteractionGroupInstance : public agxData::EntityInstance
216 InteractionGroupInstance();
217 InteractionGroupInstance(InteractionGroupData* data,
agx::Index index);
222 InteractionGroupData* getData();
223 const InteractionGroupData* getData()
const;
250 inline InteractionGroupInstance agx::Physics::InteractionGroupData::operator[] (
size_t index) {
return InteractionGroupInstance(
this, (
agx::Index)index); }
257 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
264 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
272 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
281 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
288 AGX_FORCE_INLINE InteractionGroupSemantics* InteractionGroupPtr::operator->() {
return (InteractionGroupSemantics* )
this; }
289 AGX_FORCE_INLINE const InteractionGroupSemantics* InteractionGroupPtr::operator->()
const {
return (
const InteractionGroupSemantics* )
this; }
297 AGX_FORCE_INLINE agx::Vec4f const& InteractionGroupPtr::color()
const { verifyIndex();
return getData()->color[calculateIndex()]; }
301 AGX_FORCE_INLINE InteractionGroupInstance::InteractionGroupInstance(InteractionGroupData* data,
agx::Index index) : agxData::EntityInstance(data, index) {}
306 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
313 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
325 AGX_FORCE_INLINE agx::Vec4f const& InteractionGroupInstance::color()
const { verifyIndex();
return getData()->color[getIndex()]; }
335 AGX_TYPE_BINDING(agx::Physics::InteractionGroupInstance, "Physics.InteractionGroupInstance")
338 # pragma warning(pop)
341 #undef AGX_ENTITY_WRAPPER
342 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
A class holding 4 dimensional vectors and providing basic arithmetic.
agxData::EntityData * getData()
static InteractionGroupModel * instance()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#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)
agx::String fullPath() 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
AGXPHYSICS_EXPORT InteractionGroupPtr()
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