AGX Dynamics  2.37.2.0
EngineDampingUpdater.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 
18 #pragma once
19 
21 #include <agxDriveTrain/Engine.h>
22 
23 
24 namespace agxDriveTrain
25 {
26 
28 
38  {
39  public:
41  virtual void pre(const agx::TimeStamp&) override;
42  virtual void post(const agx::TimeStamp&) override;
43 
45 
46  protected:
48  virtual ~EngineDampingUpdater() {}
49 
50  private:
51  agxDriveTrain::EngineRef m_engine;
52  agx::Real m_defaultMass;
53  };
54 }
55 
Derive from this class to implement a listener for simulation step events.
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agx::Real TimeStamp
Definition: TimeStamp.h:26
A library of agxPowerLine components designed to model the various parts of a vehicle drive train...
#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
The engine provided by the power line implementation is based on Euler integration and is unstable in...
#define AGXMODEL_EXPORT
double Real
Definition: Real.h:42
An engine that is driven by an EnginePowerGenerator.
Definition: Engine.h:87