|
AGX Dynamics
2.37.2.0
|
Internal class used by agxWire::Wire. More...
#include <WireShape.h>
Inheritance diagram for agxCollide::WireShape:Public Member Functions | |
| WireShape (const agx::Real radius, const agx::Real height, const agx::Vec3 previousEndPoint0=agx::Vec3(), const agx::Vec3 previousEndPoint1=agx::Vec3()) | |
| Constructor. More... | |
| virtual BoundingAABB | calculateLocalBound () const override |
| Calculate the bounding volume in the local coordinate system. More... | |
| const char * | getClassName () const override |
| agx::Physics::Geometry::WireShapePtr | getEntity () const |
| agx::Vec3 | getPreviousEndPoint0 () const |
| agx::Vec3 | getPreviousEndPoint1 () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| virtual void | restore (agxStream::InputArchive &in) override |
| agxCollide::BoundingAABB | set (const agx::AffineMatrix4x4 &worldTransform, const agx::Real radius, const agx::Real height, const agx::Vec3 &previousEndPoint0, const agx::Vec3 &previousEndPoint1) |
| virtual void | store (agxStream::OutputArchive &out) const override |
| virtual const BoundingAABB & | updateBoundingVolume () override |
| Calculate the bounding volume based on the current Shape parameters including transformation. More... | |
Public Member Functions inherited from agxCollide::Capsule | |
| Capsule (const agx::Real radius=agx::Real(1), const agx::Real height=agx::Real(1)) | |
| Constructor. More... | |
| virtual agx::SPDMatrix3x3 | calculateInertia (agx::Real mass) const override |
| Calculate the inertia for the shape given a mass. More... | |
| virtual Shape * | clone () const override |
| Create a clone. More... | |
| agx::Real | getHeight () const |
| agx::Real | getRadius () const |
| virtual agx::Vec3 | getSupportPoint (const agx::Vec3 &supportDirection) const override |
| Returns the support point on face of the shape. More... | |
| virtual agx::Real | getVolume () const override |
| Return the volume of the shape. More... | |
| virtual bool | hasSupportFunction () const override |
| void | set (const agx::Real radius, const agx::Real height) |
| Set the radius and height of the capsule. More... | |
| void | setHeight (const agx::Real height) |
| Set the height of the capsule. More... | |
| void | setRadius (const agx::Real radius) |
| Set the radius of the capsule. More... | |
Public Member Functions inherited from agxCollide::Shape | |
| ShapeGroup * | asGroup () |
| Auto-cast shape to group. More... | |
| const ShapeGroup * | asGroup () const |
| Auto-cast shape to group. More... | |
| virtual agx::Real | calculateBoundingRadius (BoundingAABB &localAABB) const |
Calculate the bounding volume (AABB) into localAABB and calculate the bounding radius based on the new AABB size. More... | |
| const BoundingAABB & | getBoundingVolume () const |
| virtual agx::Vec3 | getCenter () const |
| agx::Physics::Geometry::ShapePtr | getEntity () const |
| Geometry * | getGeometry () |
| const Geometry * | getGeometry () const |
| agx::AffineMatrix4x4 | getLocalTransform () const |
| agx::UInt32 | getModifiedCount () const |
| const agxCollide::RenderData * | getRenderData () const |
| If this is a ShapeGroup, then this method will return nullptr as the render data is stored in the actual children (Box, Mesh etc. More... | |
| agxCollide::RenderData * | getRenderData () |
| agx::AffineMatrix4x4 | getTransform () const |
| agx::UInt8 | getType () const |
| const char * | getTypeName () const |
| bool | isGroup () const |
| virtual void | propagateTransform (const agx::AffineMatrix4x4 &transform) |
| virtual void | setRenderData (agxCollide::RenderData *renderData) |
| Store render data with the Shape. More... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
Static Public Member Functions | |
| static BoundingAABB | calculateBound (const agx::AffineMatrix4x4 &transform, const agx::Real radius, const agx::Real height, const agx::Vec3 &previousEndPoint0, const agx::Vec3 &previousEndPoint1) |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static agxStream::Serializable * | create () |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agxCollide::Capsule | |
| static BoundingAABB | calculateBound (const agx::AffineMatrix4x4 &transform, const agx::Real radius, const agx::Real height) |
Static Public Member Functions inherited from agxCollide::Shape | |
| static BoundingAABB | calculateBound (const agx::AffineMatrix4x4 &transform, const BoundingAABB &localBound) |
| static const char * | getTypeName (agx::UInt8 type) |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
Protected Member Functions | |
| WireShape () | |
| virtual | ~WireShape () |
Protected Member Functions inherited from agxCollide::Capsule | |
| Capsule (const agx::Real radius, const agx::Real height, Shape::Type type, agx::Physics::Geometry::ShapePtr entity) | |
| Internal constructor. More... | |
| virtual | ~Capsule (void) |
| Destructor. More... | |
Protected Member Functions inherited from agxCollide::Shape | |
| Shape (Type type, agx::Physics::Geometry::ShapePtr entity=agx::Physics::Geometry::ShapeModel::createInstance()) | |
| Constructor. More... | |
| virtual | ~Shape () |
| Destructor. More... | |
| agx::UInt32 | incrementModifiedCount () |
| Increment the number of times the shape have been modified. More... | |
| void | syncronizeShapeIndex () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| Serializable (const Serializable &other) | |
| Copy constructor. More... | |
| void | generateUuid () |
Additional Inherited Members | |
Public Types inherited from agxCollide::Shape | |
| enum | Type { GROUP, BOX, CAPSULE, CYLINDER, LINE, PLANE, SPHERE, TRIMESH, HEIGHT_FIELD, CONVEX, WIRE_SHAPE, CONE, HOLLOW_CONE, HOLLOW_CYLINDER, NUM_TYPES } |
| Define the type of a Shape. More... | |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agxCollide::Shape | |
| agx::Physics::Geometry::ShapeRef | m_entity |
| Geometry * | m_geometry |
| ShapeGroup * | m_parent |
| agxCollide::RenderDataRef | m_renderData |
| agx::Index | m_shapeIndex |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Internal class used by agxWire::Wire.
Implements a WireShape shape for geometric intersection tests. The WireShape is identical to a capsule for static collision detection, but adds the possibility to do continuous collision detection based on the linear movement of the capsule axis end points (the movement does not have to be identical, so that the capsule can deform during the time step). These end points have to be set newly each time step in order to be used by collision detection. Check the user manual in order to see which colliders can make use of continuous collision detection for WireShapes.
The capsule is oriented as the Y-axis with origin at center of mass.
Definition at line 43 of file WireShape.h.
| agxCollide::WireShape::WireShape | ( | const agx::Real | radius, |
| const agx::Real | height, | ||
| const agx::Vec3 | previousEndPoint0 = agx::Vec3(), |
||
| const agx::Vec3 | previousEndPoint1 = agx::Vec3() |
||
| ) |
Constructor.
| radius | Radius of capsule |
| height | Height of capsule |
| previousEndPoint0 | The previous first point in world coordinates. |
| previousEndPoint1 | The previous second point in world coordinates. |
|
protected |
|
protectedvirtual |
|
static |
Definition at line 107 of file WireShape.h.
References agx::Vec3T< Real >::componentMax(), agx::Vec3T< Real >::componentMin(), and agxData::transform().
|
overridevirtual |
Calculate the bounding volume in the local coordinate system.
Reimplemented from agxCollide::Capsule.
|
inlinestatic |
Definition at line 84 of file WireShape.h.
|
inlinestatic |
Definition at line 84 of file WireShape.h.
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 84 of file WireShape.h.
|
inlinestatic |
Definition at line 84 of file WireShape.h.
|
inline |
Definition at line 92 of file WireShape.h.
| agx::Vec3 agxCollide::WireShape::getPreviousEndPoint0 | ( | ) | const |
Definition at line 97 of file WireShape.h.
References agxData::getEntity().
| agx::Vec3 agxCollide::WireShape::getPreviousEndPoint1 | ( | ) | const |
Definition at line 102 of file WireShape.h.
References agxData::getEntity().
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 84 of file WireShape.h.
|
overridevirtual |
| agxCollide::BoundingAABB agxCollide::WireShape::set | ( | const agx::AffineMatrix4x4 & | worldTransform, |
| const agx::Real | radius, | ||
| const agx::Real | height, | ||
| const agx::Vec3 & | previousEndPoint0, | ||
| const agx::Vec3 & | previousEndPoint1 | ||
| ) |
|
overridevirtual |
|
overridevirtual |
Calculate the bounding volume based on the current Shape parameters including transformation.
Reimplemented from agxCollide::Capsule.