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);
169 friend class WireMaterialPtr;
170 friend class WireMaterialInstance;
171 WireMaterialSemantics();
199 WireMaterialData* getData();
200 const WireMaterialData* getData()
const;
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()]; }
408 AGX_TYPE_BINDING(agx::Physics::WireMaterialInstance, "Physics.WireMaterialInstance")
411 # pragma warning(pop)
414 #undef AGX_ENTITY_WRAPPER
415 #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()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#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)
agx::String fullPath() const
WireMaterialModel ModelType
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
static agxData::ScalarAttributeT< agx::Real > * youngsModulusStretchAttribute
agxData::EntityRef< WireMaterialPtr > WireMaterialRef
static WireMaterialModel * instance()
Abstract description of the data attributes for the Referenced entity.
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Referenced.
static agxData::ScalarAttributeT< agx::Real > * dampingStretchAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT WireMaterialPtr()
Abstract description of the data attributes for the Physics.WireMaterial entity.
WireMaterialData DataType