AGXDynamics
2.35.0.2
SegmentDamageState.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/CableDamageStateTypes.h
>
23
#include <
agxCable/export.h
>
24
#include <cstddef>
25
#include <iosfwd>
26
27
28
namespace
agxCable
29
{
30
class
CableDamageStateFilter;
31
}
32
33
namespace
agxCable
34
{
35
class
SegmentDamageState;
36
using
SegmentDamageStateVector
=
agx::Vector<SegmentDamageState>
;
37
43
class
AGXCABLE_EXPORT
SegmentDamageState
44
{
45
public
:
49
SegmentDamageState
();
50
51
agx::Real
stretchTension()
const
;
52
agx::Real
bendTension()
const
;
53
agx::Real
twistTension()
const
;
54
agx::Real
frictionForce()
const
;
55
agx::Real
normalForce()
const
;
56
agx::Real
impactSpeed()
const
;
57
agx::Real
normalImpactSpeed()
const
;
58
agx::Real
tangentialImpactSpeed()
const
;
59
agx::Real
stretch()
const
;
60
agx::Real
stretchRate()
const
;
61
agx::Real
bend()
const
;
62
agx::Real
bendRate()
const
;
63
agx::Real
twist()
const
;
64
agx::Real
twistRate()
const
;
65
66
agx::Real
& stretchTension();
67
agx::Real
& bendTension();
68
agx::Real
& twistTension();
69
agx::Real
& frictionForce();
70
agx::Real
& normalForce();
71
agx::Real
& impactSpeed();
72
agx::Real
& normalImpactSpeed();
73
agx::Real
& tangentialImpactSpeed();
74
agx::Real
& stretch();
75
agx::Real
& stretchRate();
76
agx::Real
& bend();
77
agx::Real
& bendRate();
78
agx::Real
& twist();
79
agx::Real
& twistRate();
80
81
82
agx::Real
total()
const
;
83
agx::Real
tension()
const
;
84
agx::Real
contact()
const
;
85
86
agx::Real
& operator[](
size_t
i);
87
agx::Real
operator[](
size_t
i)
const
;
88
96
bool
isValid(
const
CableDamageStateFilter
& filter)
const
;
97
98
SegmentDamageState
&
operator+=
(
const
SegmentDamageState
& rhs);
99
100
private
:
101
agx::Real
m_damages[
DamageStateTypes::NUM_CABLE_DAMAGE_DATA_TYPES
];
102
};
103
104
105
AGXCABLE_EXPORT
std::ostream&
operator<<
(std::ostream& stream,
const
SegmentDamageState
& damage);
106
}
agx::Real
double Real
Definition:
Real.h:42
agxCable::DamageStateTypes::NUM_CABLE_DAMAGE_DATA_TYPES
@ NUM_CABLE_DAMAGE_DATA_TYPES
Definition:
CableDamageStateTypes.h:45
export.h
Vector.h
agxCable::CableDamageStateFilter
A bit set used by the cable damage framework to control which parts of the cable damage input that a ...
Definition:
CableDamageStateFilter.h:28
agx::Vector< SegmentDamageState >
agxCable
Contain classes for 6 DOF lumped element cables/wires/ropes.
Definition:
able/Attachment.h:36
CableDamageStateTypes.h
AGXCABLE_EXPORT
#define AGXCABLE_EXPORT
Definition:
agxCable/export.h:41
agxCable::operator<<
AGXCABLE_EXPORT std::ostream & operator<<(std::ostream &stream, const SegmentDamageState &damage)
agxCable::SegmentDamageState
A SegmenDamageState instance records a collection of states computed from a cable for later use by a ...
Definition:
SegmentDamageState.h:43
Real.h
agxCable::operator+=
AGXCABLE_EXPORT SegmentDamage & operator+=(SegmentDamage &lhs, const SegmentDamage &rhs)
include
agxCable
SegmentDamageState.h
Generated on Mon Jan 30 2023 15:44:19 for AGXDynamics by
1.8.17