AGXDynamics
2.31.1.0
EngineDampingUpdater.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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
20
#include <
agxSDK/StepEventListener.h
>
21
#include <
agxDriveTrain/Engine.h
>
22
23
24
namespace
agxDriveTrain
25
{
26
27
AGX_DECLARE_POINTER_TYPES
(
EngineDampingUpdater
);
28
37
class
AGXMODEL_EXPORT
EngineDampingUpdater
:
public
agxSDK::StepEventListener
38
{
39
public
:
40
EngineDampingUpdater
(
agxDriveTrain::Engine
* engine);
41
virtual
void
pre(
const
agx::TimeStamp
&)
override
;
42
virtual
void
post(
const
agx::TimeStamp
&)
override
;
43
44
AGXSTREAM_DECLARE_SERIALIZABLE
(
agxDriveTrain::EngineDampingUpdater
);
45
46
protected
:
47
EngineDampingUpdater
();
48
virtual
~EngineDampingUpdater
() {}
49
50
private
:
51
agxDriveTrain::EngineRef
m_engine;
52
agx::Real
m_defaultMass;
53
};
54
}
55
Engine.h
agxSDK::StepEventListener
Derive from this class to implement a listener for simulation Step events.
Definition:
StepEventListener.h:40
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agx::TimeStamp
agx::Real TimeStamp
Definition:
TimeStamp.h:26
agxDriveTrain
Definition:
Clutch.h:24
StepEventListener.h
agxDriveTrain::EngineDampingUpdater::~EngineDampingUpdater
virtual ~EngineDampingUpdater()
Definition:
EngineDampingUpdater.h:48
agx::ref_ptr< Engine >
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:206
agxDriveTrain::EngineDampingUpdater
The engine provided by the power line implementation is based on Euler integration and is unstable in...
Definition:
EngineDampingUpdater.h:37
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
agx::Real
double Real
Definition:
Real.h:42
agxDriveTrain::Engine
An engine that is driven by an EnginePowerGenerator.
Definition:
Engine.h:87
include
agxDriveTrain
EngineDampingUpdater.h
Generated on Thu Jan 13 2022 19:49:28 for AGXDynamics by
1.8.13