21#ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
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;
101 virtual void configure(agx::TiXmlElement* eEntity)
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; }
170 friend class GridTierPtr;
171 friend class GridTierInstance;
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\'",
308 EntityPtr::getModel()->fullPath().c_str(), GridTierModel::instance()->fullPath().c_str());
316 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
317 EntityPtr::getModel()->fullPath().c_str(), GridTierModel::instance()->fullPath().c_str());
323 AGX_FORCE_INLINE GridTierSemantics* GridTierPtr::operator->() {
return (GridTierSemantics* )
this; }
324 AGX_FORCE_INLINE const GridTierSemantics* GridTierPtr::operator->()
const {
return (
const GridTierSemantics* )
this; }
332 AGX_FORCE_INLINE agx::Real const& GridTierPtr::invSize()
const { verifyIndex();
return getData()->invSize[calculateIndex()]; }
335 AGX_FORCE_INLINE agx::Real32 const& GridTierPtr::boundingRadius()
const { verifyIndex();
return getData()->boundingRadius[calculateIndex()]; }
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()]; }
389AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::GridTierInstance, "Physics.HierarchicalGrid.GridTierInstance")
395#undef AGX_ENTITY_WRAPPER
396#undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.HierarchicalGrid.GridTier entity.
virtual void configure(agx::TiXmlElement *eEntity) override
static GridTierPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
static agxData::ScalarAttributeT< agx::Real32 > * boundingRadiusAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::Real > * invSizeAttribute
GridTierModel(const agx::String &name="GridTier")
static agxData::ScalarAttributeT< agx::Real > * sizeAttribute
void construct(agx::Physics::HierarchicalGrid::GridTierPtr gridTier)
virtual void construct(agxData::EntityPtr instance) override
virtual void initAttributeAccessors() override
static agxData::PointerAttributeT< agx::ContactZoneTable * > * zoneTableAttribute
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static GridTierModel * instance()
static agxData::PointerAttributeT< agx::GridCellTable * > * cellTableAttribute
Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier.
AGXPHYSICS_EXPORT agx::Real const & size() const
AGXPHYSICS_EXPORT agx::Real32 & boundingRadius()
AGXPHYSICS_EXPORT GridTierPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Real const & invSize() const
AGXPHYSICS_EXPORT agx::ContactZoneTable *const & zoneTable() const
AGXPHYSICS_EXPORT agx::ContactZoneTable *& zoneTable()
AGXPHYSICS_EXPORT const GridTierSemantics * operator->() const
AGXPHYSICS_EXPORT const GridTierInstance instance() const
AGXPHYSICS_EXPORT GridTierPtr()
AGXPHYSICS_EXPORT GridTierPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT GridTierSemantics * operator->()
AGXPHYSICS_EXPORT agx::Real & invSize()
AGXPHYSICS_EXPORT GridTierInstance instance()
GridTierInstance InstanceType
AGXPHYSICS_EXPORT agx::GridCellTable *const & cellTable() const
AGXPHYSICS_EXPORT agx::Real32 const & boundingRadius() const
AGXPHYSICS_EXPORT agx::GridCellTable *& cellTable()
AGXPHYSICS_EXPORT GridTierPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & size()
const GridTierData * getData() const
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.