21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_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 )
58 class HollowCylinderModel;
59 class HollowCylinderData;
60 class HollowCylinderPtr;
61 class HollowCylinderInstance;
62 class HollowCylinderSemantics;
87 virtual void shutdownCleanup()
override;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
100 virtual void initAttributeAccessors()
override;
107 #ifndef AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_DATA_SET_OVERRIDE
108 #define AGX_PHYSICS_GEOMETRY_HOLLOWCYLINDER_DATA_SET
109 class AGXPHYSICS_EXPORT HollowCylinderData :
public agx::Physics::Geometry::ShapeData
112 HollowCylinderInstance operator[] (
size_t index);
127 HollowCylinderData();
130 virtual ~HollowCylinderData() {}
131 virtual void setNumElements(
agx::Index numElements)
override;
134 HollowCylinderData& operator= (
const HollowCylinderData&) {
return *
this; }
156 void setThickness(
agx::Real const& value);
160 friend class HollowCylinderPtr;
161 friend class HollowCylinderInstance;
162 HollowCylinderSemantics();
190 HollowCylinderData* getData();
191 const HollowCylinderData* getData()
const;
219 HollowCylinderInstance();
220 HollowCylinderInstance(HollowCylinderData* data,
agx::Index index);
225 HollowCylinderData* getData();
226 const HollowCylinderData* getData()
const;
258 inline HollowCylinderInstance
agx::Physics::Geometry::HollowCylinderData::operator[] (
size_t index) {
return HollowCylinderInstance(
this, (
agx::Index)index); }
265 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
272 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
280 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
289 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
296 AGX_FORCE_INLINE HollowCylinderSemantics* HollowCylinderPtr::operator->() {
return (HollowCylinderSemantics* )
this; }
297 AGX_FORCE_INLINE const HollowCylinderSemantics* HollowCylinderPtr::operator->()
const {
return (
const HollowCylinderSemantics* )
this; }
302 AGX_FORCE_INLINE agx::Real const& HollowCylinderPtr::height()
const { verifyIndex();
return getData()->height[calculateIndex()]; }
305 AGX_FORCE_INLINE agx::Real const& HollowCylinderPtr::radius()
const { verifyIndex();
return getData()->radius[calculateIndex()]; }
307 AGX_FORCE_INLINE agx::Real& HollowCylinderPtr::thickness() { verifyIndex();
return getData()->thickness[calculateIndex()]; }
308 AGX_FORCE_INLINE agx::Real const& HollowCylinderPtr::thickness()
const { verifyIndex();
return getData()->thickness[calculateIndex()]; }
312 AGX_FORCE_INLINE HollowCylinderInstance::HollowCylinderInstance(HollowCylinderData* data,
agx::Index index) :
agx::Physics::Geometry::ShapeInstance(data, index) {}
317 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
324 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
333 AGX_FORCE_INLINE agx::Real const& HollowCylinderInstance::height()
const { verifyIndex();
return getData()->height[getIndex()]; }
336 AGX_FORCE_INLINE agx::Real const& HollowCylinderInstance::radius()
const { verifyIndex();
return getData()->radius[getIndex()]; }
338 AGX_FORCE_INLINE agx::Real& HollowCylinderInstance::thickness() { verifyIndex();
return getData()->thickness[getIndex()]; }
339 AGX_FORCE_INLINE agx::Real const& HollowCylinderInstance::thickness()
const { verifyIndex();
return getData()->thickness[getIndex()]; }
350 AGX_TYPE_BINDING(
agx::Physics::Geometry::HollowCylinderInstance, "Physics.Geometry.HollowCylinderInstance")
353 # pragma warning(pop)
356 #undef AGX_ENTITY_WRAPPER
357 #undef AGX_ENTITY_NAMESPACE