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;
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();
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); }
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()]; }
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
#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...
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.
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()
virtual void construct(agxData::EntityPtr instance) override
void construct(agx::Physics::InteractionGroupPtr interactionGroup)
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
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.
static agxData::EntityStorage * defaultStorage()
Pointer to a entity instance of type Physics.InteractionGroup.
AGXPHYSICS_EXPORT InteractionGroupPtr()
AGXPHYSICS_EXPORT agx::Vec4f & color()
InteractionGroupInstance InstanceType
AGXPHYSICS_EXPORT InteractionGroupSemantics * operator->()
AGXPHYSICS_EXPORT InteractionGroupPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT const InteractionGroupSemantics * operator->() const
InteractionGroupModel ModelType
AGXPHYSICS_EXPORT InteractionGroupInstance instance()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & nodes()
InteractionGroupData * getData()
InteractionGroupData DataType
const InteractionGroupData * getData() const
AGXPHYSICS_EXPORT InteractionGroupPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Vec4f const & color() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & nodes() const
AGXPHYSICS_EXPORT InteractionGroupPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT const InteractionGroupInstance instance() 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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())