Rise
The Vieneo Province
Loading...
Searching...
No Matches
TCASOverlay Class Reference

#include <Instrument.h>

Inheritance diagram for TCASOverlay:
[legend]
Collaboration diagram for TCASOverlay:
[legend]

Public Member Functions

 TCASOverlay (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font * > prmFonts)
void Render () override
void FrameMove (float fElapsed) override
Public Member Functions inherited from Instrument
 Instrument (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font * > prmFonts)
void DrawText (const WCHAR *str, int relativeX, int relativeY, float prmZ, int flags, RiseMath::Color color, int font=-1, std::string elementName="", int width=0, int height=0) const
virtual bool HandleKeyPress (short key, bool shift)
virtual bool UpdateKeyRepeat (const unsigned char *keys, bool shift, float elapsed)
virtual void OnPageChanged ()

Private Attributes

Sprite * noThreat = nullptr
Sprite * proximate = nullptr
Sprite * potentialThreat = nullptr
Sprite * collisionThreat = nullptr
float pixelPerKmX = 0.0f
float pixelPerKmY = 0.0f
std::vector< s_network_objects > targets
float iconOffsetX = 0.0f
float iconOffsetY = 0.0f
float headingTrueRad = 0.0f
RiseMath::Vector2 relativeCenter = RiseMath::Vector2(0, 0)
float rotate = 0.0f

Additional Inherited Members

Public Attributes inherited from Instrument
std::string profileName = "Instrument"
Protected Attributes inherited from Instrument
int x = 0
int y = 0
float xScale = 1.0f
float yScale = 1.0f
DeviceObject * pDevice = nullptr
Bus * bus = nullptr
Logger * logger = nullptr
UINT defaultFont = 0
bool cacheFixedText = false
int uiRow = 0
bool showMenu = false
int uiMenuColumn = -1

Detailed Description

Definition at line 686 of file Instrument.h.

Constructor & Destructor Documentation

◆ TCASOverlay()

TCASOverlay::TCASOverlay ( int prmX,
int prmY,
float prmXScale,
float prmYScale,
Bus * prmBus,
Logger * prmLogger,
DeviceObject * prmDevice,
std::vector< Font * > prmFonts )

Definition at line 5 of file TCASOverlay.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ FrameMove()

void TCASOverlay::FrameMove ( float fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 98 of file TCASOverlay.cpp.

Here is the call graph for this function:

◆ Render()

void TCASOverlay::Render ( )
overridevirtual

Implements Instrument.

Definition at line 23 of file TCASOverlay.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ collisionThreat

Sprite* TCASOverlay::collisionThreat = nullptr
private

Definition at line 691 of file Instrument.h.

◆ headingTrueRad

float TCASOverlay::headingTrueRad = 0.0f
private

Definition at line 697 of file Instrument.h.

◆ iconOffsetX

float TCASOverlay::iconOffsetX = 0.0f
private

Definition at line 695 of file Instrument.h.

◆ iconOffsetY

float TCASOverlay::iconOffsetY = 0.0f
private

Definition at line 696 of file Instrument.h.

◆ noThreat

Sprite* TCASOverlay::noThreat = nullptr
private

Definition at line 688 of file Instrument.h.

◆ pixelPerKmX

float TCASOverlay::pixelPerKmX = 0.0f
private

Definition at line 692 of file Instrument.h.

◆ pixelPerKmY

float TCASOverlay::pixelPerKmY = 0.0f
private

Definition at line 693 of file Instrument.h.

◆ potentialThreat

Sprite* TCASOverlay::potentialThreat = nullptr
private

Definition at line 690 of file Instrument.h.

◆ proximate

Sprite* TCASOverlay::proximate = nullptr
private

Definition at line 689 of file Instrument.h.

◆ relativeCenter

RiseMath::Vector2 TCASOverlay::relativeCenter = RiseMath::Vector2(0, 0)
private

Definition at line 698 of file Instrument.h.

◆ rotate

float TCASOverlay::rotate = 0.0f
private

Definition at line 699 of file Instrument.h.

◆ targets

std::vector<s_network_objects> TCASOverlay::targets
private

Definition at line 694 of file Instrument.h.


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