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; }
144 friend class MeshPtr;
145 friend class MeshInstance;
175 const MeshData* getData()
const;
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\'",
243 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
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\'",
289 # pragma warning(pop)
292 #undef AGX_ENTITY_WRAPPER
293 #undef AGX_ENTITY_NAMESPACE