AGX Dynamics  2.35.0.1
CablePlasticity.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 
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);
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:248
#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
#define AGXCABLE_EXPORT
agx::Real getYieldPoint(agxCable::Direction direction) const
void setYieldPoint(agx::Real yieldPoint, agxCable::Direction direction)
Base implementation of a component (e.g., specific functionality) in linked structures.
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
Contain classes for 6 DOF lumped element cables/wires/ropes.
Direction
The different directions in which a cable can be deformed.
Definition: Direction.h:32
@ ALL_DIRECTIONS
Definition: Direction.h:37
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
double Real
Definition: Real.h:42