21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_SHAPE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_SHAPE_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 )
54 namespace agx {
namespace Physics {
class GeometryPtr; }}
92 virtual void shutdownCleanup()
override;
108 virtual void configure(agx::TiXmlElement* eEntity)
override;
109 virtual void initAttributeAccessors()
override;
116 #ifndef AGX_PHYSICS_GEOMETRY_SHAPE_DATA_SET_OVERRIDE
117 #define AGX_PHYSICS_GEOMETRY_SHAPE_DATA_SET
121 ShapeInstance operator[] (
size_t index);
147 virtual ~ShapeData() {}
148 virtual void setNumElements(
agx::Index numElements)
override;
151 ShapeData& operator= (
const ShapeData&) {
return *
this; }
185 friend class ShapePtr;
186 friend class ShapeInstance;
215 ShapeData* getData();
216 const ShapeData* getData()
const;
265 ShapeInstance(ShapeData* data,
agx::Index index);
270 ShapeData* getData();
271 const ShapeData* getData()
const;
323 inline ShapeInstance
agx::Physics::Geometry::ShapeData::operator[] (
size_t index) {
return ShapeInstance(
this, (
agx::Index)index); }
330 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
337 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
345 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
354 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
361 AGX_FORCE_INLINE ShapeSemantics* ShapePtr::operator->() {
return (ShapeSemantics* )
this; }
362 AGX_FORCE_INLINE const ShapeSemantics* ShapePtr::operator->()
const {
return (
const ShapeSemantics* )
this; }
370 AGX_FORCE_INLINE agx::Bool const& ShapePtr::inGroup()
const { verifyIndex();
return getData()->inGroup[calculateIndex()]; }
382 AGX_FORCE_INLINE agx::UInt32 const& ShapePtr::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[calculateIndex()]; }
394 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
401 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
413 AGX_FORCE_INLINE agx::Bool const& ShapeInstance::inGroup()
const { verifyIndex();
return getData()->inGroup[getIndex()]; }
425 AGX_FORCE_INLINE agx::UInt32 const& ShapeInstance::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[getIndex()]; }
442 # pragma warning(pop)
445 #undef AGX_ENTITY_WRAPPER
446 #undef AGX_ENTITY_NAMESPACE