21#ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONE_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONE_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 )
55namespace agx {
class Job; }
57namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class CellPtr; }}}
58namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class GridTierPtr; }}}
59namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZoneDependencyPtr; }}}
60namespace agx {
namespace Physics {
class SolveGroupPtr; }}
66 namespace HierarchicalGrid
69 class ContactZoneModel;
70 class ContactZoneData;
72 class ContactZoneInstance;
73 class ContactZoneSemantics;
122 virtual void configure(agx::TiXmlElement* eEntity)
override;
130 #ifndef AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONE_DATA_SET_OVERRIDE
131 #define AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONE_DATA_SET
135 ContactZoneInstance operator[] (
size_t index);
177 virtual ~ContactZoneData() {}
178 virtual void setNumElements(
agx::Index numElements)
override;
181 ContactZoneData& operator= (
const ContactZoneData&) {
return *
this; }
226 void setJob(
agx::Job*
const& value);
231 friend class ContactZonePtr;
232 friend class ContactZoneInstance;
233 ContactZoneSemantics();
347 ContactZoneInstance();
348 ContactZoneInstance(ContactZoneData* data,
agx::Index index);
353 ContactZoneData* getData();
354 const ContactZoneData* getData()
const;
446 inline ContactZoneInstance
agx::Physics::HierarchicalGrid::ContactZoneData::operator[] (
size_t index) {
return ContactZoneInstance(
this, (
agx::Index)index); }
453 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
460 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
468 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
469 EntityPtr::getModel()->fullPath().c_str(), ContactZoneModel::instance()->fullPath().c_str());
477 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
478 EntityPtr::getModel()->fullPath().c_str(), ContactZoneModel::instance()->fullPath().c_str());
484 AGX_FORCE_INLINE ContactZoneSemantics* ContactZonePtr::operator->() {
return (ContactZoneSemantics* )
this; }
485 AGX_FORCE_INLINE const ContactZoneSemantics* ContactZonePtr::operator->()
const {
return (
const ContactZoneSemantics* )
this; }
498 AGX_FORCE_INLINE agx::UInt32& ContactZonePtr::totNumContacts() { verifyIndex();
return getData()->totNumContacts[calculateIndex()]; }
499 AGX_FORCE_INLINE agx::UInt32 const& ContactZonePtr::totNumContacts()
const { verifyIndex();
return getData()->totNumContacts[calculateIndex()]; }
501 AGX_FORCE_INLINE agx::AtomicValue& ContactZonePtr::numParticleParticleContacts() { verifyIndex();
return getData()->numParticleParticleContacts[calculateIndex()]; }
502 AGX_FORCE_INLINE agx::AtomicValue const& ContactZonePtr::numParticleParticleContacts()
const { verifyIndex();
return getData()->numParticleParticleContacts[calculateIndex()]; }
504 AGX_FORCE_INLINE agx::AtomicValue& ContactZonePtr::numParticleGeometryContacts() { verifyIndex();
return getData()->numParticleGeometryContacts[calculateIndex()]; }
505 AGX_FORCE_INLINE agx::AtomicValue const& ContactZonePtr::numParticleGeometryContacts()
const { verifyIndex();
return getData()->numParticleGeometryContacts[calculateIndex()]; }
508 AGX_FORCE_INLINE agx::AtomicValue const& ContactZonePtr::numGeometryContacts()
const { verifyIndex();
return getData()->numGeometryContacts[calculateIndex()]; }
529 AGX_FORCE_INLINE agx::Job*
const& ContactZonePtr::job()
const { verifyIndex();
return getData()->job[calculateIndex()]; }
532 AGX_FORCE_INLINE agx::Vec4f const& ContactZonePtr::color()
const { verifyIndex();
return getData()->color[calculateIndex()]; }
541 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
548 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
565 AGX_FORCE_INLINE agx::UInt32& ContactZoneInstance::totNumContacts() { verifyIndex();
return getData()->totNumContacts[getIndex()]; }
566 AGX_FORCE_INLINE agx::UInt32 const& ContactZoneInstance::totNumContacts()
const { verifyIndex();
return getData()->totNumContacts[getIndex()]; }
568 AGX_FORCE_INLINE agx::AtomicValue& ContactZoneInstance::numParticleParticleContacts() { verifyIndex();
return getData()->numParticleParticleContacts[getIndex()]; }
569 AGX_FORCE_INLINE agx::AtomicValue const& ContactZoneInstance::numParticleParticleContacts()
const { verifyIndex();
return getData()->numParticleParticleContacts[getIndex()]; }
571 AGX_FORCE_INLINE agx::AtomicValue& ContactZoneInstance::numParticleGeometryContacts() { verifyIndex();
return getData()->numParticleGeometryContacts[getIndex()]; }
572 AGX_FORCE_INLINE agx::AtomicValue const& ContactZoneInstance::numParticleGeometryContacts()
const { verifyIndex();
return getData()->numParticleGeometryContacts[getIndex()]; }
575 AGX_FORCE_INLINE agx::AtomicValue const& ContactZoneInstance::numGeometryContacts()
const { verifyIndex();
return getData()->numGeometryContacts[getIndex()]; }
596 AGX_FORCE_INLINE agx::Job*
const& ContactZoneInstance::job()
const { verifyIndex();
return getData()->job[getIndex()]; }
610AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::ContactZoneInstance, "Physics.HierarchicalGrid.ContactZoneInstance")
616#undef AGX_ENTITY_WRAPPER
617#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
Pointer to a entity instance of type Physics.HierarchicalGrid.Cell.
Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier.
A class holding 4 dimensional vectors and providing basic arithmetic.
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.