21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_MESH_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_MESH_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 )
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 #ifndef AGX_PHYSICS_GEOMETRY_MESH_DATA_SET_OVERRIDE
104 #define AGX_PHYSICS_GEOMETRY_MESH_DATA_SET
108 MeshInstance operator[] (
size_t index);
120 virtual ~MeshData() {}
121 virtual void setNumElements(
agx::Index numElements)
override;
124 MeshData& operator= (
const MeshData&) {
return *
this; }
144 friend class MeshPtr;
145 friend class MeshInstance;
189 MeshInstance(MeshData* data,
agx::Index index);
195 const MeshData* getData()
const;
212 inline MeshInstance
agx::Physics::Geometry::MeshData::operator[] (
size_t index) {
return MeshInstance(
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(), MeshModel::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(), MeshModel::instance()->fullPath().c_str());
250 AGX_FORCE_INLINE MeshSemantics* MeshPtr::operator->() {
return (MeshSemantics* )
this; }
251 AGX_FORCE_INLINE const MeshSemantics* MeshPtr::operator->()
const {
return (
const MeshSemantics* )
this; }
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\'",
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.Mesh entity.
virtual void configure(agx::TiXmlElement *eEntity) override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::EntityStorage * defaultStorage()
static MeshPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
void construct(agx::Physics::Geometry::MeshPtr mesh)
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual void construct(agxData::EntityPtr instance) override
static MeshModel * instance()
virtual void initAttributeAccessors() override
MeshModel(const agx::String &name="Mesh")
Pointer to a entity instance of type Physics.Geometry.Mesh.
AGXPHYSICS_EXPORT MeshSemantics * operator->()
AGXPHYSICS_EXPORT MeshPtr()
AGXPHYSICS_EXPORT const MeshSemantics * operator->() const
const MeshData * getData() const
AGXPHYSICS_EXPORT MeshPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT MeshPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT const MeshInstance instance() const
AGXPHYSICS_EXPORT MeshPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT MeshInstance instance()
MeshInstance InstanceType
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< MeshPtr > MeshRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.