21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRYCONTACT_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRYCONTACT_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 )
54 namespace agx {
namespace Physics {
class GeometryPtr; }}
55 namespace agx {
namespace Physics {
class GeometryPtr; }}
56 namespace agx {
namespace Physics {
class RigidBodyPtr; }}
57 namespace agx {
namespace Physics {
class RigidBodyPtr; }}
58 namespace agx {
namespace Physics {
class BroadPhasePairPtr; }}
59 namespace agx {
namespace Physics {
class ContactPointPtr; }}
66 class GeometryContactModel;
67 class GeometryContactData;
68 class GeometryContactPtr;
69 class GeometryContactInstance;
70 class GeometryContactSemantics;
117 virtual void configure(agx::TiXmlElement* eEntity)
override;
125 #ifndef AGX_PHYSICS_GEOMETRYCONTACT_DATA_SET_OVERRIDE
126 #define AGX_PHYSICS_GEOMETRYCONTACT_DATA_SET
130 GeometryContactInstance operator[] (
size_t index);
156 typedef agx::Bool hasSurfaceVelocityType;
157 typedef agx::Bool hasInternalMaterialType;
159 typedef void* customDataType;
163 GeometryContactData();
166 virtual ~GeometryContactData() {}
167 virtual void setNumElements(
agx::Index numElements)
override;
170 GeometryContactData& operator= (
const GeometryContactData&) {
return *
this; }
191 agx::Bool const& getHasSurfaceVelocity()
const;
192 agx::Bool const& getHasInternalMaterial()
const;
194 void*
const& getCustomData()
const;
206 void setImmediately(
agx::Bool const& value);
207 void setHasSurfaceVelocity(
agx::Bool const& value);
208 void setHasInternalMaterial(
agx::Bool const& value);
209 void setUsingPPGS(
agx::Bool const& value);
210 void setCustomData(
void*
const& value);
214 friend class GeometryContactPtr;
215 friend class GeometryContactInstance;
216 GeometryContactSemantics();
310 #ifdef AGX_GENERATED_TOLUA_WRAPPER
317 inline agx::Bool const& getEnabled()
const {
return (*this)->getEnabled(); }
318 inline agx::Bool const& getImmediately()
const {
return (*this)->getImmediately(); }
319 inline agx::Bool const& getHasSurfaceVelocity()
const {
return (*this)->getHasSurfaceVelocity(); }
320 inline agx::Bool const& getHasInternalMaterial()
const {
return (*this)->getHasInternalMaterial(); }
321 inline agx::Bool const& getUsingPPGS()
const {
return (*this)->getUsingPPGS(); }
322 inline void*
const& getCustomData()
const {
return (*this)->getCustomData(); }
331 inline void setEnabled(
agx::Bool const& value) { (*this)->setEnabled(value); }
332 inline void setImmediately(
agx::Bool const& value) { (*this)->setImmediately(value); }
333 inline void setHasSurfaceVelocity(
agx::Bool const& value) { (*this)->setHasSurfaceVelocity(value); }
334 inline void setHasInternalMaterial(
agx::Bool const& value) { (*this)->setHasInternalMaterial(value); }
335 inline void setUsingPPGS(
agx::Bool const& value) { (*this)->setUsingPPGS(value); }
336 inline void setCustomData(
void*
const& value) { (*this)->setCustomData(value); }
347 GeometryContactInstance();
348 GeometryContactInstance(GeometryContactData* data,
agx::Index index);
353 GeometryContactData* getData();
354 const GeometryContactData* getData()
const;
400 agx::Bool const& hasSurfaceVelocity()
const;
405 agx::Bool const& hasInternalMaterial()
const;
415 void*
const& customData()
const;
431 inline GeometryContactInstance
agx::Physics::GeometryContactData::operator[] (
size_t index) {
return GeometryContactInstance(
this, (
agx::Index)index); }
438 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
445 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
453 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
462 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
469 AGX_FORCE_INLINE GeometryContactSemantics* GeometryContactPtr::operator->() {
return (GeometryContactSemantics* )
this; }
470 AGX_FORCE_INLINE const GeometryContactSemantics* GeometryContactPtr::operator->()
const {
return (
const GeometryContactSemantics* )
this; }
492 AGX_FORCE_INLINE agx::Bool& GeometryContactPtr::enabled() { verifyIndex();
return getData()->enabled[calculateIndex()]; }
493 AGX_FORCE_INLINE agx::Bool const& GeometryContactPtr::enabled()
const { verifyIndex();
return getData()->enabled[calculateIndex()]; }
495 AGX_FORCE_INLINE agx::Bool& GeometryContactPtr::immediately() { verifyIndex();
return getData()->immediately[calculateIndex()]; }
496 AGX_FORCE_INLINE agx::Bool const& GeometryContactPtr::immediately()
const { verifyIndex();
return getData()->immediately[calculateIndex()]; }
498 AGX_FORCE_INLINE agx::Bool& GeometryContactPtr::hasSurfaceVelocity() { verifyIndex();
return getData()->hasSurfaceVelocity[calculateIndex()]; }
499 AGX_FORCE_INLINE agx::Bool const& GeometryContactPtr::hasSurfaceVelocity()
const { verifyIndex();
return getData()->hasSurfaceVelocity[calculateIndex()]; }
501 AGX_FORCE_INLINE agx::Bool& GeometryContactPtr::hasInternalMaterial() { verifyIndex();
return getData()->hasInternalMaterial[calculateIndex()]; }
502 AGX_FORCE_INLINE agx::Bool const& GeometryContactPtr::hasInternalMaterial()
const { verifyIndex();
return getData()->hasInternalMaterial[calculateIndex()]; }
504 AGX_FORCE_INLINE agx::Bool& GeometryContactPtr::usingPPGS() { verifyIndex();
return getData()->usingPPGS[calculateIndex()]; }
505 AGX_FORCE_INLINE agx::Bool const& GeometryContactPtr::usingPPGS()
const { verifyIndex();
return getData()->usingPPGS[calculateIndex()]; }
507 AGX_FORCE_INLINE void*& GeometryContactPtr::customData() { verifyIndex();
return getData()->customData[calculateIndex()]; }
508 AGX_FORCE_INLINE void*
const& GeometryContactPtr::customData()
const { verifyIndex();
return getData()->customData[calculateIndex()]; }
512 AGX_FORCE_INLINE GeometryContactInstance::GeometryContactInstance(GeometryContactData* data,
agx::Index index) :
agx::Physics::ContactInstance(data, index) {}
517 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
524 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
551 AGX_FORCE_INLINE agx::Bool const& GeometryContactInstance::enabled()
const { verifyIndex();
return getData()->enabled[getIndex()]; }
553 AGX_FORCE_INLINE agx::Bool& GeometryContactInstance::immediately() { verifyIndex();
return getData()->immediately[getIndex()]; }
554 AGX_FORCE_INLINE agx::Bool const& GeometryContactInstance::immediately()
const { verifyIndex();
return getData()->immediately[getIndex()]; }
556 AGX_FORCE_INLINE agx::Bool& GeometryContactInstance::hasSurfaceVelocity() { verifyIndex();
return getData()->hasSurfaceVelocity[getIndex()]; }
557 AGX_FORCE_INLINE agx::Bool const& GeometryContactInstance::hasSurfaceVelocity()
const { verifyIndex();
return getData()->hasSurfaceVelocity[getIndex()]; }
559 AGX_FORCE_INLINE agx::Bool& GeometryContactInstance::hasInternalMaterial() { verifyIndex();
return getData()->hasInternalMaterial[getIndex()]; }
560 AGX_FORCE_INLINE agx::Bool const& GeometryContactInstance::hasInternalMaterial()
const { verifyIndex();
return getData()->hasInternalMaterial[getIndex()]; }
562 AGX_FORCE_INLINE agx::Bool& GeometryContactInstance::usingPPGS() { verifyIndex();
return getData()->usingPPGS[getIndex()]; }
563 AGX_FORCE_INLINE agx::Bool const& GeometryContactInstance::usingPPGS()
const { verifyIndex();
return getData()->usingPPGS[getIndex()]; }
565 AGX_FORCE_INLINE void*& GeometryContactInstance::customData() { verifyIndex();
return getData()->customData[getIndex()]; }
566 AGX_FORCE_INLINE void*
const& GeometryContactInstance::customData()
const { verifyIndex();
return getData()->customData[getIndex()]; }
579 # pragma warning(pop)
582 #undef AGX_ENTITY_WRAPPER
583 #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()
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.
agx::String fullPath() const
Pointer to a entity instance of type Physics.BroadPhasePair.
Pointer to a entity instance of type Physics.Geometry.
Pointer to a entity instance of type Physics.RigidBody.
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())