Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
gva::StateDRV Struct Reference

Class definition of the StateDRV. More...

#include <drv.h>

Inheritance diagram for gva::StateDRV:
Inheritance graph
Collaboration diagram for gva::StateDRV:
Collaboration graph

Public Member Functions

 StateDRV ()
 Construct a new State DRV object.
 
void UpdateVideo ()
 Update the video.
 
void entry () override
 Entry into the state.
 
void exit () override
 Exit from the state.
 
void react (EventKeyPowerOn const &) override
 React to an event.
 
void react (EventKeySA const &) override
 React to an SA change event.
 
void react (EventKeyWPN const &) override
 React to a WPN change event.
 
void react (EventKeyDEF const &) override
 React to a DRV change event.
 
void react (EventKeySYS const &) override
 React to a SYS change event.
 
void react (EventKeyDRV const &) override
 React to a DRV change event.
 
void react (EventKeySTR const &) override
 React to a COM change event.
 
void react (EventKeyCOM const &) override
 React to a COM change event.
 
void react (EventKeyBMS const &) override
 React to a COM change event.
 
void react (EventKeyAlarms const &) override
 React to a COM change event.
 
void react (EventKeyFunction const &e) override
 React to a COM change event.
 
- Public Member Functions inherited from gva::Hmi
virtual ~Hmi ()=default
 The default constructor.
 

Additional Inherited Members

- Public Types inherited from gva::tinyfsm::Fsm< Hmi >
using fsmtype = Fsm< Hmi >
 Templated FSM.
 
using state_ptr_t = Hmi *
 Current state pointer.
 
- Static Public Member Functions inherited from gva::Hmi
static void KeySide (GvaKeyEnum key)
 Process side label key presses.
 
static GvaKeyEnum Key (GvaKeyEnum key)
 Process key presses.
 
static GvaKeyEnum KeySA (GvaKeyEnum key, GvaKeyEnum *current)
 Process SA key press.
 
static GvaKeyEnum KeyWPN (GvaKeyEnum key)
 Process WPN key press.
 
static GvaKeyEnum KeyDEF (GvaKeyEnum key)
 Process DEF key press.
 
static GvaKeyEnum KeySYS (GvaKeyEnum key)
 Process SYS key press.
 
static GvaKeyEnum KeyDRV (GvaKeyEnum key)
 Process DRV key press.
 
static GvaKeyEnum KeySTR (GvaKeyEnum key)
 Process STR key press.
 
static GvaKeyEnum KeyCOM (GvaKeyEnum key)
 Process COM key press.
 
static GvaKeyEnum KeyBMS (GvaKeyEnum key)
 Process BMS key press.
 
static GvaKeyEnum KeyAlarms (GvaKeyEnum key)
 Process Alarms key press.
 
static void Reset ()
 Reset the HMI widgets.
 
static void SetCanvasPng (const std::string &file)
 Set a screen PNG file as background.
 
static ScreenGvaGetRendrer ()
 Get the screen render object.
 
static ScreenGetScreen ()
 Get the screen object.
 
static void Labels (LabelModeEnum labels)
 Toggle onscreen label states.
 
static void ClearAlarms (std::shared_ptr< ScreenGva > screen_render)
 Clear the alarms.
 
- Static Public Member Functions inherited from gva::tinyfsm::Fsm< Hmi >
static constexpr S & state (void)
 public, leaving ability to access state instance (e.g. on Reset)
 
static constexpr bool is_in_state (void)
 Check if in state.
 
static void set_initial_state ()
 state machine functions
 
static void Reset ()
 Reset state machine.
 
static void enter ()
 Enter state.
 
static void start ()
 start state
 
static void dispatch (E const &event)
 Dispatch a new state.
 
- Static Public Attributes inherited from gva::tinyfsm::Fsm< Hmi >
static state_ptr_t current_state_ptr
 Current state pointer.
 
- Protected Member Functions inherited from gva::tinyfsm::Fsm< Hmi >
void transit (void)
 state transition functions
 
void transit (ActionFunction action_function)
 Transition to new state.
 
void transit (ActionFunction action_function, ConditionFunction condition_function)
 Transit to new state.
 
- Static Protected Attributes inherited from gva::Hmi
static std::shared_ptr< ViewGvaManagermanager_
 The HMI manager.
 
static ResolutionType view_
 The resolution type.
 
static FunctionSelect top_
 The function select widget.
 
static CommonTaskKeys bottom_
 The common task keys at the bottom of the screen.
 
static Canvas canvas_
 The screen canvas.
 
static Screen screen_
 The screen.
 
static std::shared_ptr< Updaterupdater_
 The updater to use.
 
static std::shared_ptr< ScreenGvascreen_render_
 The screen render object.
 
static std::shared_ptr< rendererMapmap_
 A map object.
 
static GvaFunctionEnum lastState_
 The last state.
 
static bool alarmson_ = false
 True is alarms being displayed.
 

Detailed Description

Class definition of the StateDRV.

Member Function Documentation

◆ entry()

void gva::StateDRV::entry ( void  )
overridevirtual

Entry into the state.

Reimplemented from gva::Hmi.

◆ exit()

void gva::StateDRV::exit ( void  )
overridevirtual

Exit from the state.

Reimplemented from gva::Hmi.

◆ react() [1/11]

void gva::StateDRV::react ( EventKeyAlarms const )
overridevirtual

React to a COM change event.

Reimplemented from gva::Hmi.

◆ react() [2/11]

void gva::StateDRV::react ( EventKeyBMS const )
overridevirtual

React to a COM change event.

Reimplemented from gva::Hmi.

◆ react() [3/11]

void gva::StateDRV::react ( EventKeyCOM const )
overridevirtual

React to a COM change event.

Reimplemented from gva::Hmi.

◆ react() [4/11]

void gva::StateDRV::react ( EventKeyDEF const )
overridevirtual

React to a DRV change event.

Reimplemented from gva::Hmi.

◆ react() [5/11]

void gva::StateDRV::react ( EventKeyDRV const )
overridevirtual

React to a DRV change event.

Reimplemented from gva::Hmi.

◆ react() [6/11]

void gva::StateDRV::react ( EventKeyFunction const e)
overridevirtual

React to a COM change event.

Parameters
ethe event

Reimplemented from gva::Hmi.

◆ react() [7/11]

void gva::StateDRV::react ( EventKeyPowerOn const )
overridevirtual

React to an event.

Reimplemented from gva::Hmi.

◆ react() [8/11]

void gva::StateDRV::react ( EventKeySA const )
overridevirtual

React to an SA change event.

Reimplemented from gva::Hmi.

◆ react() [9/11]

void gva::StateDRV::react ( EventKeySTR const )
overridevirtual

React to a COM change event.

Reimplemented from gva::Hmi.

◆ react() [10/11]

void gva::StateDRV::react ( EventKeySYS const )
overridevirtual

React to a SYS change event.

Reimplemented from gva::Hmi.

◆ react() [11/11]

void gva::StateDRV::react ( EventKeyWPN const )
overridevirtual

React to a WPN change event.

Reimplemented from gva::Hmi.


The documentation for this struct was generated from the following files: