21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER_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 ) 55 namespace HierarchicalGrid
61 class GridTierInstance;
62 class GridTierSemantics;
87 virtual void shutdownCleanup()
override;
101 virtual void configure(agx::TiXmlElement* eEntity)
override;
102 virtual void initAttributeAccessors()
override;
109 #ifndef AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER_DATA_SET_OVERRIDE 110 #define AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER_DATA_SET 114 GridTierInstance operator[] (
size_t index);
136 virtual ~GridTierData() {}
137 virtual void setNumElements(
agx::Index numElements)
override;
140 GridTierData& operator= (
const GridTierData&) {
return *
this; }
171 friend class GridTierInstance;
200 GridTierData* getData();
201 const GridTierData* getData()
const;
237 GridTierInstance(GridTierData* data,
agx::Index index);
242 GridTierData* getData();
243 const GridTierData* getData()
const;
285 inline GridTierInstance
agx::Physics::HierarchicalGrid::GridTierData::operator[] (
size_t index) {
return GridTierInstance(
this, (
agx::Index)index); }
292 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
299 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
307 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
316 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
350 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
357 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
369 AGX_FORCE_INLINE agx::Real const& GridTierInstance::invSize()
const { verifyIndex();
return getData()->invSize[getIndex()]; }
372 AGX_FORCE_INLINE agx::Real32 const& GridTierInstance::boundingRadius()
const { verifyIndex();
return getData()->boundingRadius[getIndex()]; }
389 AGX_TYPE_BINDING(agx::Physics::HierarchicalGrid::GridTierInstance,
"Physics.HierarchicalGrid.GridTierInstance")
392 # pragma warning(pop) 395 #undef AGX_ENTITY_WRAPPER 396 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::Real & invSize()
static agxData::ScalarAttributeT< agx::Real > * sizeAttribute
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
AGXPHYSICS_EXPORT GridTierSemantics * operator->()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
AGXPHYSICS_EXPORT GridTierInstance instance()
#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...
AGXPHYSICS_EXPORT agx::Real32 & boundingRadius()
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT agx::GridCellTable *& cellTable()
static agxData::PointerAttributeT< agx::GridCellTable * > * cellTableAttribute
GridTierInstance InstanceType
static GridTierModel * instance()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static agxData::PointerAttributeT< agx::ContactZoneTable * > * zoneTableAttribute
static agxData::ScalarAttributeT< agx::Real > * invSizeAttribute
Contains classes for low level data storage for AGX.
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.GridTier entity...
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::ContactZoneTable *& zoneTable()
static agxData::ScalarAttributeT< agx::Real32 > * boundingRadiusAttribute
Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier.
Inheritance with partial specialization due to bug with ref_ptr containers.
AGXPHYSICS_EXPORT GridTierPtr & operator=(const agxData::EntityPtr &ptr)
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT GridTierPtr()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::Real & size()