21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONE_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONE_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 ) 55 namespace agx {
class Job; }
57 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class CellPtr; }}}
58 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class GridTierPtr; }}}
59 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZoneDependencyPtr; }}}
60 namespace agx {
namespace Physics {
class SolveGroupPtr; }}
66 namespace HierarchicalGrid
69 class ContactZoneModel;
70 class ContactZoneData;
72 class ContactZoneInstance;
73 class ContactZoneSemantics;
98 virtual void shutdownCleanup()
override;
122 virtual void configure(agx::TiXmlElement* eEntity)
override;
123 virtual void initAttributeAccessors()
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);
232 friend class ContactZoneInstance;
233 ContactZoneSemantics();
261 ContactZoneData* getData();
262 const ContactZoneData* getData()
const;
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\'",
477 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
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()]; }
610 AGX_TYPE_BINDING(agx::Physics::HierarchicalGrid::ContactZoneInstance,
"Physics.HierarchicalGrid.ContactZoneInstance")
613 # pragma warning(pop) 616 #undef AGX_ENTITY_WRAPPER 617 #undef AGX_ENTITY_NAMESPACE
AGXCORE_EXPORT Type * getType(const agx::String &name)
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,...)
A class holding 4 dimensional vectors and providing basic arithmetic.
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Physics.HierarchicalGrid.Cell.
Pointer to a entity instance of type Physics.HierarchicalGrid.GridTier.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()