AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
ILinkNode.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19#include <agxWire/Node.h>
20
21namespace 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:254
#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:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
Implements a Wire model with adaptive resolution.
Definition: MergedBody.h:39
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition: Real.h:41