21 #ifndef GENERATED_AGX_PHYSICS_SOLVEMATERIAL_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_SOLVEMATERIAL_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 SolveMaterialModel;
57 class SolveMaterialData;
58 class SolveMaterialPtr;
59 class SolveMaterialInstance;
60 class SolveMaterialSemantics;
85 virtual void shutdownCleanup()
override;
96 virtual void configure(agx::TiXmlElement* eEntity)
override;
97 virtual void initAttributeAccessors()
override;
104 #ifndef AGX_PHYSICS_SOLVEMATERIAL_DATA_SET_OVERRIDE 105 #define AGX_PHYSICS_SOLVEMATERIAL_DATA_SET 109 SolveMaterialInstance operator[] (
size_t index);
125 virtual ~SolveMaterialData() {}
126 virtual void setNumElements(
agx::Index numElements)
override;
129 SolveMaterialData& operator= (
const SolveMaterialData&) {
return *
this; }
142 agx::Real const& getAdhesiveImpulse()
const;
148 void setAdhesiveImpulse(
agx::Real const& value);
149 void setFriction(
agx::Vec2 const& value);
154 friend class SolveMaterialInstance;
155 SolveMaterialSemantics();
183 SolveMaterialData* getData();
184 const SolveMaterialData* getData()
const;
204 SolveMaterialInstance();
205 SolveMaterialInstance(SolveMaterialData* data,
agx::Index index);
210 SolveMaterialData* getData();
211 const SolveMaterialData* getData()
const;
217 agx::Real const& adhesiveImpulse()
const;
238 inline SolveMaterialInstance
agx::Physics::SolveMaterialData::operator[] (
size_t index) {
return SolveMaterialInstance(
this, (
agx::Index)index); }
245 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
252 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
260 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
301 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
309 AGX_FORCE_INLINE agx::Real& SolveMaterialInstance::adhesiveImpulse() { verifyIndex();
return getData()->adhesiveImpulse[getIndex()]; }
310 AGX_FORCE_INLINE agx::Real const& SolveMaterialInstance::adhesiveImpulse()
const { verifyIndex();
return getData()->adhesiveImpulse[getIndex()]; }
313 AGX_FORCE_INLINE agx::Vec2 const& SolveMaterialInstance::friction()
const { verifyIndex();
return getData()->friction[getIndex()]; }
323 AGX_TYPE_BINDING(agx::Physics::SolveMaterialInstance,
"Physics.SolveMaterialInstance")
326 # pragma warning(pop) 329 #undef AGX_ENTITY_WRAPPER 330 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
Abstract description of the data attributes for the Physics.SolveMaterial entity. ...
agxData::EntityInstance instance()
SolveMaterialInstance InstanceType
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.SolveMaterial.
#define AGXPHYSICS_EXPORT
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...
static SolveMaterialModel * instance()
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::Vec2 & friction()
static agxData::ScalarAttributeT< agx::Real > * adhesiveImpulseAttribute
Type-specific Array used for fast access into the data held by a Buffer.
SolveMaterialData * getData()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT SolveMaterialInstance instance()
AGXPHYSICS_EXPORT SolveMaterialSemantics * operator->()
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agx::Vec2 > * frictionAttribute
AGXPHYSICS_EXPORT SolveMaterialPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & adhesiveImpulse()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
SolveMaterialModel ModelType
SolveMaterialData DataType
bool isInstanceOf(agxData::EntityModel *model) const
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT SolveMaterialPtr()