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

#include <Instrument.h>

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

Public Member Functions

 MovingMap (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 Member Functions

bool WeatherRadarSelected () const
void RenderWeatherRadar ()
void RenderGpws ()

Private Attributes

Sprite * compass = nullptr
Sprite * headingBug = nullptr
Sprite * bearingBug = nullptr
Sprite * lastBug = nullptr
Sprite * flyoverFix = nullptr
Sprite * malteseFix = nullptr
Sprite * touchdown = nullptr
Sprite * userPin = nullptr
Sprite * assay = nullptr
Rendering::RenderTexture * assayTexture = nullptr
Rendering::RenderTexture * terrainTexture = nullptr
Microsoft::WRL::ComPtr< Rendering::RenderTexture > terrainStipple [2]
unsigned terrainDensity [drawlistC] = {}
std::vector< unsigned > obstacleDensity
float terrainMinimum = FLT_MAX
float terrainMaximum = -FLT_MAX
DWORD terrainMinimumColor = 0xff20d040
DWORD terrainMaximumColor = 0xff20d040
Sprite * arena = nullptr
Sprite * classB = nullptr
Sprite * classG = nullptr
float pixelPerKmX = 0.0f
float pixelPerKmY = 0.0f
std::vector< Swaypoint > waypoints
std::vector< Swaypoint > classGs
float headingTrueRad = 0.0f
VECTOR2SHORT assayGrid [21]
RiseMath::Matrix assayTransform [21]
int assayTileCount = 0
bool assayUsesProjection = false
DWORD assayColor [21] = {}
RiseMath::Matrix colorGrid [drawlistC]
int terrainTileCount = 0
DWORD colorColor [drawlistC] = {}
DWORD terrainColors [drawlistC] = {}
bool terrainMode = false
std::vector< RiseMath::Matrix > obstacleGrid
std::vector< DWORD > obstacleColors
RiseMath::Vector2 relativeCenter = RiseMath::Vector2(0, 0)
float remoteAssayPower = 0.0f
bool hasAirspace = false
RiseMath::Matrix lookAtLH

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 285 of file Instrument.h.

Constructor & Destructor Documentation

◆ MovingMap()

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

Definition at line 8 of file MovingMap.cpp.

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

Member Function Documentation

◆ FrameMove()

void MovingMap::FrameMove ( float fElapsed)
overridevirtual

Reimplemented from Instrument.

Definition at line 256 of file MovingMap.cpp.

◆ Render()

void MovingMap::Render ( )
overridevirtual
Todo
internal list sorted by distance so we can take top 30?

Implements Instrument.

Definition at line 57 of file MovingMap.cpp.

Here is the call graph for this function:

◆ RenderGpws()

void MovingMap::RenderGpws ( )
private

Definition at line 636 of file MovingMap.cpp.

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

◆ RenderWeatherRadar()

void MovingMap::RenderWeatherRadar ( )
private

Definition at line 597 of file MovingMap.cpp.

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

◆ WeatherRadarSelected()

bool MovingMap::WeatherRadarSelected ( ) const
private

Definition at line 589 of file MovingMap.cpp.

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

Member Data Documentation

◆ arena

Sprite* MovingMap::arena = nullptr
private

Definition at line 310 of file Instrument.h.

◆ assay

Sprite* MovingMap::assay = nullptr
private

Definition at line 301 of file Instrument.h.

◆ assayColor

DWORD MovingMap::assayColor[21] = {}
private

Definition at line 323 of file Instrument.h.

◆ assayGrid

VECTOR2SHORT MovingMap::assayGrid[21]
private

Definition at line 319 of file Instrument.h.

◆ assayTexture

Rendering::RenderTexture* MovingMap::assayTexture = nullptr
private

Definition at line 302 of file Instrument.h.

◆ assayTileCount

int MovingMap::assayTileCount = 0
private

Definition at line 321 of file Instrument.h.

◆ assayTransform

RiseMath::Matrix MovingMap::assayTransform[21]
private

Definition at line 320 of file Instrument.h.

◆ assayUsesProjection

bool MovingMap::assayUsesProjection = false
private

Definition at line 322 of file Instrument.h.

◆ bearingBug

Sprite* MovingMap::bearingBug = nullptr
private

Definition at line 291 of file Instrument.h.

◆ classB

Sprite* MovingMap::classB = nullptr
private

Definition at line 311 of file Instrument.h.

◆ classG

Sprite* MovingMap::classG = nullptr
private

Definition at line 312 of file Instrument.h.

◆ classGs

std::vector<Swaypoint> MovingMap::classGs
private

Definition at line 317 of file Instrument.h.

◆ colorColor

DWORD MovingMap::colorColor[drawlistC] = {}
private

Definition at line 326 of file Instrument.h.

◆ colorGrid

RiseMath::Matrix MovingMap::colorGrid[drawlistC]
private

Definition at line 324 of file Instrument.h.

◆ compass

Sprite* MovingMap::compass = nullptr
private

Definition at line 289 of file Instrument.h.

◆ flyoverFix

Sprite* MovingMap::flyoverFix = nullptr
private

Definition at line 295 of file Instrument.h.

◆ hasAirspace

bool MovingMap::hasAirspace = false
private

Definition at line 333 of file Instrument.h.

◆ headingBug

Sprite* MovingMap::headingBug = nullptr
private

Definition at line 290 of file Instrument.h.

◆ headingTrueRad

float MovingMap::headingTrueRad = 0.0f
private

Definition at line 318 of file Instrument.h.

◆ lastBug

Sprite* MovingMap::lastBug = nullptr
private

Definition at line 292 of file Instrument.h.

◆ lookAtLH

RiseMath::Matrix MovingMap::lookAtLH
private

Definition at line 334 of file Instrument.h.

◆ malteseFix

Sprite* MovingMap::malteseFix = nullptr
private

Definition at line 296 of file Instrument.h.

◆ obstacleColors

std::vector<DWORD> MovingMap::obstacleColors
private

Definition at line 330 of file Instrument.h.

◆ obstacleDensity

std::vector<unsigned> MovingMap::obstacleDensity
private

Definition at line 306 of file Instrument.h.

◆ obstacleGrid

std::vector<RiseMath::Matrix> MovingMap::obstacleGrid
private

Definition at line 329 of file Instrument.h.

◆ pixelPerKmX

float MovingMap::pixelPerKmX = 0.0f
private

Definition at line 314 of file Instrument.h.

◆ pixelPerKmY

float MovingMap::pixelPerKmY = 0.0f
private

Definition at line 315 of file Instrument.h.

◆ relativeCenter

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

Definition at line 331 of file Instrument.h.

◆ remoteAssayPower

float MovingMap::remoteAssayPower = 0.0f
private

Definition at line 332 of file Instrument.h.

◆ terrainColors

DWORD MovingMap::terrainColors[drawlistC] = {}
private

Definition at line 327 of file Instrument.h.

◆ terrainDensity

unsigned MovingMap::terrainDensity[drawlistC] = {}
private

Definition at line 305 of file Instrument.h.

◆ terrainMaximum

float MovingMap::terrainMaximum = -FLT_MAX
private

Definition at line 307 of file Instrument.h.

◆ terrainMaximumColor

DWORD MovingMap::terrainMaximumColor = 0xff20d040
private

Definition at line 308 of file Instrument.h.

◆ terrainMinimum

float MovingMap::terrainMinimum = FLT_MAX
private

Definition at line 307 of file Instrument.h.

◆ terrainMinimumColor

DWORD MovingMap::terrainMinimumColor = 0xff20d040
private

Definition at line 308 of file Instrument.h.

◆ terrainMode

bool MovingMap::terrainMode = false
private

Definition at line 328 of file Instrument.h.

◆ terrainStipple

Microsoft::WRL::ComPtr<Rendering::RenderTexture> MovingMap::terrainStipple[2]
private

Definition at line 304 of file Instrument.h.

◆ terrainTexture

Rendering::RenderTexture* MovingMap::terrainTexture = nullptr
private

Definition at line 303 of file Instrument.h.

◆ terrainTileCount

int MovingMap::terrainTileCount = 0
private

Definition at line 325 of file Instrument.h.

◆ touchdown

Sprite* MovingMap::touchdown = nullptr
private

Definition at line 297 of file Instrument.h.

◆ userPin

Sprite* MovingMap::userPin = nullptr
private

Definition at line 298 of file Instrument.h.

◆ waypoints

std::vector<Swaypoint> MovingMap::waypoints
private

Definition at line 316 of file Instrument.h.


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