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; }
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\'",
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 AGXPHYSICS_EXPORT agx::UInt8 & tier()
AGXPHYSICS_EXPORT agx::UInt32 & searchCost()
static agxData::ScalarAttributeT< agx::Vec2f > * positionAttribute
AGXPHYSICS_EXPORT agx::Real & sizeAlignment()
static agxData::SharedAttributeT< agx::Real32 > * emptyThresholdAttribute
static agxData::ScalarAttributeT< agx::IndexRange32 > * collisionObjectsAttribute
agxData::EntityData * getData()
AGXPHYSICS_EXPORT agx::Vec2f & position()
static agxData::ScalarAttributeT< agx::UInt32 > * neighborsAttribute
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > children()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
Abstract representation of a value.
static agxData::ScalarAttributeT< agx::UInt64 > * linearIdAttribute
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
AGXPHYSICS_EXPORT agx::UInt8 & zoneType()
AGXPHYSICS_EXPORT agx::IndexRange32 & collisionObjects()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT Cell2DInstance instance()
static agxData::ScalarAttributeT< agx::Vec2i > * idAttribute
AGXPHYSICS_EXPORT agx::UInt32 & parent()
static agxData::ScalarAttributeT< agx::UInt32 > * parentAttribute
Type-specific Array used for fast access into the data held by a Buffer.
Cell2DInstance InstanceType
static agxData::ScalarAttributeT< agx::UInt8 > * zoneTypeAttribute
static agxData::ScalarAttributeT< agx::UInt8 > * tierAttribute
AGXPHYSICS_EXPORT agx::Real32 & emptyTime()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
AGXPHYSICS_EXPORT Cell2DPtr & operator=(const agxData::EntityPtr &ptr)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT Cell2DPtr()
AGXPHYSICS_EXPORT agx::Vec2i & id()
AGXPHYSICS_EXPORT agx::Real32 & emptyThreshold()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT Cell2DSemantics * operator->()
static agxData::ScalarAttributeT< agx::UInt32 > * childrenAttribute
static agxData::ScalarAttributeT< agx::UInt8 > * numChildrenAttribute
Pointer to a entity instance of type Physics.HierarchicalGrid.Cell2D.
static agxData::ScalarAttributeT< agx::UInt32 > * searchCostAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Abstract description of the data attributes for the Physics.HierarchicalGrid.Cell2D entity...
AGXPHYSICS_EXPORT agx::UInt8 & numChildren()
AGXPHYSICS_EXPORT agx::UInt8 & state()
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::SharedAttributeT< agx::Real > * sizeAlignmentAttribute
static Cell2DModel * instance()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > neighbors()
static agxData::ScalarAttributeT< agx::Real32 > * emptyTimeAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::UInt64 & linearId()
#define DOXYGEN_START_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::UInt8 > * stateAttribute