21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCONE_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCONE_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 )
58 class HollowConeModel;
61 class HollowConeInstance;
62 class HollowConeSemantics;
100 virtual void configure(agx::TiXmlElement* eEntity)
override;
108 #ifndef AGX_PHYSICS_GEOMETRY_HOLLOWCONE_DATA_SET_OVERRIDE
109 #define AGX_PHYSICS_GEOMETRY_HOLLOWCONE_DATA_SET
110 class AGXPHYSICS_EXPORT HollowConeData :
public agx::Physics::Geometry::ShapeData
113 HollowConeInstance operator[] (
size_t index);
133 virtual ~HollowConeData() {}
134 virtual void setNumElements(
agx::Index numElements)
override;
137 HollowConeData& operator= (
const HollowConeData&) {
return *
this; }
152 agx::Real const& getBottomRadius()
const;
159 void setTopRadius(
agx::Real const& value);
160 void setBottomRadius(
agx::Real const& value);
161 void setThickness(
agx::Real const& value);
165 friend class HollowConePtr;
166 friend class HollowConeInstance;
167 HollowConeSemantics();
229 HollowConeInstance();
230 HollowConeInstance(HollowConeData* data,
agx::Index index);
235 HollowConeData* getData();
236 const HollowConeData* getData()
const;
273 inline HollowConeInstance
agx::Physics::Geometry::HollowConeData::operator[] (
size_t index) {
return HollowConeInstance(
this, (
agx::Index)index); }
280 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
287 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
295 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
296 EntityPtr::getModel()->fullPath().c_str(), HollowConeModel::instance()->fullPath().c_str());
304 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
305 EntityPtr::getModel()->fullPath().c_str(), HollowConeModel::instance()->fullPath().c_str());
311 AGX_FORCE_INLINE HollowConeSemantics* HollowConePtr::operator->() {
return (HollowConeSemantics* )
this; }
312 AGX_FORCE_INLINE const HollowConeSemantics* HollowConePtr::operator->()
const {
return (
const HollowConeSemantics* )
this; }
317 AGX_FORCE_INLINE agx::Real const& HollowConePtr::height()
const { verifyIndex();
return getData()->height[calculateIndex()]; }
320 AGX_FORCE_INLINE agx::Real const& HollowConePtr::topRadius()
const { verifyIndex();
return getData()->topRadius[calculateIndex()]; }
322 AGX_FORCE_INLINE agx::Real& HollowConePtr::bottomRadius() { verifyIndex();
return getData()->bottomRadius[calculateIndex()]; }
323 AGX_FORCE_INLINE agx::Real const& HollowConePtr::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[calculateIndex()]; }
326 AGX_FORCE_INLINE agx::Real const& HollowConePtr::thickness()
const { verifyIndex();
return getData()->thickness[calculateIndex()]; }
330 AGX_FORCE_INLINE HollowConeInstance::HollowConeInstance(HollowConeData* data,
agx::Index index) :
agx::Physics::Geometry::ShapeInstance(data, index) {}
335 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
342 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
351 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
354 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::topRadius()
const { verifyIndex();
return getData()->topRadius[getIndex()]; }
356 AGX_FORCE_INLINE agx::Real& HollowConeInstance::bottomRadius() { verifyIndex();
return getData()->bottomRadius[getIndex()]; }
357 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[getIndex()]; }
360 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::thickness()
const { verifyIndex();
return getData()->thickness[getIndex()]; }
371AGX_TYPE_BINDING(
agx::Physics::Geometry::HollowConeInstance, "Physics.Geometry.HollowConeInstance")
377#undef AGX_ENTITY_WRAPPER
378#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.HollowCone entity.
static agxData::ScalarAttributeT< agx::Real > * topRadiusAttribute
static HollowConeModel * instance()
virtual void configure(agx::TiXmlElement *eEntity) override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void construct(agxData::EntityPtr instance) override
HollowConeModel(const agx::String &name="HollowCone")
void construct(agx::Physics::Geometry::HollowConePtr hollowCone)
static agxData::ScalarAttributeT< agx::Real > * bottomRadiusAttribute
static agxData::EntityStorage * defaultStorage()
virtual void initAttributeAccessors() override
static HollowConePtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual ~HollowConeModel()
static agxData::ScalarAttributeT< agx::Real > * thicknessAttribute
Pointer to a entity instance of type Physics.Geometry.HollowCone.
HollowConeInstance InstanceType
AGXPHYSICS_EXPORT agx::Real const & thickness() const
AGXPHYSICS_EXPORT HollowConePtr(agxData::EntityStorage *storage, agx::Index id)
HollowConeData * getData()
AGXPHYSICS_EXPORT HollowConePtr(const agxData::EntityInstance &instance)
const HollowConeData * getData() const
AGXPHYSICS_EXPORT const HollowConeSemantics * operator->() const
AGXPHYSICS_EXPORT HollowConePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT HollowConePtr()
AGXPHYSICS_EXPORT agx::Real const & topRadius() const
AGXPHYSICS_EXPORT agx::Real & bottomRadius()
AGXPHYSICS_EXPORT agx::Real const & height() const
HollowConeModel ModelType
AGXPHYSICS_EXPORT agx::Real const & bottomRadius() const
AGXPHYSICS_EXPORT const HollowConeInstance instance() const
AGXPHYSICS_EXPORT HollowConeInstance instance()
AGXPHYSICS_EXPORT HollowConeSemantics * operator->()
AGXPHYSICS_EXPORT agx::Real & thickness()
AGXPHYSICS_EXPORT agx::Real & topRadius()
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< HollowConePtr > HollowConeRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.