21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CYLINDER_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_CYLINDER_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 )
61 class CylinderInstance;
62 class CylinderSemantics;
98 virtual void configure(agx::TiXmlElement* eEntity)
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; }
155 friend class CylinderPtr;
156 friend class CylinderInstance;
210 CylinderInstance(CylinderData* data,
agx::Index index);
215 CylinderData* getData();
216 const CylinderData* getData()
const;
243 inline CylinderInstance
agx::Physics::Geometry::CylinderData::operator[] (
size_t index) {
return CylinderInstance(
this, (
agx::Index)index); }
250 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
257 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
265 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
266 EntityPtr::getModel()->fullPath().c_str(), CylinderModel::instance()->fullPath().c_str());
274 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
275 EntityPtr::getModel()->fullPath().c_str(), CylinderModel::instance()->fullPath().c_str());
281 AGX_FORCE_INLINE CylinderSemantics* CylinderPtr::operator->() {
return (CylinderSemantics* )
this; }
282 AGX_FORCE_INLINE const CylinderSemantics* CylinderPtr::operator->()
const {
return (
const CylinderSemantics* )
this; }
287 AGX_FORCE_INLINE agx::Real const& CylinderPtr::height()
const { verifyIndex();
return getData()->height[calculateIndex()]; }
290 AGX_FORCE_INLINE agx::Real const& CylinderPtr::radius()
const { verifyIndex();
return getData()->radius[calculateIndex()]; }
294 AGX_FORCE_INLINE CylinderInstance::CylinderInstance(CylinderData* data,
agx::Index index) :
agx::Physics::Geometry::ShapeInstance(data, index) {}
299 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
306 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
315 AGX_FORCE_INLINE agx::Real const& CylinderInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
318 AGX_FORCE_INLINE agx::Real const& CylinderInstance::radius()
const { verifyIndex();
return getData()->radius[getIndex()]; }
329AGX_TYPE_BINDING(
agx::Physics::Geometry::CylinderInstance, "Physics.Geometry.CylinderInstance")
335#undef AGX_ENTITY_WRAPPER
336#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()
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.Cylinder entity.
static CylinderPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void initAttributeAccessors() override
void construct(agx::Physics::Geometry::CylinderPtr cylinder)
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::Real > * radiusAttribute
static CylinderModel * instance()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
CylinderModel(const agx::String &name="Cylinder")
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::EntityStorage * defaultStorage()
Pointer to a entity instance of type Physics.Geometry.Cylinder.
const CylinderData * getData() const
AGXPHYSICS_EXPORT const CylinderSemantics * operator->() const
CylinderInstance InstanceType
AGXPHYSICS_EXPORT agx::Real const & height() const
AGXPHYSICS_EXPORT agx::Real & height()
AGXPHYSICS_EXPORT CylinderPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT CylinderSemantics * operator->()
AGXPHYSICS_EXPORT agx::Real & radius()
AGXPHYSICS_EXPORT agx::Real const & radius() const
AGXPHYSICS_EXPORT CylinderPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT CylinderPtr()
AGXPHYSICS_EXPORT const CylinderInstance instance() const
AGXPHYSICS_EXPORT CylinderInstance instance()
AGXPHYSICS_EXPORT CylinderPtr(const agxData::EntityPtr &ptr)
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< CylinderPtr > CylinderRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.