21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_SPHERE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_SPHERE_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 )
62 class SphereSemantics;
87 virtual void shutdownCleanup()
override;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
98 virtual void initAttributeAccessors()
override;
105 #ifndef AGX_PHYSICS_GEOMETRY_SPHERE_DATA_SET_OVERRIDE
106 #define AGX_PHYSICS_GEOMETRY_SPHERE_DATA_SET
110 SphereInstance operator[] (
size_t index);
124 virtual ~SphereData() {}
125 virtual void setNumElements(
agx::Index numElements)
override;
128 SphereData& operator= (
const SphereData&) {
return *
this; }
150 friend class SpherePtr;
151 friend class SphereInstance;
180 SphereData* getData();
181 const SphereData* getData()
const;
191 #ifdef AGX_GENERATED_TOLUA_WRAPPER
192 inline agx::Real const& getRadius()
const {
return (*this)->getRadius(); }
195 inline void setRadius(
agx::Real const& value) { (*this)->setRadius(value); }
210 SphereInstance(SphereData* data,
agx::Index index);
215 SphereData* getData();
216 const SphereData* getData()
const;
238 inline SphereInstance
agx::Physics::Geometry::SphereData::operator[] (
size_t index) {
return SphereInstance(
this, (
agx::Index)index); }
245 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
252 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
260 "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\'",
276 AGX_FORCE_INLINE SphereSemantics* SpherePtr::operator->() {
return (SphereSemantics* )
this; }
277 AGX_FORCE_INLINE const SphereSemantics* SpherePtr::operator->()
const {
return (
const SphereSemantics* )
this; }
282 AGX_FORCE_INLINE agx::Real const& SpherePtr::radius()
const { verifyIndex();
return getData()->radius[calculateIndex()]; }
291 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
298 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
307 AGX_FORCE_INLINE agx::Real const& SphereInstance::radius()
const { verifyIndex();
return getData()->radius[getIndex()]; }
318 AGX_TYPE_BINDING(
agx::Physics::Geometry::SphereInstance, "Physics.Geometry.SphereInstance")
321 # pragma warning(pop)
324 #undef AGX_ENTITY_WRAPPER
325 #undef AGX_ENTITY_NAMESPACE