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;
87 virtual void shutdownCleanup()
override;
100 virtual void configure(agx::TiXmlElement* eEntity)
override;
101 virtual void initAttributeAccessors()
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);
166 friend class HollowConeInstance;
167 HollowConeSemantics();
195 HollowConeData* getData();
196 const HollowConeData* getData()
const;
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\'",
304 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
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()]; }
371 AGX_TYPE_BINDING(agx::Physics::Geometry::HollowConeInstance,
"Physics.Geometry.HollowConeInstance")
374 # pragma warning(pop) 377 #undef AGX_ENTITY_WRAPPER 378 #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()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
AGXPHYSICS_EXPORT agx::Real & thickness()
Abstract description of the data attributes for the Physics.Geometry.HollowCone entity.
#define AGXPHYSICS_EXPORT
Pointer to a entity instance of type Physics.Geometry.Shape.
static agxData::ScalarAttributeT< agx::Real > * topRadiusAttribute
AGXPHYSICS_EXPORT agx::Real & topRadius()
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...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
HollowConeData * getData()
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::Real > * bottomRadiusAttribute
AGXPHYSICS_EXPORT HollowConePtr()
AGXPHYSICS_EXPORT HollowConeInstance instance()
HollowConeModel ModelType
static agxData::ScalarAttributeT< agx::Real > * thicknessAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Pointer to a entity instance of type Physics.Geometry.HollowCone.
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT HollowConePtr & operator=(const agxData::EntityPtr &ptr)
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
agxData::EntityRef< HollowConePtr > HollowConeRef
bool isInstanceOf(agxData::EntityModel *model) const
HollowConeInstance InstanceType
AGXPHYSICS_EXPORT HollowConeSemantics * operator->()
AGXPHYSICS_EXPORT agx::Real & height()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
static HollowConeModel * instance()
AGXPHYSICS_EXPORT agx::Real & bottomRadius()