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;
256 #ifdef AGX_GENERATED_TOLUA_WRAPPER
258 inline agx::Bool const& getInGroup()
const {
return (*this)->getInGroup(); }
262 inline agx::UInt32 const& getModifiedCount()
const {
return (*this)->getModifiedCount(); }
266 inline void setType(
agx::UInt8 const& value) { (*this)->setType(value); }
267 inline void setInGroup(
agx::Bool const& value) { (*this)->setInGroup(value); }
271 inline void setModifiedCount(
agx::UInt32 const& value) { (*this)->setModifiedCount(value); }
287 ShapeInstance(ShapeData* data,
agx::Index index);
292 ShapeData* getData();
293 const ShapeData* getData()
const;
345 inline ShapeInstance
agx::Physics::Geometry::ShapeData::operator[] (
size_t index) {
return ShapeInstance(
this, (
agx::Index)index); }
352 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
359 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
376 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
383 AGX_FORCE_INLINE ShapeSemantics* ShapePtr::operator->() {
return (ShapeSemantics* )
this; }
384 AGX_FORCE_INLINE const ShapeSemantics* ShapePtr::operator->()
const {
return (
const ShapeSemantics* )
this; }
392 AGX_FORCE_INLINE agx::Bool const& ShapePtr::inGroup()
const { verifyIndex();
return getData()->inGroup[calculateIndex()]; }
404 AGX_FORCE_INLINE agx::UInt32 const& ShapePtr::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[calculateIndex()]; }
416 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
423 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
435 AGX_FORCE_INLINE agx::Bool const& ShapeInstance::inGroup()
const { verifyIndex();
return getData()->inGroup[getIndex()]; }
447 AGX_FORCE_INLINE agx::UInt32 const& ShapeInstance::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[getIndex()]; }
464 # pragma warning(pop)
467 #undef AGX_ENTITY_WRAPPER
468 #undef AGX_ENTITY_NAMESPACE