AGX Dynamics  2.37.2.0
Shaft.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
9 having been advised so by Algoryx Simulation AB for a time limited evaluation,
10 or having purchased a 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 
20 
21 #include <agxPowerLine/PowerLine.h>
24 
25 
26 namespace agxDriveTrain
27 {
29 
35  {
36  public:
40  Shaft();
41 
42  public:
43 
47  virtual bool postUpdate(agx::Real timeStep) override;
48 
52  agx::Real getAccumulatedAngle() const;
53 
57  void setAccumulatedAngle(agx::Real angle);
58 
62  virtual bool preUpdate(agx::Real timeStep) override;
63 
67  virtual bool store(agxStream::StorageStream& str) const override;
68 
70 
74  virtual bool restore(agxStream::StorageStream& str) override;
75 
77 
79 
80  protected:
82  virtual ~Shaft();
83  };
84 }
A rotational unit has one degree of freedom.
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
A Shaft is the most basic PowerLine Unit.
Definition: Shaft.h:34
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::Real m_accumulatedAngle
Definition: Shaft.h:78
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
#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 AGXMODEL_EXPORT
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
double Real
Definition: Real.h:42