AGX Dynamics  2.35.0.1
EngineDampingUpdater.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 
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 
#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 AGXMODEL_EXPORT
The engine provided by the power line implementation is based on Euler integration and is unstable in...
virtual void pre(const agx::TimeStamp &) override
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
virtual void post(const agx::TimeStamp &) override
Called after a step is taken in the simulation Implement this method in the derived class to get call...
EngineDampingUpdater(agxDriveTrain::Engine *engine)
An engine that is driven by an EnginePowerGenerator.
Definition: Engine.h:88
Derive from this class to implement a listener for simulation step events.
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
double Real
Definition: Real.h:42
agx::Real TimeStamp
Definition: TimeStamp.h:26