21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CONE_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GEOMETRY_CONE_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 ) 81 static ConePtr createInstance();
87 virtual void shutdownCleanup()
override;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
100 virtual void initAttributeAccessors()
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);
161 friend class ConeInstance;
191 const ConeData* getData()
const;
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\'",
289 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
312 AGX_FORCE_INLINE ConeInstance::ConeInstance(ConeData* data,
agx::Index index) : agx::Physics::Geometry::ShapeInstance(data, index) {}
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()]; }
350 AGX_TYPE_BINDING(agx::Physics::Geometry::ConeInstance,
"Physics.Geometry.ConeInstance")
353 # pragma warning(pop) 356 #undef AGX_ENTITY_WRAPPER 357 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
AGXPHYSICS_EXPORT ConePtr & operator=(const agxData::EntityPtr &ptr)
agxData::EntityInstance instance()
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
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.
AGXPHYSICS_EXPORT agx::Real & topRadius()
#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())
agxData::EntityRef< ConePtr > ConeRef
#define AGXPHYSICS_EXPORT
Pointer to a entity instance of type Physics.Geometry.Shape.
Entity instance provides access to a single instance in an EntityStorage.
AGXPHYSICS_EXPORT ConePtr()
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
Pointer to a entity instance of type Physics.Geometry.Cone.
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::Real > * bottomRadiusAttribute
static agxData::ScalarAttributeT< agx::Real > * topRadiusAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT agx::Real & bottomRadius()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::Real & height()
Abstract description of the data attributes for the Physics.Geometry.Cone entity. ...
ConeInstance InstanceType
AGXPHYSICS_EXPORT ConeInstance instance()
bool isInstanceOf(agxData::EntityModel *model) const
static ConeModel * instance()
AGXPHYSICS_EXPORT ConeSemantics * operator->()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()