21#ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDOVERLAP_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_GRIDOVERLAP_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 )
54 namespace HierarchicalGrid
57 class GridOverlapModel;
58 class GridOverlapData;
60 class GridOverlapInstance;
61 class GridOverlapSemantics;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
105 #ifndef AGX_PHYSICS_HIERARCHICALGRID_GRIDOVERLAP_DATA_SET_OVERRIDE
106 #define AGX_PHYSICS_HIERARCHICALGRID_GRIDOVERLAP_DATA_SET
110 GridOverlapInstance operator[] (
size_t index);
126 virtual ~GridOverlapData() {}
127 virtual void setNumElements(
agx::Index numElements)
override;
130 GridOverlapData& operator= (
const GridOverlapData&) {
return *
this; }
149 void setCollisionObject1(
agx::UInt32 const& value);
150 void setCollisionObject2(
agx::UInt32 const& value);
154 friend class GridOverlapPtr;
155 friend class GridOverlapInstance;
156 GridOverlapSemantics();
205 GridOverlapInstance();
206 GridOverlapInstance(GridOverlapData* data,
agx::Index index);
211 GridOverlapData* getData();
212 const GridOverlapData* getData()
const;
239 inline GridOverlapInstance
agx::Physics::HierarchicalGrid::GridOverlapData::operator[] (
size_t index) {
return GridOverlapInstance(
this, (
agx::Index)index); }
246 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
253 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
262 EntityPtr::getModel()->fullPath().c_str(), GridOverlapModel::instance()->fullPath().c_str());
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
271 EntityPtr::getModel()->fullPath().c_str(), GridOverlapModel::instance()->fullPath().c_str());
277 AGX_FORCE_INLINE GridOverlapSemantics* GridOverlapPtr::operator->() {
return (GridOverlapSemantics* )
this; }
278 AGX_FORCE_INLINE const GridOverlapSemantics* GridOverlapPtr::operator->()
const {
return (
const GridOverlapSemantics* )
this; }
282 AGX_FORCE_INLINE agx::UInt32& GridOverlapPtr::collisionObject1() { verifyIndex();
return getData()->collisionObject1[calculateIndex()]; }
283 AGX_FORCE_INLINE agx::UInt32 const& GridOverlapPtr::collisionObject1()
const { verifyIndex();
return getData()->collisionObject1[calculateIndex()]; }
285 AGX_FORCE_INLINE agx::UInt32& GridOverlapPtr::collisionObject2() { verifyIndex();
return getData()->collisionObject2[calculateIndex()]; }
286 AGX_FORCE_INLINE agx::UInt32 const& GridOverlapPtr::collisionObject2()
const { verifyIndex();
return getData()->collisionObject2[calculateIndex()]; }
295 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
302 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
310 AGX_FORCE_INLINE agx::UInt32& GridOverlapInstance::collisionObject1() { verifyIndex();
return getData()->collisionObject1[getIndex()]; }
311 AGX_FORCE_INLINE agx::UInt32 const& GridOverlapInstance::collisionObject1()
const { verifyIndex();
return getData()->collisionObject1[getIndex()]; }
313 AGX_FORCE_INLINE agx::UInt32& GridOverlapInstance::collisionObject2() { verifyIndex();
return getData()->collisionObject2[getIndex()]; }
314 AGX_FORCE_INLINE agx::UInt32 const& GridOverlapInstance::collisionObject2()
const { verifyIndex();
return getData()->collisionObject2[getIndex()]; }
325AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::GridOverlapInstance, "Physics.HierarchicalGrid.GridOverlapInstance")
331#undef AGX_ENTITY_WRAPPER
332#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.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.HierarchicalGrid.GridOverlap entity.
GridOverlapModel(const agx::String &name="GridOverlap")
virtual void construct(agxData::EntityPtr instance) override
virtual ~GridOverlapModel()
static agxData::ScalarAttributeT< agx::UInt32 > * collisionObject1Attribute
virtual void configure(agx::TiXmlElement *eEntity) override
static agxData::EntityStorage * defaultStorage()
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::UInt32 > * collisionObject2Attribute
static GridOverlapPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static GridOverlapModel * instance()
virtual void initAttributeAccessors() override
void construct(agx::Physics::HierarchicalGrid::GridOverlapPtr gridOverlap)
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
Pointer to a entity instance of type Physics.HierarchicalGrid.GridOverlap.
AGXPHYSICS_EXPORT GridOverlapInstance instance()
AGXPHYSICS_EXPORT agx::UInt32 & collisionObject2()
AGXPHYSICS_EXPORT GridOverlapPtr()
AGXPHYSICS_EXPORT agx::UInt32 const & collisionObject2() const
GridOverlapData * getData()
GridOverlapModel ModelType
const GridOverlapData * getData() const
AGXPHYSICS_EXPORT GridOverlapPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT GridOverlapSemantics * operator->()
AGXPHYSICS_EXPORT agx::UInt32 const & collisionObject1() const
AGXPHYSICS_EXPORT GridOverlapPtr(agxData::EntityStorage *storage, agx::Index id)
GridOverlapInstance InstanceType
AGXPHYSICS_EXPORT agx::UInt32 & collisionObject1()
AGXPHYSICS_EXPORT GridOverlapPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT const GridOverlapInstance instance() const
AGXPHYSICS_EXPORT const GridOverlapSemantics * operator->() 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.