Rise
The Vieneo Province
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, D3DXCOLOR color, int font=-1, std::string elementName="", int width=0, int height=0)
 
virtual bool HandleKeyPress (short key, bool shift)
 
virtual void OnPageChanged ()
 

Private Attributes

SpritenoThreat = nullptr
 
Spriteproximate = nullptr
 
SpritepotentialThreat = nullptr
 
SpritecollisionThreat = nullptr
 
float pixelPerKmX = 0.0f
 
float pixelPerKmY = 0.0f
 
std::vector< s_network_objectstargets
 
float iconOffsetX = 0.0f
 
float iconOffsetY = 0.0f
 
float headingTrueRad = 0.0f
 
D3DXVECTOR2 relativeCenter = D3DXVECTOR2(0, 0)
 
float rotate = 0.0f
 

Additional Inherited Members

- Protected Attributes inherited from Instrument
int x = 0
 
int y = 0
 
float xScale = 1.0f
 
float yScale = 1.0f
 
DeviceObjectpDevice = nullptr
 
Busbus = nullptr
 
Loggerlogger = nullptr
 
UINT defaultFont = 0
 
int uiRow = 0
 
bool showMenu = false
 
int uiMenuColumn = -1
 

Detailed Description

Definition at line 452 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 3 of file TCASOverlay.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ FrameMove()

void TCASOverlay::FrameMove ( float  fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 72 of file TCASOverlay.cpp.

◆ Render()

void TCASOverlay::Render ( )
overridevirtual

Implements Instrument.

Definition at line 21 of file TCASOverlay.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ collisionThreat

Sprite* TCASOverlay::collisionThreat = nullptr
private

Definition at line 457 of file Instrument.h.

◆ headingTrueRad

float TCASOverlay::headingTrueRad = 0.0f
private

Definition at line 463 of file Instrument.h.

◆ iconOffsetX

float TCASOverlay::iconOffsetX = 0.0f
private

Definition at line 461 of file Instrument.h.

◆ iconOffsetY

float TCASOverlay::iconOffsetY = 0.0f
private

Definition at line 462 of file Instrument.h.

◆ noThreat

Sprite* TCASOverlay::noThreat = nullptr
private

Definition at line 454 of file Instrument.h.

◆ pixelPerKmX

float TCASOverlay::pixelPerKmX = 0.0f
private

Definition at line 458 of file Instrument.h.

◆ pixelPerKmY

float TCASOverlay::pixelPerKmY = 0.0f
private

Definition at line 459 of file Instrument.h.

◆ potentialThreat

Sprite* TCASOverlay::potentialThreat = nullptr
private

Definition at line 456 of file Instrument.h.

◆ proximate

Sprite* TCASOverlay::proximate = nullptr
private

Definition at line 455 of file Instrument.h.

◆ relativeCenter

D3DXVECTOR2 TCASOverlay::relativeCenter = D3DXVECTOR2(0, 0)
private

Definition at line 464 of file Instrument.h.

◆ rotate

float TCASOverlay::rotate = 0.0f
private

Definition at line 465 of file Instrument.h.

◆ targets

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

Definition at line 460 of file Instrument.h.


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