AGX Dynamics  2.37.2.0
SegmentDamageState.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 <agx/Real.h>
20 #include <agx/Vector.h>
21 
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;
37 
44  {
45  public:
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 
99 
100  private:
102  };
103 
104 
105  AGXCABLE_EXPORT std::ostream& operator<<(std::ostream& stream, const SegmentDamageState& damage);
106 }
AGXCABLE_EXPORT std::ostream & operator<<(std::ostream &stream, const SegmentDamageState &damage)
Contain classes for 6 DOF lumped element cables/wires/ropes.
A bit set used by the cable damage framework to control which parts of the cable damage input that a ...
A SegmenDamageState instance records a collection of states computed from a cable for later use by a ...
double Real
Definition: Real.h:42
#define AGXCABLE_EXPORT
AGXCABLE_EXPORT SegmentDamage & operator+=(SegmentDamage &lhs, const SegmentDamage &rhs)