21 #ifndef GENERATED_AGX_PHYSICS_CONTACTPOINT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_CONTACTPOINT_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 ) 53 namespace agx {
namespace Physics {
namespace Geometry {
class ShapePtr; }}}
54 namespace agx {
namespace Physics {
namespace Geometry {
class ShapePtr; }}}
62 class ContactPointData;
64 class ContactPointInstance;
65 class ContactPointSemantics;
90 virtual void shutdownCleanup()
override;
119 virtual void configure(agx::TiXmlElement* eEntity)
override;
120 virtual void initAttributeAccessors()
override;
127 #ifndef AGX_PHYSICS_CONTACTPOINT_DATA_SET_OVERRIDE 128 #define AGX_PHYSICS_CONTACTPOINT_DATA_SET 132 ContactPointInstance operator[] (
size_t index);
176 typedef agx::Real elasticRestLengthShape1Type;
177 typedef agx::Real elasticRestLengthShape2Type;
184 virtual ~ContactPointData() {}
185 virtual void setNumElements(
agx::Index numElements)
override;
188 ContactPointData& operator= (
const ContactPointData&) {
return *
this; }
210 agx::Real const& getMaxNormalForce()
const;
219 agx::Real const& getElasticRestLengthShape1()
const;
220 agx::Real const& getElasticRestLengthShape2()
const;
232 void setLocalForce(
agx::Vec3 const& value);
234 void setMaxNormalForce(
agx::Real const& value);
238 void setFaceFeature1(
agx::UInt8 const& value);
239 void setFaceFeature2(
agx::UInt8 const& value);
243 void setElasticRestLengthShape1(
agx::Real const& value);
244 void setElasticRestLengthShape2(
agx::Real const& value);
249 friend class ContactPointInstance;
250 ContactPointSemantics();
278 ContactPointData* getData();
279 const ContactPointData* getData()
const;
389 ContactPointInstance();
390 ContactPointInstance(ContactPointData* data,
agx::Index index);
395 ContactPointData* getData();
396 const ContactPointData* getData()
const;
492 agx::Real const& elasticRestLengthShape1()
const;
497 agx::Real const& elasticRestLengthShape2()
const;
513 inline ContactPointInstance
agx::Physics::ContactPointData::operator[] (
size_t index) {
return ContactPointInstance(
this, (
agx::Index)index); }
520 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
527 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
535 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
544 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
623 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
630 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
639 AGX_FORCE_INLINE agx::Vec3 const& ContactPointInstance::point()
const { verifyIndex();
return getData()->point[getIndex()]; }
642 AGX_FORCE_INLINE agx::Vec3f const& ContactPointInstance::normal()
const { verifyIndex();
return getData()->normal[getIndex()]; }
645 AGX_FORCE_INLINE agx::Vec3f const& ContactPointInstance::tangentU()
const { verifyIndex();
return getData()->tangentU[getIndex()]; }
648 AGX_FORCE_INLINE agx::Vec3f const& ContactPointInstance::tangentV()
const { verifyIndex();
return getData()->tangentV[getIndex()]; }
651 AGX_FORCE_INLINE agx::Real const& ContactPointInstance::depth()
const { verifyIndex();
return getData()->depth[getIndex()]; }
654 AGX_FORCE_INLINE agx::UInt8 const& ContactPointInstance::state()
const { verifyIndex();
return getData()->state[getIndex()]; }
657 AGX_FORCE_INLINE agx::Vec3f const& ContactPointInstance::velocity()
const { verifyIndex();
return getData()->velocity[getIndex()]; }
659 AGX_FORCE_INLINE agx::Vec3& ContactPointInstance::localForce() { verifyIndex();
return getData()->localForce[getIndex()]; }
660 AGX_FORCE_INLINE agx::Vec3 const& ContactPointInstance::localForce()
const { verifyIndex();
return getData()->localForce[getIndex()]; }
663 AGX_FORCE_INLINE agx::Vec4i8 const& ContactPointInstance::indexSet()
const { verifyIndex();
return getData()->indexSet[getIndex()]; }
665 AGX_FORCE_INLINE agx::Real& ContactPointInstance::maxNormalForce() { verifyIndex();
return getData()->maxNormalForce[getIndex()]; }
666 AGX_FORCE_INLINE agx::Real const& ContactPointInstance::maxNormalForce()
const { verifyIndex();
return getData()->maxNormalForce[getIndex()]; }
669 AGX_FORCE_INLINE agx::Bool const& ContactPointInstance::enabled()
const { verifyIndex();
return getData()->enabled[getIndex()]; }
672 AGX_FORCE_INLINE agx::UInt32 const& ContactPointInstance::faceIndex1()
const { verifyIndex();
return getData()->faceIndex1[getIndex()]; }
675 AGX_FORCE_INLINE agx::UInt32 const& ContactPointInstance::faceIndex2()
const { verifyIndex();
return getData()->faceIndex2[getIndex()]; }
677 AGX_FORCE_INLINE agx::UInt8& ContactPointInstance::faceFeature1() { verifyIndex();
return getData()->faceFeature1[getIndex()]; }
678 AGX_FORCE_INLINE agx::UInt8 const& ContactPointInstance::faceFeature1()
const { verifyIndex();
return getData()->faceFeature1[getIndex()]; }
680 AGX_FORCE_INLINE agx::UInt8& ContactPointInstance::faceFeature2() { verifyIndex();
return getData()->faceFeature2[getIndex()]; }
681 AGX_FORCE_INLINE agx::UInt8 const& ContactPointInstance::faceFeature2()
const { verifyIndex();
return getData()->faceFeature2[getIndex()]; }
690 AGX_FORCE_INLINE agx::Real const& ContactPointInstance::area()
const { verifyIndex();
return getData()->area[getIndex()]; }
692 AGX_FORCE_INLINE agx::Real& ContactPointInstance::elasticRestLengthShape1() { verifyIndex();
return getData()->elasticRestLengthShape1[getIndex()]; }
693 AGX_FORCE_INLINE agx::Real const& ContactPointInstance::elasticRestLengthShape1()
const { verifyIndex();
return getData()->elasticRestLengthShape1[getIndex()]; }
695 AGX_FORCE_INLINE agx::Real& ContactPointInstance::elasticRestLengthShape2() { verifyIndex();
return getData()->elasticRestLengthShape2[getIndex()]; }
696 AGX_FORCE_INLINE agx::Real const& ContactPointInstance::elasticRestLengthShape2()
const { verifyIndex();
return getData()->elasticRestLengthShape2[getIndex()]; }
706 AGX_TYPE_BINDING(agx::Physics::ContactPointInstance,
"Physics.ContactPointInstance")
709 # pragma warning(pop) 712 #undef AGX_ENTITY_WRAPPER 713 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#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
Pointer to a entity instance of type Physics.Geometry.Shape.
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
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()