21 #ifndef GENERATED_AGX_PHYSICS_INTERACTION_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_INTERACTION_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 )
48 namespace agx {
class SolveModel; }
50 namespace agx {
namespace Physics {
class GraphNodePtr; }}
57 class InteractionModel;
58 class InteractionData;
60 class InteractionInstance;
61 class InteractionSemantics;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
105 #ifndef AGX_PHYSICS_INTERACTION_DATA_SET_OVERRIDE
106 #define AGX_PHYSICS_INTERACTION_DATA_SET
110 InteractionInstance operator[] (
size_t index);
118 typedef agx::SolveModel* solveModelType;
126 virtual ~InteractionData() {}
127 virtual void setNumElements(
agx::Index numElements)
override;
130 InteractionData& operator= (
const InteractionData&) {
return *
this; }
143 agx::SolveModel*
const& getSolveModel()
const;
149 void setSolveModel(agx::SolveModel*
const& value);
154 friend class InteractionPtr;
155 friend class InteractionInstance;
156 InteractionSemantics();
200 #ifdef AGX_GENERATED_TOLUA_WRAPPER
201 inline agx::SolveModel*
const& getSolveModel()
const {
return (*this)->getSolveModel(); }
205 inline void setSolveModel(agx::SolveModel*
const& value) { (*this)->setSolveModel(value); }
217 InteractionInstance();
218 InteractionInstance(InteractionData* data,
agx::Index index);
223 InteractionData* getData();
224 const InteractionData* getData()
const;
228 agx::SolveModel*& solveModel();
230 agx::SolveModel*
const& solveModel()
const;
251 inline InteractionInstance
agx::Physics::InteractionData::operator[] (
size_t index) {
return InteractionInstance(
this, (
agx::Index)index); }
258 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
265 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
273 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
282 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
289 AGX_FORCE_INLINE InteractionSemantics* InteractionPtr::operator->() {
return (InteractionSemantics* )
this; }
290 AGX_FORCE_INLINE const InteractionSemantics* InteractionPtr::operator->()
const {
return (
const InteractionSemantics* )
this; }
294 AGX_FORCE_INLINE agx::SolveModel*& InteractionPtr::solveModel() { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
295 AGX_FORCE_INLINE agx::SolveModel*
const& InteractionPtr::solveModel()
const { verifyIndex();
return getData()->solveModel[calculateIndex()]; }
307 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
314 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
322 AGX_FORCE_INLINE agx::SolveModel*& InteractionInstance::solveModel() { verifyIndex();
return getData()->solveModel[getIndex()]; }
323 AGX_FORCE_INLINE agx::SolveModel*
const& InteractionInstance::solveModel()
const { verifyIndex();
return getData()->solveModel[getIndex()]; }
339 # pragma warning(pop)
342 #undef AGX_ENTITY_WRAPPER
343 #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
Pointer to a entity instance of type Physics.GraphNode.
Abstract description of the data attributes for the Physics.Interaction entity.
virtual void initAttributeAccessors() override
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.
void construct(agx::Physics::InteractionPtr interaction)
static InteractionModel * instance()
static agxData::PointerAttributeT< agx::SolveModel * > * solveModelAttribute
static InteractionPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Physics::GraphNodePtr > * graphNodeAttribute
InteractionModel(const agx::String &name="Interaction")
virtual void configure(agx::TiXmlElement *eEntity) override
virtual ~InteractionModel()
virtual void construct(agxData::EntityPtr instance) override
static agxData::EntityStorage * defaultStorage()
Pointer to a entity instance of type Physics.Interaction.
AGXPHYSICS_EXPORT InteractionPtr()
AGXPHYSICS_EXPORT agx::SolveModel *& solveModel()
AGXPHYSICS_EXPORT InteractionSemantics * operator->()
AGXPHYSICS_EXPORT InteractionPtr(const agxData::EntityInstance &instance)
InteractionData * getData()
InteractionInstance InstanceType
AGXPHYSICS_EXPORT agx::Physics::GraphNodePtr const & graphNode() const
AGXPHYSICS_EXPORT InteractionPtr(const agxData::EntityPtr &ptr)
InteractionModel ModelType
AGXPHYSICS_EXPORT const InteractionInstance instance() const
AGXPHYSICS_EXPORT InteractionInstance instance()
const InteractionData * getData() const
AGXPHYSICS_EXPORT InteractionPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT const InteractionSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Physics::GraphNodePtr & graphNode()
AGXPHYSICS_EXPORT agx::SolveModel *const & solveModel() const
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())