 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
17 #ifndef AGXMODEL_DEFORMABLE1DATTACHMENT_H
18 #define AGXMODEL_DEFORMABLE1DATTACHMENT_H
29 class Deformable1DNode;
45 ROTATE_TO_NODE_DIRECTION
56 template<
typename T >
66 template<
typename T >
76 template<
typename T >
86 template<
typename T >
121 InitializationMode getInitMode()
const;
183 template<
typename T >
211 return new T( rb1, f1, rb2, f2 );
355 template<
typename T >
361 template<
typename T >
364 return new T( rb, bodyPoint );
367 template<
typename T >
370 return createFromBody< T >( (rb !=
nullptr ? worldTransform * rb->
getTransform().
inverse() : worldTransform), rb );
373 template<
typename T >
376 return new T( rb, bodyTransform );
380 #endif // AGXMODEL_DEFORMABLE1DATTACHMENT_H
@ ROTATE_TO_NODE_DIRECTION
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
virtual ~NodeAttachmentT()
Reference counted object, protected destructor.
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...
agx::Vec3 transformPointToLocal(const agx::Vec3 &pointWorld) const
Transform point from the world coordinate frame to this frame.
Abstract base class for storing/restoring a line/drums with version control.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Node attachment using hinge joint, i.e., the node can rotate about this attachment.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
agx::ConstraintRef m_constraint
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.
Smart pointer for handling referenced counted objects.
InitializationMode
Each attachment implementation controls the initialization mode.
Base class for attachments to Deformable1D nodes.
agx::FrameRef m_rbAttachmentFrame
virtual agx::ConstraintRef createConstraint(agx::RigidBodyRef rb1, agx::FrameRef f1, agx::RigidBodyRef rb2, agx::FrameRef f2) const override
static agxModel::NodeAttachmentRef createFromWorld(agx::Vec3 worldPoint, agx::RigidBody *rb)
Creates an node attachment given a point in world frame.
Class for writing serialized data in binary format to a stream.
Node attachment using lock joint, i.e., the node cannot move relative to this attachment.
Node attachment using prismatic joint, i.e., the node can slide along this attachment.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
Helper class to create give type of constraint for the different attachments.
The base class for a constraint.
static agxModel::NodeAttachmentRef createFromBody(agx::Vec3 bodyPoint, agx::RigidBody *rb)
Creates an node attachment given a point in rb local frame.
AffineMatrix4x4T< T > inverse() const
Quick inverse, transpose rotation part, and change sign of translation part.
NodeAttachmentT(agx::RigidBody *rb, agx::Frame *rbAttachmentFrame, agxModel::NodeAttachment::InitializationMode initMode)
Construct given rigid body and a relative frame.
agx::Frame * getFrame()
Returns the model frame containing model the transformation and utilities to manipulate position,...
Node attachment using ball joint, i.e., the node will rotate about this attachment.
InitializationMode m_initMode
The object defining a frame of reference and providing transformations operations.
NodeAttachmentT()
Default constructor for serialization.