21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_BOX_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_BOX_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 BoxPtr createInstance();
87 virtual void shutdownCleanup()
override;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
98 virtual void initAttributeAccessors()
override;
105 #ifndef AGX_PHYSICS_GEOMETRY_BOX_DATA_SET_OVERRIDE
106 #define AGX_PHYSICS_GEOMETRY_BOX_DATA_SET
110 BoxInstance operator[] (
size_t index);
124 virtual ~BoxData() {}
125 virtual void setNumElements(
agx::Index numElements)
override;
128 BoxData& operator= (
const BoxData&) {
return *
this; }
146 void setHalfExtents(
agx::Vec3 const& value);
151 friend class BoxInstance;
181 const BoxData* getData()
const;
206 const BoxData* getData()
const;
228 inline BoxInstance
agx::Physics::Geometry::BoxData::operator[] (
size_t index) {
return BoxInstance(
this, (
agx::Index)index); }
235 "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\'",
250 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
259 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
266 AGX_FORCE_INLINE BoxSemantics* BoxPtr::operator->() {
return (BoxSemantics* )
this; }
267 AGX_FORCE_INLINE const BoxSemantics* BoxPtr::operator->()
const {
return (
const BoxSemantics* )
this; }
272 AGX_FORCE_INLINE agx::Vec3 const& BoxPtr::halfExtents()
const { verifyIndex();
return getData()->halfExtents[calculateIndex()]; }
281 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
288 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
297 AGX_FORCE_INLINE agx::Vec3 const& BoxInstance::halfExtents()
const { verifyIndex();
return getData()->halfExtents[getIndex()]; }
311 # pragma warning(pop)
314 #undef AGX_ENTITY_WRAPPER
315 #undef AGX_ENTITY_NAMESPACE