C# Класс LiveTelemetry.LiveTelemetry

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Joystick_Button int

Открытые методы

Метод Описание
LiveTelemetry ( ) : System

Initializes for the window. This setups the data back-end framework, as well searches for joystick configuration. Set-ups interface controls.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Joy_Release ( Joystick joystick, int button ) : void

This method listens for joystick button releases and updates the StatusMenu property. This will in turn update the user interface.

LiveTelemetry_FormClosing ( object sender, FormClosingEventArgs e ) : void

Close the Triton framework properly. This stops all services and what not is running.

SetStatusControls ( object sender, EventArgs e ) : void

Reinitializes the panel changable with user defined button/joystick. The function invokes execution to the main interface thread. 0: general data/wear A1GP Style (Default) 1: Tyre temperature, wear and brakes. 2: Lap times list 3: Split times.

SetupUI ( ) : void

Completely redraws the user interface. It will bring this window into 3 modes: A) Waiting for simulator. B) Waiting for session. C) Telemetry window. The simulator panel displays all installed modules of simulators (if an image is found). The session panel displays the full-size simulator image (if exists) with "waiting for session". The telemetry window adds the controls track map, lap chart, session status. It initializes panel sizes via Telemetry_ResizePanels and sets the user panel via SetStatusControls.

Telemetry_ResizePanels ( object sender, EventArgs e ) : void

This method resizes the interface to accommodate different window sizes possible on different systems and monitors. This method is dependant on the different display modes as described at the method SetupUI(). The exact details still need further testing across various resolutions and aspect ratio's.

Tmr_HiSpeed_Tick ( object sender, EventArgs e ) : void

High-speed user interface updates. This runs gauges that need fluent updates like the A1GP(general data) and tyres. The execution is invoked into the windows interface context.

Tmr_LwSpeed_Tick ( object sender, EventArgs e ) : void

Low-speed interface updater. All things that keep track of lap times which don't have to be super fast.

Tmr_MdSpeed_Tick ( object sender, EventArgs e ) : void

Medium-speed interface updates. This is the time keeper (Session status) and track map. The track map could also been placed into high-speed, but takes up too much CPU-time for little gain.

btGarage_Click ( object sender, EventArgs e ) : void
btNetwork_Click ( object sender, EventArgs e ) : void
btSettings_Click ( object sender, EventArgs e ) : void
mUpdateUI ( object sender ) : void

Completely re updates user interfaces upon sim start/stop or session start/stop. It will call SetupUI(true) in the windows UI context.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

LiveTelemetry() публичный Метод

Initializes for the window. This setups the data back-end framework, as well searches for joystick configuration. Set-ups interface controls.
public LiveTelemetry ( ) : System
Результат System

Описание свойств

Joystick_Button публичное статическое свойство

public static int Joystick_Button
Результат int