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;
92 virtual void shutdownCleanup()
override;
101 static const size_t internalZonesArraySize = 4;
110 virtual void configure(agx::TiXmlElement* eEntity)
override;
111 virtual void initAttributeAccessors()
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();
220 CornerZoneData* getData();
221 const CornerZoneData* getData()
const;
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()]; }
428 AGX_FORCE_INLINE CornerZoneInstance::CornerZoneInstance(CornerZoneData* data,
agx::Index index) : agxData::EntityInstance(data, index) {}
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
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...
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * diagonal1Attribute
static CornerZoneModel * instance()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::PointerAttributeT< agx::Job * > * jobAttribute
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
Abstract description of the data attributes for the Physics.HierarchicalGrid.CornerZone entity...
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
agx::String fullPath() const
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * diagonal2Attribute
static agxData::ArrayAttributeT< agx::UInt32 > * particleGeometryContactsAttribute
Type-specific Array used for fast access into the data held by a Buffer.
CornerZoneInstance InstanceType
static agxData::ArrayAttributeT< agx::UInt32 > * particleParticleContactsAttribute
static agxData::ArrayAttributeT< agx::UInt32 > * geometryGeometryContactsAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
CornerZoneModel ModelType
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
static agxData::ScalarAttributeT< agx::Vec3i > * idAttribute
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Physics.HierarchicalGrid.CornerZone.
AGXPHYSICS_EXPORT CornerZonePtr()
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * internalZonesAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()