21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CAPSULE_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GEOMETRY_CAPSULE_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 ) 61 class CapsuleInstance;
62 class CapsuleSemantics;
87 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
override;
106 #ifndef AGX_PHYSICS_GEOMETRY_CAPSULE_DATA_SET_OVERRIDE 107 #define AGX_PHYSICS_GEOMETRY_CAPSULE_DATA_SET 111 CapsuleInstance operator[] (
size_t index);
127 virtual ~CapsuleData() {}
128 virtual void setNumElements(
agx::Index numElements)
override;
131 CapsuleData& operator= (
const CapsuleData&) {
return *
this; }
156 friend class CapsuleInstance;
185 CapsuleData* getData();
186 const CapsuleData* getData()
const;
210 CapsuleInstance(CapsuleData* data,
agx::Index index);
215 CapsuleData* getData();
216 const CapsuleData* getData()
const;
243 inline CapsuleInstance
agx::Physics::Geometry::CapsuleData::operator[] (
size_t index) {
return CapsuleInstance(
this, (
agx::Index)index); }
250 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
257 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
265 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
274 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 AGX_FORCE_INLINE CapsuleInstance::CapsuleInstance(CapsuleData* data,
agx::Index index) : agx::Physics::Geometry::ShapeInstance(data, index) {}
299 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
306 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
315 AGX_FORCE_INLINE agx::Real const& CapsuleInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
318 AGX_FORCE_INLINE agx::Real const& CapsuleInstance::radius()
const { verifyIndex();
return getData()->radius[getIndex()]; }
329 AGX_TYPE_BINDING(agx::Physics::Geometry::CapsuleInstance,
"Physics.Geometry.CapsuleInstance")
332 # pragma warning(pop) 335 #undef AGX_ENTITY_WRAPPER 336 #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())
#define AGXPHYSICS_EXPORT
Pointer to a entity instance of type Physics.Geometry.Shape.
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
AGXPHYSICS_EXPORT CapsulePtr()
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT agx::Real & radius()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agx::Real > * radiusAttribute
static CapsuleModel * instance()
AGXPHYSICS_EXPORT CapsuleInstance instance()
Pointer to a entity instance of type Physics.Geometry.Capsule.
AGXPHYSICS_EXPORT agx::Real & height()
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
bool isInstanceOf(agxData::EntityModel *model) const
Abstract description of the data attributes for the Physics.Geometry.Capsule entity.
AGXPHYSICS_EXPORT CapsuleSemantics * operator->()
#define DOXYGEN_END_INTERNAL_BLOCK()
agxData::EntityRef< CapsulePtr > CapsuleRef
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT CapsulePtr & operator=(const agxData::EntityPtr &ptr)
CapsuleInstance InstanceType