21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CELL2D_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CELL2D_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 )
57 namespace HierarchicalGrid
64 class Cell2DSemantics;
89 virtual void shutdownCleanup()
override;
104 static const size_t childrenArraySize = 4;
107 static const size_t neighborsArraySize = 12;
115 virtual void configure(agx::TiXmlElement* eEntity)
override;
116 virtual void initAttributeAccessors()
override;
123 #ifndef AGX_PHYSICS_HIERARCHICALGRID_CELL2D_DATA_SET_OVERRIDE
124 #define AGX_PHYSICS_HIERARCHICALGRID_CELL2D_DATA_SET
128 Cell2DInstance operator[] (
size_t index);
142 static const size_t childrenArraySize = 4;
145 static const size_t neighborsArraySize = 12;
172 virtual ~Cell2DData() {}
173 virtual void setNumElements(
agx::Index numElements)
override;
174 virtual void synchronizeSharedAttribute(
agxData::Value* value)
override;
177 Cell2DData& operator= (
const Cell2DData&) {
return *
this; }
219 friend class Cell2DPtr;
220 friend class Cell2DInstance;
249 Cell2DData* getData();
250 const Cell2DData* getData()
const;
336 Cell2DInstance(Cell2DData* data,
agx::Index index);
341 Cell2DData* getData();
342 const Cell2DData* getData()
const;
434 inline Cell2DInstance
agx::Physics::HierarchicalGrid::Cell2DData::operator[] (
size_t index) {
return Cell2DInstance(
this, (
agx::Index)index); }
441 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
448 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
456 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
465 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
472 AGX_FORCE_INLINE Cell2DSemantics* Cell2DPtr::operator->() {
return (Cell2DSemantics* )
this; }
473 AGX_FORCE_INLINE const Cell2DSemantics* Cell2DPtr::operator->()
const {
return (
const Cell2DSemantics* )
this; }
484 AGX_FORCE_INLINE agx::Vec2f const& Cell2DPtr::position()
const { verifyIndex();
return getData()->position[calculateIndex()]; }
499 AGX_FORCE_INLINE agx::UInt8 const& Cell2DPtr::zoneType()
const { verifyIndex();
return getData()->zoneType[calculateIndex()]; }
510 AGX_FORCE_INLINE agx::UInt8 const& Cell2DPtr::numChildren()
const { verifyIndex();
return getData()->numChildren[calculateIndex()]; }
518 AGX_FORCE_INLINE agx::UInt32 const& Cell2DPtr::searchCost()
const { verifyIndex();
return getData()->searchCost[calculateIndex()]; }
533 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
540 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
555 AGX_FORCE_INLINE agx::Vec2f const& Cell2DInstance::position()
const { verifyIndex();
return getData()->position[getIndex()]; }
570 AGX_FORCE_INLINE agx::UInt8 const& Cell2DInstance::zoneType()
const { verifyIndex();
return getData()->zoneType[getIndex()]; }
581 AGX_FORCE_INLINE agx::UInt8 const& Cell2DInstance::numChildren()
const { verifyIndex();
return getData()->numChildren[getIndex()]; }
589 AGX_FORCE_INLINE agx::UInt32 const& Cell2DInstance::searchCost()
const { verifyIndex();
return getData()->searchCost[getIndex()]; }
595 AGX_FORCE_INLINE agx::Real const& Cell2DInstance::sizeAlignment()
const { verifyIndex();
return getData()->sizeAlignment; }
606 AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::Cell2DInstance, "Physics.HierarchicalGrid.Cell2DInstance")
609 # pragma warning(pop)
612 #undef AGX_ENTITY_WRAPPER
613 #undef AGX_ENTITY_NAMESPACE