21#ifndef GENERATED_AGX_PHYSICS_WIREMATERIAL_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_WIREMATERIAL_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
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;
100 virtual void configure(agx::TiXmlElement* eEntity)
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);
169 friend class WireMaterialPtr;
170 friend class WireMaterialInstance;
171 WireMaterialSemantics();
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\'",
310 EntityPtr::getModel()->fullPath().c_str(), WireMaterialModel::instance()->fullPath().c_str());
318 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
319 EntityPtr::getModel()->fullPath().c_str(), WireMaterialModel::instance()->fullPath().c_str());
325 AGX_FORCE_INLINE WireMaterialSemantics* WireMaterialPtr::operator->() {
return (WireMaterialSemantics* )
this; }
326 AGX_FORCE_INLINE const WireMaterialSemantics* WireMaterialPtr::operator->()
const {
return (
const WireMaterialSemantics* )
this; }
330 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::youngsModulusStretch() { verifyIndex();
return getData()->youngsModulusStretch[calculateIndex()]; }
331 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::youngsModulusStretch()
const { verifyIndex();
return getData()->youngsModulusStretch[calculateIndex()]; }
333 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::youngsModulusBend() { verifyIndex();
return getData()->youngsModulusBend[calculateIndex()]; }
334 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::youngsModulusBend()
const { verifyIndex();
return getData()->youngsModulusBend[calculateIndex()]; }
336 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::dampingStretch() { verifyIndex();
return getData()->dampingStretch[calculateIndex()]; }
337 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::dampingStretch()
const { verifyIndex();
return getData()->dampingStretch[calculateIndex()]; }
339 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::dampingBend() { verifyIndex();
return getData()->dampingBend[calculateIndex()]; }
340 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::dampingBend()
const { verifyIndex();
return getData()->dampingBend[calculateIndex()]; }
343 AGX_FORCE_INLINE agx::Bool const& WireMaterialPtr::dirty()
const { verifyIndex();
return getData()->dirty[calculateIndex()]; }
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()]; }
396#undef AGX_ENTITY_WRAPPER
397#undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.WireMaterial entity.
void construct(agx::Physics::WireMaterialPtr wireMaterial)
static agxData::ScalarAttributeT< agx::Bool > * dirtyAttribute
WireMaterialModel(const agx::String &name="WireMaterial")
static WireMaterialModel * instance()
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::Real > * dampingBendAttribute
static agxData::ScalarAttributeT< agx::Real > * youngsModulusBendAttribute
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void initAttributeAccessors() override
virtual void configure(agx::TiXmlElement *eEntity) override
static WireMaterialPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::Real > * dampingStretchAttribute
virtual ~WireMaterialModel()
static agxData::ScalarAttributeT< agx::Real > * youngsModulusStretchAttribute
Pointer to a entity instance of type Physics.WireMaterial.
const WireMaterialData * getData() const
AGXPHYSICS_EXPORT agx::Real & youngsModulusBend()
AGXPHYSICS_EXPORT agx::Bool & dirty()
AGXPHYSICS_EXPORT agx::Real & dampingStretch()
AGXPHYSICS_EXPORT agx::Real const & dampingBend() const
WireMaterialModel ModelType
WireMaterialData * getData()
AGXPHYSICS_EXPORT WireMaterialSemantics * operator->()
AGXPHYSICS_EXPORT WireMaterialPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT WireMaterialPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & dampingBend()
AGXPHYSICS_EXPORT agx::Real const & dampingStretch() const
AGXPHYSICS_EXPORT agx::Real & youngsModulusStretch()
AGXPHYSICS_EXPORT const WireMaterialInstance instance() const
WireMaterialData DataType
AGXPHYSICS_EXPORT WireMaterialInstance instance()
AGXPHYSICS_EXPORT agx::Bool const & dirty() const
AGXPHYSICS_EXPORT agx::Real const & youngsModulusBend() const
AGXPHYSICS_EXPORT WireMaterialPtr()
AGXPHYSICS_EXPORT agx::Real const & youngsModulusStretch() const
WireMaterialInstance InstanceType
AGXPHYSICS_EXPORT const WireMaterialSemantics * operator->() const
AGXPHYSICS_EXPORT WireMaterialPtr(agxData::EntityStorage *storage, agx::Index id)
Abstract description of the data attributes for the Referenced entity.
Pointer to a entity instance of type Referenced.
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
agxData::EntityRef< WireMaterialPtr > WireMaterialRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.