21 #ifndef GENERATED_AGX_PHYSICS_STRONGINTERACTION_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_STRONGINTERACTION_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 ) 49 namespace agx {
class StrongInteraction; }
57 class StrongInteractionModel;
58 class StrongInteractionData;
59 class StrongInteractionPtr;
60 class StrongInteractionInstance;
61 class StrongInteractionSemantics;
86 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
override;
106 #ifndef AGX_PHYSICS_STRONGINTERACTION_DATA_SET_OVERRIDE 107 #define AGX_PHYSICS_STRONGINTERACTION_DATA_SET 108 class AGXPHYSICS_EXPORT StrongInteractionData :
public agx::Physics::InteractionData
111 StrongInteractionInstance operator[] (
size_t index);
126 StrongInteractionData();
129 virtual ~StrongInteractionData() {}
130 virtual void setNumElements(
agx::Index numElements)
override;
133 StrongInteractionData& operator= (
const StrongInteractionData&) {
return *
this; }
160 friend class StrongInteractionInstance;
161 StrongInteractionSemantics();
189 StrongInteractionData* getData();
190 const StrongInteractionData* getData()
const;
215 StrongInteractionInstance();
216 StrongInteractionInstance(StrongInteractionData* data,
agx::Index index);
221 StrongInteractionData* getData();
222 const StrongInteractionData* getData()
const;
254 inline StrongInteractionInstance
agx::Physics::StrongInteractionData::operator[] (
size_t index) {
return StrongInteractionInstance(
this, (
agx::Index)index); }
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
268 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
276 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
308 AGX_FORCE_INLINE StrongInteractionInstance::StrongInteractionInstance(StrongInteractionData* data,
agx::Index index) : agx::Physics::InteractionInstance(data, index) {}
313 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
332 AGX_FORCE_INLINE agx::UInt const& StrongInteractionInstance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
335 AGX_FORCE_INLINE agx::UInt const& StrongInteractionInstance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
338 AGX_FORCE_INLINE StrongInteractionSemantics::StrongInteractionSemantics() {}
345 AGX_TYPE_BINDING(agx::Physics::StrongInteractionInstance,
"Physics.StrongInteractionInstance")
348 # pragma warning(pop) 351 #undef AGX_ENTITY_WRAPPER 352 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT StrongInteractionPtr & operator=(const agxData::EntityPtr &ptr)
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
Base class for a strong interaction concept where there interaction is defined in the mass matrix par...
static agxData::ScalarAttributeT< agx::UInt > * body1Attribute
AGXPHYSICS_EXPORT agx::StrongInteraction *& model()
#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.
#define AGXPHYSICS_EXPORT
AGXPHYSICS_EXPORT agx::UInt & body1()
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...
StrongInteractionInstance InstanceType
static agxData::ScalarAttributeT< agx::UInt > * body2Attribute
AGXPHYSICS_EXPORT agx::UInt & body2()
#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.
StrongInteractionData * getData()
StrongInteractionModel ModelType
Vector containing 'raw' data.
Pointer to a entity instance of type Physics.StrongInteraction.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static agxData::PointerAttributeT< agx::StrongInteraction * > * modelAttribute
AGXPHYSICS_EXPORT StrongInteractionPtr()
Contains classes for low level data storage for AGX.
StrongInteractionData DataType
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT StrongInteractionInstance instance()
Abstract description of the data attributes for the Physics.StrongInteraction entity.
static StrongInteractionModel * instance()
StrongInteractionPtr PtrT
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT StrongInteractionSemantics * operator->()