21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CYLINDER_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_CYLINDER_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 )
61 class CylinderInstance;
62 class CylinderSemantics;
87 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
override;
106 #ifndef AGX_PHYSICS_GEOMETRY_CYLINDER_DATA_SET_OVERRIDE
107 #define AGX_PHYSICS_GEOMETRY_CYLINDER_DATA_SET
111 CylinderInstance operator[] (
size_t index);
127 virtual ~CylinderData() {}
128 virtual void setNumElements(
agx::Index numElements)
override;
131 CylinderData& operator= (
const CylinderData&) {
return *
this; }
139 class
AGXPHYSICS_EXPORT CylinderSemantics : public agx::Physics::Geometry::ShapeSemantics
155 friend class CylinderPtr;
156 friend class CylinderInstance;
185 CylinderData* getData();
186 const CylinderData* getData()
const;
201 #ifdef AGX_GENERATED_TOLUA_WRAPPER
202 inline agx::Real const& getHeight()
const {
return (*this)->getHeight(); }
203 inline agx::Real const& getRadius()
const {
return (*this)->getRadius(); }
206 inline void setHeight(
agx::Real const& value) { (*this)->setHeight(value); }
207 inline void setRadius(
agx::Real const& value) { (*this)->setRadius(value); }
218 class
AGXPHYSICS_EXPORT CylinderInstance : public agx::Physics::Geometry::ShapeInstance
222 CylinderInstance(CylinderData* data,
agx::Index index);
227 CylinderData* getData();
228 const CylinderData* getData()
const;
255 inline CylinderInstance agx::Physics::Geometry::CylinderData::operator[] (
size_t index) {
return CylinderInstance(
this, (
agx::Index)index); }
262 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
277 "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\'",
293 AGX_FORCE_INLINE CylinderSemantics* CylinderPtr::operator->() {
return (CylinderSemantics* )
this; }
294 AGX_FORCE_INLINE const CylinderSemantics* CylinderPtr::operator->()
const {
return (
const CylinderSemantics* )
this; }
299 AGX_FORCE_INLINE agx::Real const& CylinderPtr::height()
const { verifyIndex();
return getData()->height[calculateIndex()]; }
302 AGX_FORCE_INLINE agx::Real const& CylinderPtr::radius()
const { verifyIndex();
return getData()->radius[calculateIndex()]; }
306 AGX_FORCE_INLINE CylinderInstance::CylinderInstance(CylinderData* data,
agx::Index index) : agx::Physics::Geometry::ShapeInstance(data, index) {}
311 "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\'",
327 AGX_FORCE_INLINE agx::Real const& CylinderInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
330 AGX_FORCE_INLINE agx::Real const& CylinderInstance::radius()
const { verifyIndex();
return getData()->radius[getIndex()]; }
341 AGX_TYPE_BINDING(agx::Physics::Geometry::CylinderInstance, "Physics.Geometry.CylinderInstance")
344 # pragma warning(pop)
347 #undef AGX_ENTITY_WRAPPER
348 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
Abstract description of the data attributes for the Physics.Geometry.Shape entity.
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.
#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
Pointer to a entity instance of type Physics.Geometry.Shape.
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...
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
#define AGX_DECLARE_POINTER_TYPES(type)
agx::String fullPath() const
Pointer to a entity instance of type Physics.Geometry.Cylinder.
CylinderInstance InstanceType
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::Real > * radiusAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
AGXPHYSICS_EXPORT CylinderPtr()
Abstract description of the data attributes for the Physics.Geometry.Cylinder entity.
bool isInstanceOf(agxData::EntityModel *model) const
static CylinderModel * instance()
agxData::EntityRef< CylinderPtr > CylinderRef
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()