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;
210 #ifdef AGX_GENERATED_TOLUA_WRAPPER 212 inline agx::UInt const& getBody1()
const {
return (*this)->getBody1(); }
213 inline agx::UInt const& getBody2()
const {
return (*this)->getBody2(); }
217 inline void setBody1(
agx::UInt const& value) { (*this)->setBody1(value); }
218 inline void setBody2(
agx::UInt const& value) { (*this)->setBody2(value); }
229 StrongInteractionInstance();
230 StrongInteractionInstance(StrongInteractionData* data,
agx::Index index);
235 StrongInteractionData* getData();
236 const StrongInteractionData* getData()
const;
268 inline StrongInteractionInstance
agx::Physics::StrongInteractionData::operator[] (
size_t index) {
return StrongInteractionInstance(
this, (
agx::Index)index); }
275 "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\'",
290 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
299 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
322 AGX_FORCE_INLINE StrongInteractionInstance::StrongInteractionInstance(StrongInteractionData* data,
agx::Index index) : agx::Physics::InteractionInstance(data, index) {}
327 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
334 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
346 AGX_FORCE_INLINE agx::UInt const& StrongInteractionInstance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
349 AGX_FORCE_INLINE agx::UInt const& StrongInteractionInstance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
352 AGX_FORCE_INLINE StrongInteractionSemantics::StrongInteractionSemantics() {}
359 AGX_TYPE_BINDING(agx::Physics::StrongInteractionInstance,
"Physics.StrongInteractionInstance")
362 # pragma warning(pop) 365 #undef AGX_ENTITY_WRAPPER 366 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
void setModel(agx::Model *model)
Set the object model (handled automatically).
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
Namespace agx 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->()