21#ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CORNERZONE_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CORNERZONE_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 )
50namespace agx {
class Job; }
52namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
53namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
54namespace 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();
271 CornerZoneInstance();
272 CornerZoneInstance(CornerZoneData* data,
agx::Index index);
277 CornerZoneData* getData();
278 const CornerZoneData* getData()
const;
335 inline CornerZoneInstance
agx::Physics::HierarchicalGrid::CornerZoneData::operator[] (
size_t index) {
return CornerZoneInstance(
this, (
agx::Index)index); }
342 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
349 "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\'",
358 EntityPtr::getModel()->fullPath().c_str(), CornerZoneModel::instance()->fullPath().c_str());
366 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 EntityPtr::getModel()->fullPath().c_str(), CornerZoneModel::instance()->fullPath().c_str());
373 AGX_FORCE_INLINE CornerZoneSemantics* CornerZonePtr::operator->() {
return (CornerZoneSemantics* )
this; }
374 AGX_FORCE_INLINE const CornerZoneSemantics* CornerZonePtr::operator->()
const {
return (
const CornerZoneSemantics* )
this; }
402 AGX_FORCE_INLINE agx::Job*
const& CornerZonePtr::job()
const { verifyIndex();
return getData()->job[calculateIndex()]; }
411 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
418 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
450 AGX_FORCE_INLINE agx::Job*
const& CornerZoneInstance::job()
const { verifyIndex();
return getData()->job[getIndex()]; }
461AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::CornerZoneInstance, "Physics.HierarchicalGrid.CornerZoneInstance")
467#undef AGX_ENTITY_WRAPPER
468#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.
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)
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.
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 CornerZoneModel * instance()
static agxData::EntityStorage * defaultStorage()
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
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
Pointer to a entity instance of type Physics.HierarchicalGrid.CornerZone.
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::HierarchicalGrid::ContactZonePtr > const internalZones() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & geometryGeometryContacts() const
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & diagonal1()
CornerZoneInstance InstanceType
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr const & internalZones(size_t index) const
AGXPHYSICS_EXPORT agx::Vec3i const & id() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & particleParticleContacts()
AGXPHYSICS_EXPORT CornerZoneInstance instance()
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::HierarchicalGrid::ContactZonePtr > internalZones()
AGXPHYSICS_EXPORT CornerZonePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT const CornerZoneSemantics * operator->() const
CornerZoneModel ModelType
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & particleGeometryContacts()
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & diagonal2()
AGXPHYSICS_EXPORT CornerZoneSemantics * operator->()
AGXPHYSICS_EXPORT agx::Vec3i & id()
const CornerZoneData * getData() const
AGXPHYSICS_EXPORT const CornerZoneInstance instance() const
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & geometryGeometryContacts()
AGXPHYSICS_EXPORT agx::Job *& job()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & particleParticleContacts() const
AGXPHYSICS_EXPORT agx::Job *const & job() const
AGXPHYSICS_EXPORT CornerZonePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT CornerZonePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & internalZones(size_t index)
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr const & diagonal2() const
CornerZoneData * getData()
AGXPHYSICS_EXPORT CornerZonePtr()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > const & particleGeometryContacts() const
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr const & diagonal1() 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.