21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_MESH_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_MESH_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 )
80 static MeshPtr createInstance();
86 virtual void shutdownCleanup()
override;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
96 virtual void initAttributeAccessors()
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; }
132 class
AGXPHYSICS_EXPORT MeshSemantics : public agx::Physics::Geometry::ShapeSemantics
144 friend class MeshPtr;
145 friend class MeshInstance;
175 const MeshData* getData()
const;
180 #ifdef AGX_GENERATED_TOLUA_WRAPPER
193 class
AGXPHYSICS_EXPORT MeshInstance : public agx::Physics::Geometry::ShapeInstance
197 MeshInstance(MeshData* data,
agx::Index index);
203 const MeshData* getData()
const;
220 inline MeshInstance agx::Physics::Geometry::MeshData::operator[] (
size_t index) {
return MeshInstance(
this, (
agx::Index)index); }
227 "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\'",
242 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
251 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
258 AGX_FORCE_INLINE MeshSemantics* MeshPtr::operator->() {
return (MeshSemantics* )
this; }
259 AGX_FORCE_INLINE const MeshSemantics* MeshPtr::operator->()
const {
return (
const MeshSemantics* )
this; }
265 AGX_FORCE_INLINE MeshInstance::MeshInstance(MeshData* data,
agx::Index index) : agx::Physics::Geometry::ShapeInstance(data, index) {}
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
277 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 AGX_TYPE_BINDING(agx::Physics::Geometry::MeshInstance, "Physics.Geometry.MeshInstance")
297 # pragma warning(pop)
300 #undef AGX_ENTITY_WRAPPER
301 #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()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#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)
agx::String fullPath() const
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
AGXPHYSICS_EXPORT MeshPtr()
static MeshModel * instance()
MeshInstance InstanceType
Abstract description of the data attributes for the Physics.Geometry.Mesh entity. ...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityRef< MeshPtr > MeshRef
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Pointer to a entity instance of type Physics.Geometry.Mesh.