21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CONE_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_CONE_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 )
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
107 #ifndef AGX_PHYSICS_GEOMETRY_CONE_DATA_SET_OVERRIDE
108 #define AGX_PHYSICS_GEOMETRY_CONE_DATA_SET
112 ConeInstance operator[] (
size_t index);
130 virtual ~ConeData() {}
131 virtual void setNumElements(
agx::Index numElements)
override;
134 ConeData& operator= (
const ConeData&) {
return *
this; }
149 agx::Real const& getBottomRadius()
const;
155 void setTopRadius(
agx::Real const& value);
156 void setBottomRadius(
agx::Real const& value);
160 friend class ConePtr;
161 friend class ConeInstance;
220 ConeInstance(ConeData* data,
agx::Index index);
226 const ConeData* getData()
const;
258 inline ConeInstance
agx::Physics::Geometry::ConeData::operator[] (
size_t index) {
return ConeInstance(
this, (
agx::Index)index); }
265 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
272 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
280 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
281 EntityPtr::getModel()->fullPath().c_str(), ConeModel::instance()->fullPath().c_str());
289 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
290 EntityPtr::getModel()->fullPath().c_str(), ConeModel::instance()->fullPath().c_str());
296 AGX_FORCE_INLINE ConeSemantics* ConePtr::operator->() {
return (ConeSemantics* )
this; }
297 AGX_FORCE_INLINE const ConeSemantics* ConePtr::operator->()
const {
return (
const ConeSemantics* )
this; }
305 AGX_FORCE_INLINE agx::Real const& ConePtr::topRadius()
const { verifyIndex();
return getData()->topRadius[calculateIndex()]; }
308 AGX_FORCE_INLINE agx::Real const& ConePtr::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[calculateIndex()]; }
317 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
324 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
336 AGX_FORCE_INLINE agx::Real const& ConeInstance::topRadius()
const { verifyIndex();
return getData()->topRadius[getIndex()]; }
339 AGX_FORCE_INLINE agx::Real const& ConeInstance::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[getIndex()]; }
356#undef AGX_ENTITY_WRAPPER
357#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.Cone entity.
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
ConeModel(const agx::String &name="Cone")
static agxData::ScalarAttributeT< agx::Real > * bottomRadiusAttribute
static agxData::ScalarAttributeT< agx::Real > * topRadiusAttribute
void construct(agx::Physics::Geometry::ConePtr cone)
static ConePtr 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
static ConeModel * instance()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void initAttributeAccessors() override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual void construct(agxData::EntityPtr instance) override
static agxData::EntityStorage * defaultStorage()
Pointer to a entity instance of type Physics.Geometry.Cone.
AGXPHYSICS_EXPORT ConePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Real const & height() const
AGXPHYSICS_EXPORT ConePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT const ConeSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Real & topRadius()
AGXPHYSICS_EXPORT agx::Real const & bottomRadius() const
AGXPHYSICS_EXPORT agx::Real const & topRadius() const
AGXPHYSICS_EXPORT ConePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT ConeInstance instance()
AGXPHYSICS_EXPORT ConeSemantics * operator->()
AGXPHYSICS_EXPORT ConePtr()
AGXPHYSICS_EXPORT agx::Real & bottomRadius()
ConeInstance InstanceType
AGXPHYSICS_EXPORT const ConeInstance instance() const
const ConeData * getData() const
AGXPHYSICS_EXPORT agx::Real & height()
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< ConePtr > ConeRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.