21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_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 )
58 class HollowCylinderModel;
59 class HollowCylinderData;
60 class HollowCylinderPtr;
61 class HollowCylinderInstance;
62 class HollowCylinderSemantics;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
107 #ifndef AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_DATA_SET_OVERRIDE
108 #define AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_DATA_SET
109 class AGXPHYSICS_EXPORT HollowCylinderData :
public agx::Physics::Geometry::ShapeData
112 HollowCylinderInstance operator[] (
size_t index);
127 HollowCylinderData();
130 virtual ~HollowCylinderData() {}
131 virtual void setNumElements(
agx::Index numElements)
override;
134 HollowCylinderData& operator= (
const HollowCylinderData&) {
return *
this; }
156 void setThickness(
agx::Real const& value);
160 friend class HollowCylinderPtr;
161 friend class HollowCylinderInstance;
162 HollowCylinderSemantics();
211 #ifdef AGX_GENERATED_TOLUA_WRAPPER
212 inline agx::Real const& getHeight()
const {
return (*this)->getHeight(); }
213 inline agx::Real const& getRadius()
const {
return (*this)->getRadius(); }
214 inline agx::Real const& getThickness()
const {
return (*this)->getThickness(); }
217 inline void setHeight(
agx::Real const& value) { (*this)->setHeight(value); }
218 inline void setRadius(
agx::Real const& value) { (*this)->setRadius(value); }
219 inline void setThickness(
agx::Real const& value) { (*this)->setThickness(value); }
233 HollowCylinderInstance();
234 HollowCylinderInstance(HollowCylinderData* data,
agx::Index index);
239 HollowCylinderData* getData();
240 const HollowCylinderData* getData()
const;
272 inline HollowCylinderInstance
agx::Physics::Geometry::HollowCylinderData::operator[] (
size_t index) {
return HollowCylinderInstance(
this, (
agx::Index)index); }
279 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
286 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
303 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
310 AGX_FORCE_INLINE HollowCylinderSemantics* HollowCylinderPtr::operator->() {
return (HollowCylinderSemantics* )
this; }
311 AGX_FORCE_INLINE const HollowCylinderSemantics* HollowCylinderPtr::operator->()
const {
return (
const HollowCylinderSemantics* )
this; }
316 AGX_FORCE_INLINE agx::Real const& HollowCylinderPtr::height()
const { verifyIndex();
return getData()->height[calculateIndex()]; }
319 AGX_FORCE_INLINE agx::Real const& HollowCylinderPtr::radius()
const { verifyIndex();
return getData()->radius[calculateIndex()]; }
321 AGX_FORCE_INLINE agx::Real& HollowCylinderPtr::thickness() { verifyIndex();
return getData()->thickness[calculateIndex()]; }
322 AGX_FORCE_INLINE agx::Real const& HollowCylinderPtr::thickness()
const { verifyIndex();
return getData()->thickness[calculateIndex()]; }
326 AGX_FORCE_INLINE HollowCylinderInstance::HollowCylinderInstance(HollowCylinderData* data,
agx::Index index) :
agx::Physics::Geometry::ShapeInstance(data, index) {}
331 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
338 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
347 AGX_FORCE_INLINE agx::Real const& HollowCylinderInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
350 AGX_FORCE_INLINE agx::Real const& HollowCylinderInstance::radius()
const { verifyIndex();
return getData()->radius[getIndex()]; }
352 AGX_FORCE_INLINE agx::Real& HollowCylinderInstance::thickness() { verifyIndex();
return getData()->thickness[getIndex()]; }
353 AGX_FORCE_INLINE agx::Real const& HollowCylinderInstance::thickness()
const { verifyIndex();
return getData()->thickness[getIndex()]; }
364 AGX_TYPE_BINDING(
agx::Physics::Geometry::HollowCylinderInstance, "Physics.Geometry.HollowCylinderInstance")
367 # pragma warning(pop)
370 #undef AGX_ENTITY_WRAPPER
371 #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
An entity reference is a safe/referencing handle to an entity instance whose model is descendant from...
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.Geometry.HollowCylinder entity.
static HollowCylinderPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::Real > * radiusAttribute
static HollowCylinderModel * instance()
HollowCylinderModel(const agx::String &name="HollowCylinder")
virtual void initAttributeAccessors() override
void construct(agx::Physics::Geometry::HollowCylinderPtr hollowCylinder)
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
virtual void configure(agx::TiXmlElement *eEntity) override
static agxData::ScalarAttributeT< agx::Real > * thicknessAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual ~HollowCylinderModel()
Pointer to a entity instance of type Physics.Geometry.HollowCylinder.
AGXPHYSICS_EXPORT HollowCylinderPtr(const agxData::EntityPtr &ptr)
const HollowCylinderData * getData() const
AGXPHYSICS_EXPORT HollowCylinderPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Real & height()
AGXPHYSICS_EXPORT HollowCylinderSemantics * operator->()
HollowCylinderData * getData()
AGXPHYSICS_EXPORT HollowCylinderPtr(agxData::EntityStorage *storage, agx::Index id)
HollowCylinderInstance InstanceType
AGXPHYSICS_EXPORT const HollowCylinderInstance instance() const
AGXPHYSICS_EXPORT const HollowCylinderSemantics * operator->() const
AGXPHYSICS_EXPORT HollowCylinderInstance instance()
AGXPHYSICS_EXPORT HollowCylinderPtr()
AGXPHYSICS_EXPORT agx::Real & radius()
AGXPHYSICS_EXPORT agx::Real const & radius() const
AGXPHYSICS_EXPORT agx::Real const & thickness() const
AGXPHYSICS_EXPORT agx::Real & thickness()
HollowCylinderModel ModelType
AGXPHYSICS_EXPORT agx::Real const & height() const
HollowCylinderData DataType
Abstract description of the data attributes for the Physics.Geometry.Shape entity.
Pointer to a entity instance of type Physics.Geometry.Shape.
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< HollowCylinderPtr > HollowCylinderRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())