AGXDynamics  2.35.0.2
Shaft.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
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 }
RotationalUnit.h
PowerLine.h
agx::Real
double Real
Definition: Real.h:42
agxDriveTrain
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
agxPowerLine::RotationalUnit::restore
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
AGXSTREAM_DECLARE_SERIALIZABLE
#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
agxDriveTrain::Shaft
A Shaft is the most basic PowerLine Unit.
Definition: Shaft.h:34
PowerLineConstraints.h
agxDriveTrain::Shaft::m_accumulatedAngle
agx::Real m_accumulatedAngle
Definition: Shaft.h:78
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agxPowerLine::RotationalUnit
A rotational unit has one degree of freedom.
Definition: RotationalUnit.h:29
agxPowerLine::RotationalUnit::store
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.