21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CONE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_CONE_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 )
81 static ConePtr createInstance();
87 virtual void shutdownCleanup()
override;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
100 virtual void initAttributeAccessors()
override;
107 #ifndef AGX_PHYSICS_GEOMETRY_CONE_DATA_SET_OVERRIDE
108 #define AGX_PHYSICS_GEOMETRY_CONE_DATA_SET
112 ConeInstance operator[] (
size_t index);
130 virtual ~ConeData() {}
131 virtual void setNumElements(
agx::Index numElements)
override;
134 ConeData& operator= (
const ConeData&) {
return *
this; }
149 agx::Real const& getBottomRadius()
const;
155 void setTopRadius(
agx::Real const& value);
156 void setBottomRadius(
agx::Real const& value);
160 friend class ConePtr;
161 friend class ConeInstance;
191 const ConeData* getData()
const;
220 ConeInstance(ConeData* data,
agx::Index index);
226 const ConeData* getData()
const;
258 inline ConeInstance
agx::Physics::Geometry::ConeData::operator[] (
size_t index) {
return ConeInstance(
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 ConeSemantics* ConePtr::operator->() {
return (ConeSemantics* )
this; }
297 AGX_FORCE_INLINE const ConeSemantics* ConePtr::operator->()
const {
return (
const ConeSemantics* )
this; }
305 AGX_FORCE_INLINE agx::Real const& ConePtr::topRadius()
const { verifyIndex();
return getData()->topRadius[calculateIndex()]; }
308 AGX_FORCE_INLINE agx::Real const& ConePtr::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[calculateIndex()]; }
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\'",
336 AGX_FORCE_INLINE agx::Real const& ConeInstance::topRadius()
const { verifyIndex();
return getData()->topRadius[getIndex()]; }
339 AGX_FORCE_INLINE agx::Real const& ConeInstance::bottomRadius()
const { verifyIndex();
return getData()->bottomRadius[getIndex()]; }
353 # pragma warning(pop)
356 #undef AGX_ENTITY_WRAPPER
357 #undef AGX_ENTITY_NAMESPACE