 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
58 ROTATE_TO_NODE_DIRECTION
92 void store(
agxStream::OutputArchive&
out) const override;
101 agx::Constraint* constraint, InitializationMode initMode);
169 return new T(body1, frame1, body2, frame2);
192 using agxCable::SegmentAttachment::restore;
218 using agxCable::SegmentAttachment::restore;
233 return createFromBody<T>(localPoint, body);
242 return new T(body, bodyPoint);
253 return createFromBody<T>(localTransform, body);
262 return new T(body, bodyTransform);
SegmentAttachmentT(agx::RigidBody *body, agx::Frame *rbSegmentAttachmentFrame, agxCable::SegmentAttachment::InitializationMode initMode)
Construct given rigid body and a relative frame.
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
The rigid body class, combining a geometric model and a frame of reference.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
#define DOXYGEN_END_INTERNAL_BLOCK()
virtual ~SegmentAttachmentT()
Reference counted object, protected destructor.
Contain classes for 6 DOF lumped element cables/wires/ropes.
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::Vec3 transformPointToLocal(const agx::Vec3 &pointWorld) const
Transform point from the world coordinate frame to this frame.
agx::ref_ptr< Frame > FrameRef
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
agx::ref_ptr< Constraint > ConstraintRef
static agxCable::SegmentAttachmentRef createFromBody(const agx::Vec3 &bodyPoint, agx::RigidBody *body)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
const agx::AffineMatrix4x4 & getTransform() const
Current model frame transform, given in world coordinate frame.
SegmentAttachmentT(const agx::Name &name, agx::RigidBody *body, agx::Frame *bodyAttachmentFrame, agx::Constraint *constraint, agxCable::SegmentAttachment::InitializationMode initMode)
#define AGX_DECLARE_VECTOR_TYPES(type)
Smart pointer for handling referenced counted objects.
SegmentAttachmentT()
Default constructor for serialization.
Representation of a name string.
agx::ref_ptr< RigidBody > RigidBodyRef
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
A CableSegment represents a single link of a cable.
Helper class to create give type of constraint for the different SegmentAttachments.
The base class for a constraint.
static agxCable::SegmentAttachmentRef createFromWorld(const agx::Vec3 &worldPoint, agx::RigidBody *body)
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
AffineMatrix4x4T< T > inverse() const
Quick inverse, transpose rotation part, and change sign of translation part.
agx::Frame * getFrame()
Returns the model frame containing model the transformation and utilities to manipulate position,...
virtual agx::ConstraintRef createConstraint(agx::RigidBodyRef body1, agx::FrameRef frame1, agx::RigidBodyRef body2, agx::FrameRef frame2) const override
The object defining a frame of reference and providing transformations operations.
InitializationMode
Each SegmentAttachment implementation controls the initialization mode.