AGX Dynamics  2.35.0.1
agxCable/Node.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXCABLE_NODE_H
18 #define AGXCABLE_NODE_H
19 
20 
21 #include <agxCable/CableSegment.h>
22 #include <agxCable/Attachment.h>
23 
24 #include <agxStream/Serializable.h>
25 
26 
27 namespace agxCable
28 {
29 
32 
37  {
38  public:
41 
42  protected:
44  RoutingNode();
46  RoutingNode(agx::RigidBody* body, const agx::Vec3& halfExtents, agx::Constraint* constraint);
47  virtual ~RoutingNode();
49  };
50 
51 
52 
54 
60  {
61  public:
73  BodyFixedNode( agx::RigidBody* body, const agx::Vec3& relativeTranslate );
74 
75 
82  BodyFixedNode(agx::RigidBody* body, const agx::AffineMatrix4x4& relativeTransform);
83 
85  public:
86  BodyFixedNode(agx::RigidBody* body, const agx::Vec3& halfExtents, agx::Constraint* constraint);
88 
89  protected:
90  BodyFixedNode();
91  virtual ~BodyFixedNode();
92 
94  };
95 
96 
97 
99 
105  {
106  public:
110  FreeNode(const agx::Vec3& worldPosition);
111 
115  FreeNode(agx::Real worldX, agx::Real worldY, agx::Real worldZ);
116 
118  public:
119  FreeNode(agx::RigidBody* body, const agx::Vec3& halfExtents, agx::Constraint* constraint);
121 
122  protected:
123  FreeNode();
124  virtual ~FreeNode();
125 
127  };
128 }
129 
130 #endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGXSTREAM_DECLARE_SERIALIZABLE_CUSTOM_CREATE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:214
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGXCABLE_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: agx/Vector.h:34
A cable node that is attached to a RigidBody.
Definition: agxCable/Node.h:60
BodyFixedNode(agx::RigidBody *body, const agx::Vec3 &relativeTranslate)
Create a new BodyFixedNode attached to the given RigidBody.
BodyFixedNode(agx::RigidBody *body, const agx::AffineMatrix4x4 &relativeTransform)
Create a new BodyFixedNode attached to the given RigidBody.
A CableSegment represents a single link of a cable.
Definition: CableSegment.h:46
A cable not that is simply a point in space.
FreeNode(const agx::Vec3 &worldPosition)
Create a new FreeNode at the given position, in world coordinates.
FreeNode(agx::Real worldX, agx::Real worldY, agx::Real worldZ)
Create a new FreeNode at the given position, in world coordinates.
Base class for route nodes that defines the path and some behavior of a cable.
Definition: agxCable/Node.h:37
virtual void restore(agxStream::InputArchive &in) override
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:55
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
Contain classes for 6 DOF lumped element cables/wires/ropes.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Definition: agx/Vec3.h:36
double Real
Definition: Real.h:42
AffineMatrix4x4T< Real > AffineMatrix4x4