AGX Dynamics  2.35.0.1
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 
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 
59  agx::Real stretch() const;
61  agx::Real bend() const;
63  agx::Real twist() const;
65 
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 }
#define AGXCABLE_EXPORT
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 ...
agx::Real twistRate() const
agx::Real stretchTension() const
agx::Real frictionForce() const
agx::Real normalForce() const
agx::Real tension() const
SegmentDamageState & operator+=(const SegmentDamageState &rhs)
agx::Real bendRate() const
agx::Real impactSpeed() const
agx::Real bendTension() const
agx::Real stretchRate() const
agx::Real contact() const
agx::Real twistTension() const
bool isValid(const CableDamageStateFilter &filter) const
Check if this SegmenDamageState has computed all states indicated by the given filter.
SegmentDamageState()
Create a SegmentDamageState with all states set to NaN.
agx::Real & operator[](size_t i)
agx::Real normalImpactSpeed() const
agx::Real stretch() const
agx::Real operator[](size_t i) const
agx::Real tangentialImpactSpeed() const
agx::Real & tangentialImpactSpeed()
Contain classes for 6 DOF lumped element cables/wires/ropes.
AGXCABLE_EXPORT std::ostream & operator<<(std::ostream &stream, const SegmentDamageState &damage)
double Real
Definition: Real.h:42