VR-Engage  2.2
Loading...
Searching...
No Matches
vreGlstudioFeetPerMinuteUpdater.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vreGlstudioFeetPerMinuteUpdater.h
7//! \brief Defines updaters for GLStudio feet-per-minute display values
8//! \ingroup vrePilotFrontend
9
10#pragma once
11
12#include <vrvGlStudioShared/DtGlStudioObjectAttributeUpdater.h>
13
14#include <matrix/vlVector.h>
15
17
18//! \brief Updates GLStudio feet-per-minute attribute for aircraft vertical speed display
19//!
20//! This specialized updater uses the DtExponentialSmoother to obtain velocity data
21//! and applies the correct conversion factor between meters per second and feet per minute.
22//! It provides smoothed vertical speed values for aircraft instrument displays.
23class PILOT_DLL DtVreGlStudioFeetPerMinuteUpdater : public makVrv::DtGlStudioObjectAttributeUpdater
24{
25public:
26 //! \brief Default constructor
28
29 //! \brief Virtual destructor
31
32 //! \brief Returns the value as a string
33 virtual std::string value(double time) override;
34
35protected:
36 //! \brief Current entity location vector
37 DtVector myLocation;
38
39 //! \brief Current entity velocity vector
40 DtVector myVelocity;
41
42 // Commented out member variables from previous implementation
43 // double myPreviousTime;
44 // double myPreviousAltitude;
45};
46
47//! \brief Creator class for registering the feet-per-minute updater
48//!
49//! Factory class that creates instances of DtVreGlStudioFeetPerMinuteUpdater.
50//! Used to register the updater with the GLStudio attribute updater system.
51//! \ingroup vrePilotFrontend
52class PILOT_DLL DtVreGlStudioFeetPerMinuteUpdaterCreator : public makVrv::DtGlStudioAttributeUpdaterCreator
53{
54public:
55 //! \brief Default constructor
57
58 //! \brief Virtual destructor
60
61 //! \brief Creates a new instance of the feet-per-minute updater
62 //! \return Pointer to a newly created DtVreGlStudioFeetPerMinuteUpdater
63 virtual makVrv::DtGlStudioAttributeUpdater* create() const override;
64
65protected:
66};
DtVreGlStudioFeetPerMinuteUpdaterCreator()
Default constructor.
virtual makVrv::DtGlStudioAttributeUpdater * create() const override
Creates a new instance of the feet-per-minute updater.
virtual ~DtVreGlStudioFeetPerMinuteUpdaterCreator() override
Virtual destructor.
DtVector myLocation
Current entity location vector.
Definition vreGlstudioFeetPerMinuteUpdater.h:37
DtVector myVelocity
Current entity velocity vector.
Definition vreGlstudioFeetPerMinuteUpdater.h:40
DtVreGlStudioFeetPerMinuteUpdater()
Default constructor.
virtual ~DtVreGlStudioFeetPerMinuteUpdater() override
Virtual destructor.
virtual std::string value(double time) override
Returns the value as a string.
Defines export/import macros for the Pilot Frontend library.
#define PILOT_DLL
Definition export.h:19