21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER2D_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER2D_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
58 class GridTier2DModel;
61 class GridTier2DInstance;
62 class GridTier2DSemantics;
87 virtual void shutdownCleanup()
override;
100 virtual void configure(agx::TiXmlElement* eEntity)
override;
101 virtual void initAttributeAccessors()
override;
108 #ifndef AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER2D_DATA_SET_OVERRIDE 109 #define AGX_PHYSICS_HIERARCHICALGRID_GRIDTIER2D_DATA_SET 113 GridTier2DInstance operator[] (
size_t index);
133 virtual ~GridTier2DData() {}
134 virtual void setNumElements(
agx::Index numElements)
override;
137 GridTier2DData& operator= (
const GridTier2DData&) {
return *
this; }
152 agx::Real const& getBoundingRadius()
const;
160 void setBoundingRadius(
agx::Real const& value);
166 friend class GridTier2DInstance;
167 GridTier2DSemantics();
195 GridTier2DData* getData();
196 const GridTier2DData* getData()
const;
226 GridTier2DInstance();
227 GridTier2DInstance(GridTier2DData* data,
agx::Index index);
232 GridTier2DData* getData();
233 const GridTier2DData* getData()
const;
270 inline GridTier2DInstance
agx::Physics::HierarchicalGrid::GridTier2DData::operator[] (
size_t index) {
return GridTier2DInstance(
this, (
agx::Index)index); }
277 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
284 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
292 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
301 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
332 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
339 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
348 AGX_FORCE_INLINE agx::Real const& GridTier2DInstance::size()
const { verifyIndex();
return getData()->size[getIndex()]; }
351 AGX_FORCE_INLINE agx::Real const& GridTier2DInstance::invSize()
const { verifyIndex();
return getData()->invSize[getIndex()]; }
353 AGX_FORCE_INLINE agx::Real& GridTier2DInstance::boundingRadius() { verifyIndex();
return getData()->boundingRadius[getIndex()]; }
354 AGX_FORCE_INLINE agx::Real const& GridTier2DInstance::boundingRadius()
const { verifyIndex();
return getData()->boundingRadius[getIndex()]; }
368 AGX_TYPE_BINDING(agx::Physics::HierarchicalGrid::GridTier2DInstance,
"Physics.HierarchicalGrid.GridTier2DInstance")
371 # pragma warning(pop) 374 #undef AGX_ENTITY_WRAPPER 375 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT GridTier2DInstance instance()
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT agx::Real & size()
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXPHYSICS_EXPORT agx::GridCell2DTable *& cellTable()
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...
Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier2D.
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
GridTier2DModel ModelType
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::PointerAttributeT< agx::GridCell2DTable * > * cellTableAttribute
AGXPHYSICS_EXPORT GridTier2DPtr()
static agxData::ScalarAttributeT< agx::Real > * sizeAttribute
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::ScalarAttributeT< agx::Real > * invSizeAttribute
Contains classes for low level data storage for AGX.
static GridTier2DModel * instance()
Abstract description of the data attributes for the Physics.HierarchicalGrid.GridTier2D entity...
AGXPHYSICS_EXPORT GridTier2DSemantics * operator->()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT agx::Real & invSize()
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT GridTier2DPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real & boundingRadius()
GridTier2DData * getData()
GridTier2DInstance InstanceType
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::Real > * boundingRadiusAttribute