21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CELL_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CELL_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 )
53 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
59 namespace HierarchicalGrid
85 static CellPtr createInstance();
91 virtual void shutdownCleanup()
override;
105 static const size_t childrenArraySize = 8;
108 static const size_t neighborsArraySize = 32;
121 virtual void configure(agx::TiXmlElement* eEntity)
override;
122 virtual void initAttributeAccessors()
override;
129 #ifndef AGX_PHYSICS_HIERARCHICALGRID_CELL_DATA_SET_OVERRIDE
130 #define AGX_PHYSICS_HIERARCHICALGRID_CELL_DATA_SET
134 CellInstance operator[] (
size_t index);
147 static const size_t childrenArraySize = 8;
150 static const size_t neighborsArraySize = 32;
178 typedef agx::Real reorderingFrequencyType;
186 virtual ~CellData() {}
187 virtual void setNumElements(
agx::Index numElements)
override;
188 virtual void synchronizeSharedAttribute(
agxData::Value* value)
override;
191 CellData& operator= (
const CellData&) {
return *
this; }
225 void setPosition(
agx::Vec3 const& value);
239 friend class CellPtr;
240 friend class CellInstance;
270 const CellData* getData()
const;
376 CellInstance(CellData* data,
agx::Index index);
382 const CellData* getData()
const;
473 agx::Real const& reorderingFrequency()
const;
494 inline CellInstance
agx::Physics::HierarchicalGrid::CellData::operator[] (
size_t index) {
return CellInstance(
this, (
agx::Index)index); }
501 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
508 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
516 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
525 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
532 AGX_FORCE_INLINE CellSemantics* CellPtr::operator->() {
return (CellSemantics* )
this; }
533 AGX_FORCE_INLINE const CellSemantics* CellPtr::operator->()
const {
return (
const CellSemantics* )
this; }
547 AGX_FORCE_INLINE agx::Vec3 const& CellPtr::position()
const { verifyIndex();
return getData()->position[calculateIndex()]; }
567 AGX_FORCE_INLINE agx::UInt8 const& CellPtr::numChildren()
const { verifyIndex();
return getData()->numChildren[calculateIndex()]; }
578 AGX_FORCE_INLINE agx::UInt32 const& CellPtr::sortedIndex()
const { verifyIndex();
return getData()->sortedIndex[calculateIndex()]; }
593 AGX_FORCE_INLINE agx::Real const& CellPtr::reorderingFrequency()
const { verifyIndex();
return getData()->reorderingFrequency; }
605 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
612 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
630 AGX_FORCE_INLINE agx::Vec3 const& CellInstance::position()
const { verifyIndex();
return getData()->position[getIndex()]; }
650 AGX_FORCE_INLINE agx::UInt8 const& CellInstance::numChildren()
const { verifyIndex();
return getData()->numChildren[getIndex()]; }
661 AGX_FORCE_INLINE agx::UInt32 const& CellInstance::sortedIndex()
const { verifyIndex();
return getData()->sortedIndex[getIndex()]; }
675 AGX_FORCE_INLINE agx::Real& CellInstance::reorderingFrequency() { verifyIndex();
return getData()->reorderingFrequency; }
676 AGX_FORCE_INLINE agx::Real const& CellInstance::reorderingFrequency()
const { verifyIndex();
return getData()->reorderingFrequency; }
679 AGX_FORCE_INLINE agx::Real const& CellInstance::sizeAlignment()
const { verifyIndex();
return getData()->sizeAlignment; }
690 AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::CellInstance, "Physics.HierarchicalGrid.CellInstance")
693 # pragma warning(pop)
696 #undef AGX_ENTITY_WRAPPER
697 #undef AGX_ENTITY_NAMESPACE