AGX Dynamics  2.37.2.0
ILinkNode.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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 #pragma once
18 
19 #include <agxWire/Node.h>
20 
21 namespace agxWire
22 {
24 
29  {
30  public:
36  {
37  public:
42 
46  ConnectionProperties( agx::Real bendStiffness, agx::Real twistStiffness );
47 
54  void setBendStiffness( agx::Real bendStiffness );
55 
59  agx::Real getBendStiffness() const;
60 
68  void setTwistStiffness( agx::Real twistStiffness );
69 
73  agx::Real getTwistStiffness() const;
74 
76  agx::Real getBendDamping() const;
77  void store( agxStream::OutputArchive& out ) const;
78  void restore( agxStream::InputArchive& in );
80 
81  private:
82  agx::Real m_bendStiffness;
83  agx::Real m_bendDamping;
84  agx::Real m_twistStiffness;
85  };
86 
87  public:
91  virtual agxWire::ILinkNode::ConnectionProperties* getConnectionProperties() const = 0;
92 
96  virtual agxWire::ILinkNode* getLinkConnection() const = 0;
97 
99 
100  protected:
104  ILinkNode();
105 
109  ILinkNode( agx::RigidBody* rb, const agx::Vec3& relTranslate );
110  };
111 }
112 
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...
Definition: InputArchive.h:400
Connecting nodes contains two nodes, one at center of mass and the other at the user defined position...
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...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
Interface class for nodes connected to links.
Definition: ILinkNode.h:28
Implements a Wire model with adaptive resolution.
Definition: MergedBody.h:39
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
Class for reading a binary stream of serialized data.
Definition: InputArchive.h:51
Class for writing serialized data in binary format to a stream.
Definition: OutputArchive.h:56
Object holding parameters, such as bend and twist stiffness, related to wire to link connections...
Definition: ILinkNode.h:35
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Definition: Serializable.h:221
double Real
Definition: Real.h:42
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97