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;
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();
342 #ifdef AGX_GENERATED_TOLUA_WRAPPER
346 inline agx::UInt32 const& getTotNumContacts()
const {
return (*this)->getTotNumContacts(); }
347 inline agx::AtomicValue const& getNumParticleParticleContacts()
const {
return (*this)->getNumParticleParticleContacts(); }
348 inline agx::AtomicValue const& getNumParticleGeometryContacts()
const {
return (*this)->getNumParticleGeometryContacts(); }
349 inline agx::AtomicValue const& getNumGeometryContacts()
const {
return (*this)->getNumGeometryContacts(); }
355 inline agx::Vec3i const& getId()
const {
return (*this)->getId(); }
356 inline agx::Job*
const& getJob()
const {
return (*this)->getJob(); }
357 inline agx::Vec4f const& getColor()
const {
return (*this)->getColor(); }
363 inline void setTotNumContacts(
agx::UInt32 const& value) { (*this)->setTotNumContacts(value); }
364 inline void setNumParticleParticleContacts(
agx::AtomicValue const& value) { (*this)->setNumParticleParticleContacts(value); }
365 inline void setNumParticleGeometryContacts(
agx::AtomicValue const& value) { (*this)->setNumParticleGeometryContacts(value); }
366 inline void setNumGeometryContacts(
agx::AtomicValue const& value) { (*this)->setNumGeometryContacts(value); }
371 inline void setType(
agx::UInt8 const& value) { (*this)->setType(value); }
372 inline void setId(
agx::Vec3i const& value) { (*this)->setId(value); }
373 inline void setJob(
agx::Job*
const& value) { (*this)->setJob(value); }
374 inline void setColor(
agx::Vec4f const& value) { (*this)->setColor(value); }
385 ContactZoneInstance();
386 ContactZoneInstance(ContactZoneData* data,
agx::Index index);
391 ContactZoneData* getData();
392 const ContactZoneData* getData()
const;
484 inline ContactZoneInstance
agx::Physics::HierarchicalGrid::ContactZoneData::operator[] (
size_t index) {
return ContactZoneInstance(
this, (
agx::Index)index); }
491 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
498 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
506 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
515 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
522 AGX_FORCE_INLINE ContactZoneSemantics* ContactZonePtr::operator->() {
return (ContactZoneSemantics* )
this; }
523 AGX_FORCE_INLINE const ContactZoneSemantics* ContactZonePtr::operator->()
const {
return (
const ContactZoneSemantics* )
this; }
536 AGX_FORCE_INLINE agx::UInt32& ContactZonePtr::totNumContacts() { verifyIndex();
return getData()->totNumContacts[calculateIndex()]; }
537 AGX_FORCE_INLINE agx::UInt32 const& ContactZonePtr::totNumContacts()
const { verifyIndex();
return getData()->totNumContacts[calculateIndex()]; }
539 AGX_FORCE_INLINE agx::AtomicValue& ContactZonePtr::numParticleParticleContacts() { verifyIndex();
return getData()->numParticleParticleContacts[calculateIndex()]; }
540 AGX_FORCE_INLINE agx::AtomicValue const& ContactZonePtr::numParticleParticleContacts()
const { verifyIndex();
return getData()->numParticleParticleContacts[calculateIndex()]; }
542 AGX_FORCE_INLINE agx::AtomicValue& ContactZonePtr::numParticleGeometryContacts() { verifyIndex();
return getData()->numParticleGeometryContacts[calculateIndex()]; }
543 AGX_FORCE_INLINE agx::AtomicValue const& ContactZonePtr::numParticleGeometryContacts()
const { verifyIndex();
return getData()->numParticleGeometryContacts[calculateIndex()]; }
546 AGX_FORCE_INLINE agx::AtomicValue const& ContactZonePtr::numGeometryContacts()
const { verifyIndex();
return getData()->numGeometryContacts[calculateIndex()]; }
567 AGX_FORCE_INLINE agx::Job*
const& ContactZonePtr::job()
const { verifyIndex();
return getData()->job[calculateIndex()]; }
570 AGX_FORCE_INLINE agx::Vec4f const& ContactZonePtr::color()
const { verifyIndex();
return getData()->color[calculateIndex()]; }
579 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
586 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
603 AGX_FORCE_INLINE agx::UInt32& ContactZoneInstance::totNumContacts() { verifyIndex();
return getData()->totNumContacts[getIndex()]; }
604 AGX_FORCE_INLINE agx::UInt32 const& ContactZoneInstance::totNumContacts()
const { verifyIndex();
return getData()->totNumContacts[getIndex()]; }
606 AGX_FORCE_INLINE agx::AtomicValue& ContactZoneInstance::numParticleParticleContacts() { verifyIndex();
return getData()->numParticleParticleContacts[getIndex()]; }
607 AGX_FORCE_INLINE agx::AtomicValue const& ContactZoneInstance::numParticleParticleContacts()
const { verifyIndex();
return getData()->numParticleParticleContacts[getIndex()]; }
609 AGX_FORCE_INLINE agx::AtomicValue& ContactZoneInstance::numParticleGeometryContacts() { verifyIndex();
return getData()->numParticleGeometryContacts[getIndex()]; }
610 AGX_FORCE_INLINE agx::AtomicValue const& ContactZoneInstance::numParticleGeometryContacts()
const { verifyIndex();
return getData()->numParticleGeometryContacts[getIndex()]; }
613 AGX_FORCE_INLINE agx::AtomicValue const& ContactZoneInstance::numGeometryContacts()
const { verifyIndex();
return getData()->numGeometryContacts[getIndex()]; }
634 AGX_FORCE_INLINE agx::Job*
const& ContactZoneInstance::job()
const { verifyIndex();
return getData()->job[getIndex()]; }
648 AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::ContactZoneInstance, "Physics.HierarchicalGrid.ContactZoneInstance")
651 # pragma warning(pop)
654 #undef AGX_ENTITY_WRAPPER
655 #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
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.
AGXCORE_EXPORT Type * getType(const agx::String &name)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())