21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CORNERZONE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CORNERZONE_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 )
50 namespace agx {
class Job; }
52 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
53 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
54 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
60 namespace HierarchicalGrid
63 class CornerZoneModel;
66 class CornerZoneInstance;
67 class CornerZoneSemantics;
101 static const size_t internalZonesArraySize = 4;
110 virtual void configure(agx::TiXmlElement* eEntity)
override;
118 #ifndef AGX_PHYSICS_HIERARCHICALGRID_CORNERZONE_DATA_SET_OVERRIDE
119 #define AGX_PHYSICS_HIERARCHICALGRID_CORNERZONE_DATA_SET
123 CornerZoneInstance operator[] (
size_t index);
131 static const size_t internalZonesArraySize = 4;
152 virtual ~CornerZoneData() {}
153 virtual void setNumElements(
agx::Index numElements)
override;
156 CornerZoneData& operator= (
const CornerZoneData&) {
return *
this; }
186 void setJob(
agx::Job*
const& value);
190 friend class CornerZonePtr;
191 friend class CornerZoneInstance;
192 CornerZoneSemantics();
266 #ifdef AGX_GENERATED_TOLUA_WRAPPER
267 inline agx::Vec3i const& getId()
const {
return (*this)->getId(); }
273 inline agx::Job*
const& getJob()
const {
return (*this)->getJob(); }
276 inline void setId(
agx::Vec3i const& value) { (*this)->setId(value); }
282 inline void setJob(
agx::Job*
const& value) { (*this)->setJob(value); }
293 CornerZoneInstance();
294 CornerZoneInstance(CornerZoneData* data,
agx::Index index);
299 CornerZoneData* getData();
300 const CornerZoneData* getData()
const;
357 inline CornerZoneInstance
agx::Physics::HierarchicalGrid::CornerZoneData::operator[] (
size_t index) {
return CornerZoneInstance(
this, (
agx::Index)index); }
364 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
371 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
379 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
388 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
395 AGX_FORCE_INLINE CornerZoneSemantics* CornerZonePtr::operator->() {
return (CornerZoneSemantics* )
this; }
396 AGX_FORCE_INLINE const CornerZoneSemantics* CornerZonePtr::operator->()
const {
return (
const CornerZoneSemantics* )
this; }
424 AGX_FORCE_INLINE agx::Job*
const& CornerZonePtr::job()
const { verifyIndex();
return getData()->job[calculateIndex()]; }
433 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
440 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
472 AGX_FORCE_INLINE agx::Job*
const& CornerZoneInstance::job()
const { verifyIndex();
return getData()->job[getIndex()]; }
483 AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::CornerZoneInstance, "Physics.HierarchicalGrid.CornerZoneInstance")
486 # pragma warning(pop)
489 #undef AGX_ENTITY_WRAPPER
490 #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.
An abstract job/workblock representation, which allows work threads to execute arbitrary tasks.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.HierarchicalGrid.CornerZone entity.
void construct(agx::Physics::HierarchicalGrid::CornerZonePtr cornerZone)
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ArrayAttributeT< agx::UInt32 > * particleParticleContactsAttribute
virtual ~CornerZoneModel()
static CornerZonePtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
static CornerZoneModel * instance()
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * internalZonesAttribute
static agxData::ScalarAttributeT< agx::Vec3i > * idAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ArrayAttributeT< agx::UInt32 > * particleGeometryContactsAttribute
static agxData::PointerAttributeT< agx::Job * > * jobAttribute
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * diagonal2Attribute
CornerZoneModel(const agx::String &name="CornerZone")
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * diagonal1Attribute
static agxData::ArrayAttributeT< agx::UInt32 > * geometryGeometryContactsAttribute
virtual void construct(agxData::EntityPtr instance) override
virtual void configure(agx::TiXmlElement *eEntity) override
Pointer to a entity instance of type Physics.HierarchicalGrid.CornerZone.
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & particleGeometryContacts()
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::HierarchicalGrid::ContactZonePtr > const internalZones() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & particleParticleContacts()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & geometryGeometryContacts() const
CornerZoneInstance InstanceType
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr const & diagonal1() const
AGXPHYSICS_EXPORT const CornerZoneSemantics * operator->() const
AGXPHYSICS_EXPORT CornerZoneInstance instance()
CornerZoneData * getData()
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::HierarchicalGrid::ContactZonePtr > internalZones()
AGXPHYSICS_EXPORT CornerZoneSemantics * operator->()
AGXPHYSICS_EXPORT agx::Job *const & job() const
AGXPHYSICS_EXPORT CornerZonePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr const & diagonal2() const
CornerZoneModel ModelType
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr const & internalZones(size_t index) const
const CornerZoneData * getData() const
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & diagonal1()
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & internalZones(size_t index)
AGXPHYSICS_EXPORT agx::Vec3i const & id() const
AGXPHYSICS_EXPORT const CornerZoneInstance instance() const
AGXPHYSICS_EXPORT agx::Job *& job()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & particleParticleContacts() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & geometryGeometryContacts()
AGXPHYSICS_EXPORT CornerZonePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT CornerZonePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & diagonal2()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & particleGeometryContacts() const
AGXPHYSICS_EXPORT agx::Vec3i & id()
AGXPHYSICS_EXPORT CornerZonePtr()
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())