AGX Dynamics
2.37.3.2
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
{
23
AGX_DECLARE_POINTER_TYPES
(
ILinkNode
);
24
28
class
AGXPHYSICS_EXPORT
ILinkNode
:
public
agxWire::ConnectingNode
29
{
30
public
:
35
class
AGXPHYSICS_EXPORT
ConnectionProperties
36
{
37
public
:
41
ConnectionProperties
();
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
75
DOXYGEN_START_INTERNAL_BLOCK
()
76
agx::Real
getBendDamping()
const
;
77
void
store(
agxStream::OutputArchive
&
out
)
const
;
78
void
restore(
agxStream::InputArchive
&
in
);
79
DOXYGEN_END_INTERNAL_BLOCK
()
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
98
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE
(
agxWire::ILinkNode
);
99
100
protected
:
104
ILinkNode
();
105
109
ILinkNode
(
agx::RigidBody
* rb,
const
agx::Vec3
& relTranslate );
110
};
111
}
112
agxStream::in
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
agxWire::ConnectingNode
Connecting nodes contains two nodes, one at center of mass and the other at the user defined position...
Definition:
agxWire/Node.h:1557
agxStream::out
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...
Definition:
OutputArchive.h:412
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agxWire::ILinkNode
Interface class for nodes connected to links.
Definition:
ILinkNode.h:28
agxWire
Implements a Wire model with adaptive resolution.
Definition:
MergedBody.h:39
Node.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
agx::Vec3T< Real >
agxStream::InputArchive
Class for reading a binary stream of serialized data.
Definition:
InputArchive.h:51
agxStream::OutputArchive
Class for writing serialized data in binary format to a stream.
Definition:
OutputArchive.h:56
agxWire::ILinkNode::ConnectionProperties
Object holding parameters, such as bend and twist stiffness, related to wire to link connections...
Definition:
ILinkNode.h:35
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE
#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
agx::Real
double Real
Definition:
Real.h:42
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition:
Object.h:98
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition:
Object.h:97
include
agxWire
ILinkNode.h
Generated on Fri Apr 12 2024 12:40:23 for AGX Dynamics by
1.8.13