AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
Shaft.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or
9having been advised so by Algoryx Simulation AB for a time limited evaluation,
10or having purchased a valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19
20
24
25
26namespace agxDriveTrain
27{
29
35 {
36 public:
41
42 public:
43
47 virtual bool postUpdate(agx::Real timeStep) override;
48
53
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}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#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
A Shaft is the most basic PowerLine Unit.
Definition: Shaft.h:35
virtual bool postUpdate(agx::Real timeStep) override
Post update will update the accumulated angle.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
agx::Real getAccumulatedAngle() const
agx::Real m_accumulatedAngle
Definition: Shaft.h:81
Shaft()
Create a shaft.
virtual bool preUpdate(agx::Real timeStep) override
Functions called by a static function.
void setAccumulatedAngle(agx::Real angle)
Set the accumulated shaft angle in radians.
A rotational unit has one degree of freedom.
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
double Real
Definition: Real.h:41