21 #ifndef GENERATED_AGX_PHYSICS_SURFACEMATERIAL_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_SURFACEMATERIAL_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 ) 57 class SurfaceMaterialModel;
58 class SurfaceMaterialData;
59 class SurfaceMaterialPtr;
60 class SurfaceMaterialInstance;
61 class SurfaceMaterialSemantics;
86 virtual void shutdownCleanup()
override;
101 virtual void configure(agx::TiXmlElement* eEntity)
override;
102 virtual void initAttributeAccessors()
override;
109 #ifndef AGX_PHYSICS_SURFACEMATERIAL_DATA_SET_OVERRIDE 110 #define AGX_PHYSICS_SURFACEMATERIAL_DATA_SET 114 SurfaceMaterialInstance operator[] (
size_t index);
135 SurfaceMaterialData();
138 virtual ~SurfaceMaterialData() {}
139 virtual void setNumElements(
agx::Index numElements)
override;
142 SurfaceMaterialData& operator= (
const SurfaceMaterialData&) {
return *
this; }
157 agx::Real const& getAdhesiveOverlap()
const;
159 agx::Bool const& getFrictionEnabled()
const;
165 void setRoughness(
agx::Real const& value);
166 void setAdhesion(
agx::Real const& value);
167 void setAdhesiveOverlap(
agx::Real const& value);
168 void setViscosity(
agx::Real const& value);
169 void setFrictionEnabled(
agx::Bool const& value);
175 friend class SurfaceMaterialInstance;
176 SurfaceMaterialSemantics();
204 SurfaceMaterialData* getData();
205 const SurfaceMaterialData* getData()
const;
248 SurfaceMaterialInstance();
249 SurfaceMaterialInstance(SurfaceMaterialData* data,
agx::Index index);
254 SurfaceMaterialData* getData();
255 const SurfaceMaterialData* getData()
const;
271 agx::Real const& adhesiveOverlap()
const;
281 agx::Bool const& frictionEnabled()
const;
302 inline SurfaceMaterialInstance
agx::Physics::SurfaceMaterialData::operator[] (
size_t index) {
return SurfaceMaterialInstance(
this, (
agx::Index)index); }
309 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
316 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
324 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
333 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
365 AGX_FORCE_INLINE SurfaceMaterialInstance::SurfaceMaterialInstance(SurfaceMaterialData* data,
agx::Index index) : agx::ReferencedInstance(data, index) {}
370 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
377 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
385 AGX_FORCE_INLINE agx::Real& SurfaceMaterialInstance::roughness() { verifyIndex();
return getData()->roughness[getIndex()]; }
386 AGX_FORCE_INLINE agx::Real const& SurfaceMaterialInstance::roughness()
const { verifyIndex();
return getData()->roughness[getIndex()]; }
388 AGX_FORCE_INLINE agx::Real& SurfaceMaterialInstance::adhesion() { verifyIndex();
return getData()->adhesion[getIndex()]; }
389 AGX_FORCE_INLINE agx::Real const& SurfaceMaterialInstance::adhesion()
const { verifyIndex();
return getData()->adhesion[getIndex()]; }
391 AGX_FORCE_INLINE agx::Real& SurfaceMaterialInstance::adhesiveOverlap() { verifyIndex();
return getData()->adhesiveOverlap[getIndex()]; }
392 AGX_FORCE_INLINE agx::Real const& SurfaceMaterialInstance::adhesiveOverlap()
const { verifyIndex();
return getData()->adhesiveOverlap[getIndex()]; }
394 AGX_FORCE_INLINE agx::Real& SurfaceMaterialInstance::viscosity() { verifyIndex();
return getData()->viscosity[getIndex()]; }
395 AGX_FORCE_INLINE agx::Real const& SurfaceMaterialInstance::viscosity()
const { verifyIndex();
return getData()->viscosity[getIndex()]; }
397 AGX_FORCE_INLINE agx::Bool& SurfaceMaterialInstance::frictionEnabled() { verifyIndex();
return getData()->frictionEnabled[getIndex()]; }
398 AGX_FORCE_INLINE agx::Bool const& SurfaceMaterialInstance::frictionEnabled()
const { verifyIndex();
return getData()->frictionEnabled[getIndex()]; }
401 AGX_FORCE_INLINE agx::Bool const& SurfaceMaterialInstance::dirty()
const { verifyIndex();
return getData()->dirty[getIndex()]; }
411 AGX_TYPE_BINDING(agx::Physics::SurfaceMaterialInstance,
"Physics.SurfaceMaterialInstance")
414 # pragma warning(pop) 417 #undef AGX_ENTITY_WRAPPER 418 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::Real & viscosity()
SurfaceMaterialInstance InstanceType
agxData::EntityData * getData()
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agx::Real & adhesion()
Data storage for a collection of entity instances of a specified EntityModel.
static SurfaceMaterialModel * instance()
AGXPHYSICS_EXPORT SurfaceMaterialPtr & operator=(const agxData::EntityPtr &ptr)
#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())
AGXPHYSICS_EXPORT SurfaceMaterialInstance instance()
#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)
SurfaceMaterialData DataType
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::Real & roughness()
static agxData::ScalarAttributeT< agx::Bool > * dirtyAttribute
static agxData::ScalarAttributeT< agx::Real > * adhesionAttribute
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT agx::Real & adhesiveOverlap()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
SurfaceMaterialData * getData()
static agxData::ScalarAttributeT< agx::Real > * adhesiveOverlapAttribute
SurfaceMaterialModel ModelType
Abstract description of the data attributes for the Physics.SurfaceMaterial entity.
Abstract description of the data attributes for the Referenced entity.
static agxData::ScalarAttributeT< agx::Real > * roughnessAttribute
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityRef< SurfaceMaterialPtr > SurfaceMaterialRef
Pointer to a entity instance of type Referenced.
static agxData::ScalarAttributeT< agx::Bool > * frictionEnabledAttribute
static agxData::ScalarAttributeT< agx::Real > * viscosityAttribute
AGXPHYSICS_EXPORT SurfaceMaterialSemantics * operator->()
AGXPHYSICS_EXPORT agx::Bool & frictionEnabled()
AGXPHYSICS_EXPORT SurfaceMaterialPtr()
Pointer to a entity instance of type Physics.SurfaceMaterial.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::Bool & dirty()