AGX Dynamics  2.35.0.1
ILinkNode.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 #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 
60 
68  void setTwistStiffness( agx::Real twistStiffness );
69 
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:
105 
109  ILinkNode( agx::RigidBody* rb, const agx::Vec3& relTranslate );
110  };
111 }
112 
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#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
#define AGXPHYSICS_EXPORT
Connecting nodes contains two nodes, one at center of mass and the other at the user defined position...
Object holding parameters, such as bend and twist stiffness, related to wire to link connections.
Definition: ILinkNode.h:36
void setBendStiffness(agx::Real bendStiffness)
Assign bend stiffness of the link to wire connection.
ConnectionProperties(agx::Real bendStiffness, agx::Real twistStiffness)
Construct given bend- and twist stiffness.
void setTwistStiffness(agx::Real twistStiffness)
Assign twist stiffness of the link to wire connection.
ConnectionProperties()
Default constructor, with default bend and twist stiffness disabled.
Interface class for nodes connected to links.
Definition: ILinkNode.h:29
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
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
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.
Implements a Wire model with adaptive resolution.
Definition: MergedBody.h:40
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