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;
86 virtual void shutdownCleanup()
override;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
98 virtual void initAttributeAccessors()
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);
155 friend class InteractionInstance;
156 InteractionSemantics();
184 InteractionData* getData();
185 const InteractionData* getData()
const;
205 InteractionInstance();
206 InteractionInstance(InteractionData* data,
agx::Index index);
211 InteractionData* getData();
212 const InteractionData* getData()
const;
216 agx::SolveModel*& solveModel();
218 agx::SolveModel*
const& solveModel()
const;
239 inline InteractionInstance
agx::Physics::InteractionData::operator[] (
size_t index) {
return InteractionInstance(
this, (
agx::Index)index); }
246 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
253 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
295 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
302 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
310 AGX_FORCE_INLINE agx::SolveModel*& InteractionInstance::solveModel() { verifyIndex();
return getData()->solveModel[getIndex()]; }
311 AGX_FORCE_INLINE agx::SolveModel*
const& InteractionInstance::solveModel()
const { verifyIndex();
return getData()->solveModel[getIndex()]; }
324 AGX_TYPE_BINDING(agx::Physics::InteractionInstance,
"Physics.InteractionInstance")
327 # pragma warning(pop) 330 #undef AGX_ENTITY_WRAPPER 331 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
InteractionModel ModelType
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Pointer to a entity instance of type Physics.Interaction.
AGXPHYSICS_EXPORT InteractionPtr & operator=(const agxData::EntityPtr &ptr)
#define AGXPHYSICS_EXPORT
static agxData::PointerAttributeT< agx::SolveModel * > * solveModelAttribute
InteractionData * getData()
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
Type-specific Array used for fast access into the data held by a Buffer.
Abstract description of the data attributes for the Physics.Interaction entity.
AGXPHYSICS_EXPORT agx::SolveModel *& solveModel()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static agxData::ScalarAttributeT< agx::Physics::GraphNodePtr > * graphNodeAttribute
Pointer to a entity instance of type Physics.GraphNode.
Contains classes for low level data storage for AGX.
InteractionInstance InstanceType
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT InteractionSemantics * operator->()
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT InteractionInstance instance()
static InteractionModel * instance()
AGXPHYSICS_EXPORT InteractionPtr()
AGXPHYSICS_EXPORT agx::Physics::GraphNodePtr & graphNode()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()