21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCONE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCONE_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 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();
221 #ifdef AGX_GENERATED_TOLUA_WRAPPER
222 inline agx::Real const& getHeight()
const {
return (*this)->getHeight(); }
223 inline agx::Real const& getTopRadius()
const {
return (*this)->getTopRadius(); }
224 inline agx::Real const& getBottomRadius()
const {
return (*this)->getBottomRadius(); }
225 inline agx::Real const& getThickness()
const {
return (*this)->getThickness(); }
228 inline void setHeight(
agx::Real const& value) { (*this)->setHeight(value); }
229 inline void setTopRadius(
agx::Real const& value) { (*this)->setTopRadius(value); }
230 inline void setBottomRadius(
agx::Real const& value) { (*this)->setBottomRadius(value); }
231 inline void setThickness(
agx::Real const& value) { (*this)->setThickness(value); }
245 HollowConeInstance();
246 HollowConeInstance(HollowConeData* data,
agx::Index index);
251 HollowConeData* getData();
252 const HollowConeData* getData()
const;
289 inline HollowConeInstance
agx::Physics::Geometry::HollowConeData::operator[] (
size_t index) {
return HollowConeInstance(
this, (
agx::Index)index); }
296 "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\'",
311 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 AGX_FORCE_INLINE HollowConeSemantics* HollowConePtr::operator->() {
return (HollowConeSemantics* )
this; }
328 AGX_FORCE_INLINE const HollowConeSemantics* HollowConePtr::operator->()
const {
return (
const HollowConeSemantics* )
this; }
333 AGX_FORCE_INLINE agx::Real const& HollowConePtr::height()
const { verifyIndex();
return getData()->height[calculateIndex()]; }
336 AGX_FORCE_INLINE agx::Real const& HollowConePtr::topRadius()
const { verifyIndex();
return getData()->topRadius[calculateIndex()]; }
338 AGX_FORCE_INLINE agx::Real& HollowConePtr::bottomRadius() { verifyIndex();
return getData()->bottomRadius[calculateIndex()]; }
339 AGX_FORCE_INLINE agx::Real const& HollowConePtr::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[calculateIndex()]; }
342 AGX_FORCE_INLINE agx::Real const& HollowConePtr::thickness()
const { verifyIndex();
return getData()->thickness[calculateIndex()]; }
346 AGX_FORCE_INLINE HollowConeInstance::HollowConeInstance(HollowConeData* data,
agx::Index index) :
agx::Physics::Geometry::ShapeInstance(data, index) {}
351 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
358 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
370 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::topRadius()
const { verifyIndex();
return getData()->topRadius[getIndex()]; }
372 AGX_FORCE_INLINE agx::Real& HollowConeInstance::bottomRadius() { verifyIndex();
return getData()->bottomRadius[getIndex()]; }
373 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[getIndex()]; }
376 AGX_FORCE_INLINE agx::Real const& HollowConeInstance::thickness()
const { verifyIndex();
return getData()->thickness[getIndex()]; }
387 AGX_TYPE_BINDING(
agx::Physics::Geometry::HollowConeInstance, "Physics.Geometry.HollowConeInstance")
390 # pragma warning(pop)
393 #undef AGX_ENTITY_WRAPPER
394 #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.HollowCone entity.
static agxData::ScalarAttributeT< agx::Real > * topRadiusAttribute
static agxData::EntityStorage * defaultStorage()
virtual void configure(agx::TiXmlElement *eEntity) override
static HollowConeModel * instance()
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
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
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
Pointer to a entity instance of type Physics.Geometry.HollowCone.
HollowConeInstance InstanceType
AGXPHYSICS_EXPORT agx::Real & topRadius()
AGXPHYSICS_EXPORT HollowConePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT HollowConePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT HollowConePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & thickness()
AGXPHYSICS_EXPORT HollowConePtr()
AGXPHYSICS_EXPORT agx::Real const & thickness() const
AGXPHYSICS_EXPORT HollowConeSemantics * operator->()
HollowConeModel ModelType
AGXPHYSICS_EXPORT const HollowConeInstance instance() const
AGXPHYSICS_EXPORT agx::Real & bottomRadius()
AGXPHYSICS_EXPORT agx::Real const & topRadius() const
AGXPHYSICS_EXPORT HollowConeInstance instance()
AGXPHYSICS_EXPORT const HollowConeSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Real const & bottomRadius() const
HollowConeData * getData()
AGXPHYSICS_EXPORT agx::Real const & height() const
const HollowConeData * 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< HollowConePtr > HollowConeRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())