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;
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();
230 #ifdef AGX_GENERATED_TOLUA_WRAPPER
231 inline agx::Real const& getYoungsModulusStretch()
const {
return (*this)->getYoungsModulusStretch(); }
232 inline agx::Real const& getYoungsModulusBend()
const {
return (*this)->getYoungsModulusBend(); }
233 inline agx::Real const& getDampingStretch()
const {
return (*this)->getDampingStretch(); }
234 inline agx::Real const& getDampingBend()
const {
return (*this)->getDampingBend(); }
235 inline agx::Bool const& getDirty()
const {
return (*this)->getDirty(); }
238 inline void setYoungsModulusStretch(
agx::Real const& value) { (*this)->setYoungsModulusStretch(value); }
239 inline void setYoungsModulusBend(
agx::Real const& value) { (*this)->setYoungsModulusBend(value); }
240 inline void setDampingStretch(
agx::Real const& value) { (*this)->setDampingStretch(value); }
241 inline void setDampingBend(
agx::Real const& value) { (*this)->setDampingBend(value); }
242 inline void setDirty(
agx::Bool const& value) { (*this)->setDirty(value); }
256 WireMaterialInstance();
257 WireMaterialInstance(WireMaterialData* data,
agx::Index index);
262 WireMaterialData* getData();
263 const WireMaterialData* getData()
const;
269 agx::Real const& youngsModulusStretch()
const;
274 agx::Real const& youngsModulusBend()
const;
305 inline WireMaterialInstance
agx::Physics::WireMaterialData::operator[] (
size_t index) {
return WireMaterialInstance(
this, (
agx::Index)index); }
312 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
319 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
336 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
343 AGX_FORCE_INLINE WireMaterialSemantics* WireMaterialPtr::operator->() {
return (WireMaterialSemantics* )
this; }
344 AGX_FORCE_INLINE const WireMaterialSemantics* WireMaterialPtr::operator->()
const {
return (
const WireMaterialSemantics* )
this; }
348 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::youngsModulusStretch() { verifyIndex();
return getData()->youngsModulusStretch[calculateIndex()]; }
349 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::youngsModulusStretch()
const { verifyIndex();
return getData()->youngsModulusStretch[calculateIndex()]; }
351 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::youngsModulusBend() { verifyIndex();
return getData()->youngsModulusBend[calculateIndex()]; }
352 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::youngsModulusBend()
const { verifyIndex();
return getData()->youngsModulusBend[calculateIndex()]; }
354 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::dampingStretch() { verifyIndex();
return getData()->dampingStretch[calculateIndex()]; }
355 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::dampingStretch()
const { verifyIndex();
return getData()->dampingStretch[calculateIndex()]; }
357 AGX_FORCE_INLINE agx::Real& WireMaterialPtr::dampingBend() { verifyIndex();
return getData()->dampingBend[calculateIndex()]; }
358 AGX_FORCE_INLINE agx::Real const& WireMaterialPtr::dampingBend()
const { verifyIndex();
return getData()->dampingBend[calculateIndex()]; }
361 AGX_FORCE_INLINE agx::Bool const& WireMaterialPtr::dirty()
const { verifyIndex();
return getData()->dirty[calculateIndex()]; }
365 AGX_FORCE_INLINE WireMaterialInstance::WireMaterialInstance(WireMaterialData* 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& WireMaterialInstance::youngsModulusStretch() { verifyIndex();
return getData()->youngsModulusStretch[getIndex()]; }
386 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::youngsModulusStretch()
const { verifyIndex();
return getData()->youngsModulusStretch[getIndex()]; }
388 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::youngsModulusBend() { verifyIndex();
return getData()->youngsModulusBend[getIndex()]; }
389 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::youngsModulusBend()
const { verifyIndex();
return getData()->youngsModulusBend[getIndex()]; }
391 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::dampingStretch() { verifyIndex();
return getData()->dampingStretch[getIndex()]; }
392 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::dampingStretch()
const { verifyIndex();
return getData()->dampingStretch[getIndex()]; }
394 AGX_FORCE_INLINE agx::Real& WireMaterialInstance::dampingBend() { verifyIndex();
return getData()->dampingBend[getIndex()]; }
395 AGX_FORCE_INLINE agx::Real const& WireMaterialInstance::dampingBend()
const { verifyIndex();
return getData()->dampingBend[getIndex()]; }
398 AGX_FORCE_INLINE agx::Bool const& WireMaterialInstance::dirty()
const { verifyIndex();
return getData()->dirty[getIndex()]; }
411 # pragma warning(pop)
414 #undef AGX_ENTITY_WRAPPER
415 #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...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
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()
static agxData::EntityStorage * defaultStorage()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
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 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.
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
WireMaterialModel ModelType
WireMaterialData * getData()
AGXPHYSICS_EXPORT agx::Real const & dampingStretch() const
AGXPHYSICS_EXPORT agx::Bool & dirty()
AGXPHYSICS_EXPORT WireMaterialPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Real const & youngsModulusBend() const
AGXPHYSICS_EXPORT WireMaterialPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & dampingStretch()
AGXPHYSICS_EXPORT agx::Real const & dampingBend() const
AGXPHYSICS_EXPORT agx::Real & youngsModulusBend()
AGXPHYSICS_EXPORT const WireMaterialInstance instance() const
WireMaterialData DataType
AGXPHYSICS_EXPORT agx::Real & youngsModulusStretch()
AGXPHYSICS_EXPORT const WireMaterialSemantics * operator->() const
AGXPHYSICS_EXPORT WireMaterialInstance instance()
AGXPHYSICS_EXPORT agx::Real const & youngsModulusStretch() const
AGXPHYSICS_EXPORT WireMaterialPtr()
AGXPHYSICS_EXPORT agx::Bool const & dirty() const
WireMaterialInstance InstanceType
AGXPHYSICS_EXPORT agx::Real & dampingBend()
AGXPHYSICS_EXPORT WireMaterialSemantics * operator->()
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())