21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_TIRESHAPE_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_TIRESHAPE_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 )
60 class TireShapeInstance;
61 class TireShapeSemantics;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 #ifndef AGX_PHYSICS_GEOMETRY_TIRESHAPE_DATA_SET_OVERRIDE
104 #define AGX_PHYSICS_GEOMETRY_TIRESHAPE_DATA_SET
105 class AGXPHYSICS_EXPORT TireShapeData :
public agx::Physics::Geometry::CylinderData
108 TireShapeInstance operator[] (
size_t index);
120 virtual ~TireShapeData() {}
121 virtual void setNumElements(
agx::Index numElements)
override;
124 TireShapeData& operator= (
const TireShapeData&) {
return *
this; }
144 friend class TireShapePtr;
145 friend class TireShapeInstance;
146 TireShapeSemantics();
189 TireShapeInstance(TireShapeData* data,
agx::Index index);
194 TireShapeData* getData();
195 const TireShapeData* getData()
const;
212 inline TireShapeInstance
agx::Physics::Geometry::TireShapeData::operator[] (
size_t index) {
return TireShapeInstance(
this, (
agx::Index)index); }
219 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
226 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
234 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
235 EntityPtr::getModel()->fullPath().c_str(), TireShapeModel::instance()->fullPath().c_str());
243 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
244 EntityPtr::getModel()->fullPath().c_str(), TireShapeModel::instance()->fullPath().c_str());
250 AGX_FORCE_INLINE TireShapeSemantics* TireShapePtr::operator->() {
return (TireShapeSemantics* )
this; }
251 AGX_FORCE_INLINE const TireShapeSemantics* TireShapePtr::operator->()
const {
return (
const TireShapeSemantics* )
this; }
257 AGX_FORCE_INLINE TireShapeInstance::TireShapeInstance(TireShapeData* data,
agx::Index index) :
agx::Physics::Geometry::CylinderInstance(data, index) {}
262 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
286AGX_TYPE_BINDING(
agx::Physics::Geometry::TireShapeInstance, "Physics.Geometry.TireShapeInstance")
292#undef AGX_ENTITY_WRAPPER
293#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.Cylinder entity.
Pointer to a entity instance of type Physics.Geometry.Cylinder.
Abstract description of the data attributes for the Physics.Geometry.TireShape entity.
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
TireShapeModel(const agx::String &name="TireShape")
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
void construct(agx::Physics::Geometry::TireShapePtr tireShape)
static TireShapePtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
virtual void construct(agxData::EntityPtr instance) override
static TireShapeModel * instance()
virtual void configure(agx::TiXmlElement *eEntity) override
virtual ~TireShapeModel()
virtual void initAttributeAccessors() override
Pointer to a entity instance of type Physics.Geometry.TireShape.
TireShapeInstance InstanceType
AGXPHYSICS_EXPORT const TireShapeInstance instance() const
AGXPHYSICS_EXPORT TireShapePtr(agxData::EntityStorage *storage, agx::Index id)
const TireShapeData * getData() const
AGXPHYSICS_EXPORT TireShapeSemantics * operator->()
AGXPHYSICS_EXPORT TireShapePtr(const agxData::EntityInstance &instance)
TireShapeData * getData()
AGXPHYSICS_EXPORT TireShapePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT TireShapeInstance instance()
AGXPHYSICS_EXPORT TireShapePtr()
AGXPHYSICS_EXPORT const TireShapeSemantics * operator->() const
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< TireShapePtr > TireShapeRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.