21 #ifndef GENERATED_AGX_PHYSICS_WIREMATERIAL_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_WIREMATERIAL_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 WireMaterialModel;
58 class WireMaterialData;
59 class WireMaterialPtr;
60 class WireMaterialInstance;
61 class WireMaterialSemantics;
86 virtual void shutdownCleanup()
override;
100 virtual void configure(agx::TiXmlElement* eEntity)
override;
101 virtual void initAttributeAccessors()
override;
108 #ifndef AGX_PHYSICS_WIREMATERIAL_DATA_SET_OVERRIDE 109 #define AGX_PHYSICS_WIREMATERIAL_DATA_SET 113 WireMaterialInstance operator[] (
size_t index);
124 typedef agx::Real youngsModulusStretchType;
135 virtual ~WireMaterialData() {}
136 virtual void setNumElements(
agx::Index numElements)
override;
139 WireMaterialData& operator= (
const WireMaterialData&) {
return *
this; }
152 agx::Real const& getYoungsModulusStretch()
const;
153 agx::Real const& getYoungsModulusBend()
const;
154 agx::Real const& getDampingStretch()
const;
161 void setYoungsModulusStretch(
agx::Real const& value);
162 void setYoungsModulusBend(
agx::Real const& value);
163 void setDampingStretch(
agx::Real const& value);
164 void setDampingBend(
agx::Real const& value);
170 friend class WireMaterialInstance;
171 WireMaterialSemantics();
199 WireMaterialData* getData();
200 const WireMaterialData* getData()
const;
238 WireMaterialInstance();
239 WireMaterialInstance(WireMaterialData* data,
agx::Index index);
244 WireMaterialData* getData();
245 const WireMaterialData* getData()
const;
251 agx::Real const& youngsModulusStretch()
const;
256 agx::Real const& youngsModulusBend()
const;
287 inline WireMaterialInstance
agx::Physics::WireMaterialData::operator[] (
size_t index) {
return WireMaterialInstance(
this, (
agx::Index)index); }
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 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
318 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
347 AGX_FORCE_INLINE WireMaterialInstance::WireMaterialInstance(WireMaterialData* data,
agx::Index index) : agx::ReferencedInstance(data, index) {}
352 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
359 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::youngsModulusStretch() { verifyIndex();
return getData()->youngsModulusStretch[getIndex()]; }
368 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::youngsModulusStretch()
const { verifyIndex();
return getData()->youngsModulusStretch[getIndex()]; }
370 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::youngsModulusBend() { verifyIndex();
return getData()->youngsModulusBend[getIndex()]; }
371 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::youngsModulusBend()
const { verifyIndex();
return getData()->youngsModulusBend[getIndex()]; }
373 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::dampingStretch() { verifyIndex();
return getData()->dampingStretch[getIndex()]; }
374 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::dampingStretch()
const { verifyIndex();
return getData()->dampingStretch[getIndex()]; }
376 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::dampingBend() { verifyIndex();
return getData()->dampingBend[getIndex()]; }
377 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::dampingBend()
const { verifyIndex();
return getData()->dampingBend[getIndex()]; }
380 AGX_FORCE_INLINE agx::Bool const& WireMaterialInstance::dirty()
const { verifyIndex();
return getData()->dirty[getIndex()]; }
390 AGX_TYPE_BINDING(agx::Physics::WireMaterialInstance,
"Physics.WireMaterialInstance")
393 # pragma warning(pop) 396 #undef AGX_ENTITY_WRAPPER 397 #undef AGX_ENTITY_NAMESPACE static agxData::ScalarAttributeT< agx::Real > * youngsModulusBendAttribute
agxData::EntityData * getData()
static agxData::ScalarAttributeT< agx::Bool > * dirtyAttribute
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
WireMaterialInstance InstanceType
static agxData::ScalarAttributeT< agx::Real > * dampingBendAttribute
#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.
AGXPHYSICS_EXPORT agx::Real & youngsModulusStretch()
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
WireMaterialModel ModelType
AGXPHYSICS_EXPORT agx::Real & dampingBend()
Type-specific Array used for fast access into the data held by a Buffer.
Pointer to a entity instance of type Physics.WireMaterial.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static agxData::ScalarAttributeT< agx::Real > * youngsModulusStretchAttribute
WireMaterialData * getData()
Contains classes for low level data storage for AGX.
agxData::EntityRef< WireMaterialPtr > WireMaterialRef
AGXPHYSICS_EXPORT agx::Real & dampingStretch()
static WireMaterialModel * instance()
AGXPHYSICS_EXPORT agx::Real & youngsModulusBend()
Abstract description of the data attributes for the Referenced entity.
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Referenced.
AGXPHYSICS_EXPORT WireMaterialPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Bool & dirty()
AGXPHYSICS_EXPORT WireMaterialInstance instance()
static agxData::ScalarAttributeT< agx::Real > * dampingStretchAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT WireMaterialSemantics * operator->()
AGXPHYSICS_EXPORT WireMaterialPtr()
Abstract description of the data attributes for the Physics.WireMaterial entity.
WireMaterialData DataType