AGXDynamics
2.35.0.3
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
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
agxDriveTrain::EngineDampingUpdater
The engine provided by the power line implementation is based on Euler integration and is unstable in...
Definition:
EngineDampingUpdater.h:37
agx::Real
double Real
Definition:
Real.h:42
agxSDK::StepEventListener
Derive from this class to implement a listener for simulation step events.
Definition:
StepEventListener.h:37
agxDriveTrain
A library of agxPowerLine components designed to model the various parts of a vehicle drive train.
StepEventListener.h
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::EngineDampingUpdater::~EngineDampingUpdater
virtual ~EngineDampingUpdater()
Definition:
EngineDampingUpdater.h:48
agx::ref_ptr< Engine >
Engine.h
agxDriveTrain::Engine
An engine that is driven by an EnginePowerGenerator.
Definition:
Engine.h:87
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agx::TimeStamp
agx::Real TimeStamp
Definition:
TimeStamp.h:26
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
include
agxDriveTrain
EngineDampingUpdater.h
Generated on Fri Feb 10 2023 14:06:09 for AGXDynamics by
1.8.17