AGXDynamics
2.35.0.2
SegmentDamage.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 <
agx/Real.h
>
20
#include <
agx/Vector.h
>
21
22
#include <
agxCable/CableDamageTypes.h
>
23
#include <
agxCable/export.h
>
24
25
#include <cstddef>
26
27
28
namespace
agxCable
29
{
30
class
SegmentDamage;
31
using
SegmentDamageVector
=
agx::Vector<SegmentDamage>
;
32
typedef
agx::VectorPOD<SegmentDamage*>
SegmentDamagePtrVector
;
33
40
class
AGXCABLE_EXPORT
SegmentDamage
41
{
42
public
:
46
SegmentDamage
();
47
48
agx::Real
bendDeformation()
const
;
49
agx::Real
twistDeformation()
const
;
50
agx::Real
stretchDeformation()
const
;
51
52
agx::Real
bendRate()
const
;
53
agx::Real
twistRate()
const
;
54
agx::Real
stretchRate()
const
;
55
56
agx::Real
bendTension()
const
;
57
agx::Real
twistTension()
const
;
58
agx::Real
stretchTension()
const
;
59
60
agx::Real
contactNormalForce()
const
;
61
agx::Real
contactFrictionForce()
const
;
62
63
agx::Real
& bendDeformation();
64
agx::Real
& twistDeformation();
65
agx::Real
& stretchDeformation();
66
67
68
agx::Real
& bendRate();
69
agx::Real
& twistRate();
70
agx::Real
& stretchRate();
71
72
agx::Real
& bendTension();
73
agx::Real
& twistTension();
74
agx::Real
& stretchTension();
75
76
agx::Real
& contactNormalForce();
77
agx::Real
& contactFrictionForce();
78
82
agx::Real
total()
const
;
83
88
agx::Real
operator[](
DamageTypes::DamageType
type)
const
;
89
agx::Real
& operator[](
DamageTypes::DamageType
type);
90
100
agx::Real
operator[](
size_t
index)
const
;
101
agx::Real
& operator[](
size_t
index);
102
103
private
:
104
agx::Real
m_damages[
DamageTypes::NUM_CABLE_DAMAGE_TYPES
];
105
};
106
107
AGXCABLE_EXPORT
SegmentDamage
operator+
(
const
SegmentDamage
& lhs,
const
SegmentDamage
& rhs);
108
AGXCABLE_EXPORT
SegmentDamage
&
operator+=
(
SegmentDamage
& lhs,
const
SegmentDamage
& rhs);
109
}
agx::Real
double Real
Definition:
Real.h:42
export.h
Vector.h
agx::Vector< SegmentDamage >
agxCable::SegmentDamagePtrVector
agx::VectorPOD< SegmentDamage * > SegmentDamagePtrVector
Definition:
SegmentDamage.h:32
agxCable
Contain classes for 6 DOF lumped element cables/wires/ropes.
Definition:
able/Attachment.h:36
agxCable::operator+
AGXCABLE_EXPORT SegmentDamage operator+(const SegmentDamage &lhs, const SegmentDamage &rhs)
agx::VectorPOD
Vector containing 'raw' data.
Definition:
Vector.h:245
AGXCABLE_EXPORT
#define AGXCABLE_EXPORT
Definition:
agxCable/export.h:41
agxCable::DamageTypes::NUM_CABLE_DAMAGE_TYPES
@ NUM_CABLE_DAMAGE_TYPES
Definition:
CableDamageTypes.h:44
agxCable::DamageTypes::DamageType
DamageType
Listing of all the cable damage sources that is used by the cable damage estimation model.
Definition:
CableDamageTypes.h:27
CableDamageTypes.h
Real.h
agxCable::SegmentDamage
A SegmentDamage instance records damages estimates computed for a single cable segment.
Definition:
SegmentDamage.h:40
agxCable::operator+=
AGXCABLE_EXPORT SegmentDamage & operator+=(SegmentDamage &lhs, const SegmentDamage &rhs)
include
agxCable
SegmentDamage.h
Generated on Mon Jan 30 2023 15:44:19 for AGXDynamics by
1.8.17