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;
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;
231 #ifdef AGX_GENERATED_TOLUA_WRAPPER
232 inline agx::Real const& getSize()
const {
return (*this)->getSize(); }
233 inline agx::Real const& getInvSize()
const {
return (*this)->getInvSize(); }
234 inline agx::Real32 const& getBoundingRadius()
const {
return (*this)->getBoundingRadius(); }
235 inline agx::GridCellTable*
const& getCellTable()
const {
return (*this)->getCellTable(); }
239 inline void setSize(
agx::Real const& value) { (*this)->setSize(value); }
240 inline void setInvSize(
agx::Real const& value) { (*this)->setInvSize(value); }
241 inline void setBoundingRadius(
agx::Real32 const& value) { (*this)->setBoundingRadius(value); }
242 inline void setCellTable(
agx::GridCellTable*
const& value) { (*this)->setCellTable(value); }
255 GridTierInstance(GridTierData* data,
agx::Index index);
260 GridTierData* getData();
261 const GridTierData* getData()
const;
303 inline GridTierInstance
agx::Physics::HierarchicalGrid::GridTierData::operator[] (
size_t index) {
return GridTierInstance(
this, (
agx::Index)index); }
310 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
317 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
325 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
334 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
341 AGX_FORCE_INLINE GridTierSemantics* GridTierPtr::operator->() {
return (GridTierSemantics* )
this; }
342 AGX_FORCE_INLINE const GridTierSemantics* GridTierPtr::operator->()
const {
return (
const GridTierSemantics* )
this; }
350 AGX_FORCE_INLINE agx::Real const& GridTierPtr::invSize()
const { verifyIndex();
return getData()->invSize[calculateIndex()]; }
353 AGX_FORCE_INLINE agx::Real32 const& GridTierPtr::boundingRadius()
const { verifyIndex();
return getData()->boundingRadius[calculateIndex()]; }
368 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
375 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
387 AGX_FORCE_INLINE agx::Real const& GridTierInstance::invSize()
const { verifyIndex();
return getData()->invSize[getIndex()]; }
390 AGX_FORCE_INLINE agx::Real32 const& GridTierInstance::boundingRadius()
const { verifyIndex();
return getData()->boundingRadius[getIndex()]; }
407 AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::GridTierInstance, "Physics.HierarchicalGrid.GridTierInstance")
410 # pragma warning(pop)
413 #undef AGX_ENTITY_WRAPPER
414 #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...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
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.
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
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::EntityStorage * defaultStorage()
static agxData::ScalarAttributeT< agx::Real > * invSizeAttribute
GridTierModel(const agx::String &name="GridTier")
static agxData::ScalarAttributeT< agx::Real > * sizeAttribute
static GridTierModel * instance()
void construct(agx::Physics::HierarchicalGrid::GridTierPtr gridTier)
virtual void construct(agxData::EntityPtr instance) override
virtual void initAttributeAccessors() override
static agxData::PointerAttributeT< agx::ContactZoneTable * > * zoneTableAttribute
static agxData::PointerAttributeT< agx::GridCellTable * > * cellTableAttribute
Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier.
AGXPHYSICS_EXPORT GridTierPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Real & invSize()
AGXPHYSICS_EXPORT agx::ContactZoneTable *const & zoneTable() const
AGXPHYSICS_EXPORT const GridTierSemantics * operator->() const
const GridTierData * getData() const
AGXPHYSICS_EXPORT agx::Real & size()
AGXPHYSICS_EXPORT const GridTierInstance instance() const
AGXPHYSICS_EXPORT GridTierPtr()
AGXPHYSICS_EXPORT GridTierSemantics * operator->()
AGXPHYSICS_EXPORT agx::Real const & invSize() const
AGXPHYSICS_EXPORT agx::GridCellTable *const & cellTable() const
AGXPHYSICS_EXPORT agx::Real32 & boundingRadius()
AGXPHYSICS_EXPORT agx::Real32 const & boundingRadius() const
AGXPHYSICS_EXPORT GridTierPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT GridTierInstance instance()
AGXPHYSICS_EXPORT agx::GridCellTable *& cellTable()
GridTierInstance InstanceType
AGXPHYSICS_EXPORT agx::ContactZoneTable *& zoneTable()
AGXPHYSICS_EXPORT GridTierPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Real const & size() 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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())