21 #ifndef GENERATED_AGX_PHYSICS_SOLVEMATERIAL32_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_SOLVEMATERIAL32_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 SolveMaterial32Model;
57 class SolveMaterial32Data;
58 class SolveMaterial32Ptr;
59 class SolveMaterial32Instance;
60 class SolveMaterial32Semantics;
85 virtual void shutdownCleanup()
override;
96 virtual void configure(agx::TiXmlElement* eEntity)
override;
97 virtual void initAttributeAccessors()
override;
104 #ifndef AGX_PHYSICS_SOLVEMATERIAL32_DATA_SET_OVERRIDE 105 #define AGX_PHYSICS_SOLVEMATERIAL32_DATA_SET 109 SolveMaterial32Instance operator[] (
size_t index);
122 SolveMaterial32Data();
125 virtual ~SolveMaterial32Data() {}
126 virtual void setNumElements(
agx::Index numElements)
override;
129 SolveMaterial32Data& operator= (
const SolveMaterial32Data&) {
return *
this; }
154 friend class SolveMaterial32Instance;
155 SolveMaterial32Semantics();
183 SolveMaterial32Data* getData();
184 const SolveMaterial32Data* getData()
const;
204 SolveMaterial32Instance();
205 SolveMaterial32Instance(SolveMaterial32Data* data,
agx::Index index);
210 SolveMaterial32Data* getData();
211 const SolveMaterial32Data* getData()
const;
238 inline SolveMaterial32Instance
agx::Physics::SolveMaterial32Data::operator[] (
size_t index) {
return SolveMaterial32Instance(
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::Real32& SolveMaterial32Instance::adhesiveImpulse() { verifyIndex();
return getData()->adhesiveImpulse[getIndex()]; }
310 AGX_FORCE_INLINE agx::Real32 const& SolveMaterial32Instance::adhesiveImpulse()
const { verifyIndex();
return getData()->adhesiveImpulse[getIndex()]; }
313 AGX_FORCE_INLINE agx::Vec2f const& SolveMaterial32Instance::friction()
const { verifyIndex();
return getData()->friction[getIndex()]; }
323 AGX_TYPE_BINDING(agx::Physics::SolveMaterial32Instance,
"Physics.SolveMaterial32Instance")
326 # pragma warning(pop) 329 #undef AGX_ENTITY_WRAPPER 330 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT SolveMaterial32Ptr()
agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agx::Real32 & adhesiveImpulse()
static SolveMaterial32Model * instance()
SolveMaterial32Model ModelType
Data storage for a collection of entity instances of a specified EntityModel.
SolveMaterial32Data DataType
#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())
#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...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
SolveMaterial32Instance InstanceType
AGXPHYSICS_EXPORT SolveMaterial32Instance instance()
AGXPHYSICS_EXPORT agx::Vec2f & friction()
Type-specific Array used for fast access into the data held by a Buffer.
Abstract description of the data attributes for the Physics.SolveMaterial32 entity.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
SolveMaterial32Data * getData()
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT SolveMaterial32Ptr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT SolveMaterial32Semantics * operator->()
static agxData::ScalarAttributeT< agx::Real32 > * adhesiveImpulseAttribute
Contains classes for low level data storage for AGX.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Pointer to a entity instance of type Physics.SolveMaterial32.
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Vec2f > * frictionAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()