21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_CONVEX_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_CONVEX_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 )
61 class ConvexSemantics;
86 virtual void shutdownCleanup()
override;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
96 virtual void initAttributeAccessors()
override;
103 #ifndef AGX_PHYSICS_GEOMETRY_CONVEX_DATA_SET_OVERRIDE
104 #define AGX_PHYSICS_GEOMETRY_CONVEX_DATA_SET
108 ConvexInstance operator[] (
size_t index);
120 virtual ~ConvexData() {}
121 virtual void setNumElements(
agx::Index numElements)
override;
124 ConvexData& operator= (
const ConvexData&) {
return *
this; }
144 friend class ConvexPtr;
145 friend class ConvexInstance;
174 ConvexData* getData();
175 const ConvexData* getData()
const;
180 #ifdef AGX_GENERATED_TOLUA_WRAPPER
197 ConvexInstance(ConvexData* data,
agx::Index index);
202 ConvexData* getData();
203 const ConvexData* getData()
const;
220 inline ConvexInstance
agx::Physics::Geometry::ConvexData::operator[] (
size_t index) {
return ConvexInstance(
this, (
agx::Index)index); }
227 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
234 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
242 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
251 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
258 AGX_FORCE_INLINE ConvexSemantics* ConvexPtr::operator->() {
return (ConvexSemantics* )
this; }
259 AGX_FORCE_INLINE const ConvexSemantics* ConvexPtr::operator->()
const {
return (
const ConvexSemantics* )
this; }
265 AGX_FORCE_INLINE ConvexInstance::ConvexInstance(ConvexData* data,
agx::Index index) :
agx::Physics::Geometry::TrimeshInstance(data, index) {}
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
277 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 AGX_TYPE_BINDING(
agx::Physics::Geometry::ConvexInstance, "Physics.Geometry.ConvexInstance")
297 # pragma warning(pop)
300 #undef AGX_ENTITY_WRAPPER
301 #undef AGX_ENTITY_NAMESPACE