AGX Dynamics  2.37.3.2
CablePlasticity.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 
21 
22 #include <agxCable/export.h>
23 #include <agxCable/Direction.h>
25 
26 namespace agxCable
27 {
29 
31  {
32  public:
34 
35  void setYieldPoint(agx::Real yieldPoint, agxCable::Direction direction);
36  agx::Real getYieldPoint(agxCable::Direction direction) const;
37 
39 
41  public:
42  CablePlasticity(const agx::Real (& yieldPoints)[ALL_DIRECTIONS],
43  agx::Vector<agxCable::DeformationData>&& deformations);
44 
45  virtual void onPreStep() override;
46  virtual void onPostStep() override;
48 
49  protected:
50  virtual ~CablePlasticity();
51 
52  private:
53  agx::Real m_yieldPoints[ALL_DIRECTIONS];
54  agx::Vector<agxCable::DeformationData> m_deformations;
55  };
56 }
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
Direction
The different directions in which a cable can be deformed.
Definition: Direction.h:31
Contain classes for 6 DOF lumped element cables/wires/ropes.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
double Real
Definition: Real.h:42
Base implementation of a component (e.g., specific functionality) in linked structures.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
#define AGXCABLE_EXPORT
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97