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

#include <grid.h>

Collaboration diagram for grid:
[legend]

Classes

struct  SurfacePoint

Public Member Functions

bool TryElevation (char face, short u, short v, short &meters) const
bool InterpolateElevation (char face, double u, double v, float &meters) const
bool InterpolateRadarSurface (char face, double u, double v, float &meters, float &waterFraction) const
VECTOR2SHORT ElevationCenter () const
char ElevationFace () const
uint64_t ElevationRevision () const
void ElevationChanged () const
 grid (Viewscreen *ptrGame)
void CalculateCubeAndTcp ()
float AirglowGaussian ()
void Process ()
void ReceiveWholeGrid (const SRenderGrid &datapacket)
void RequestWholeGrid ()
void PrepareForReposition ()
void ClearGrid ()
void ClearGrid (short, short) const
void CalculateInsideArray (short t, short s) const
void RemoveBuildZone (short ordinal) const

Public Attributes

bool dataReady = false
bool geometryReady = false
bool patchGeometry = false
char dataPending = 0
bool wholeGridPending = false
bool resetWeatherOnNextGrid = false
bool makeBuildings = true
bool makeClouds = true
VECTOR2SHORT tcp = VECTOR2SHORT()
char cube = -1

Private Member Functions

bool TryRadarSurface (char face, short u, short v, short &meters, bool &water) const
void Trace (const char *msg, Logger::Level severity=Logger::Level::Info) const

Private Attributes

Viewscreen * viewscreen = nullptr
char oldcube = -1
VECTOR2SHORT oldtcp = VECTOR2SHORT()
bool g_bAboveCloudsOld = false
char requestedCube = -1
VECTOR2SHORT requestedTcp = VECTOR2SHORT()
bool wholeGridReceived = false
uint64_t elevationRevision = 1
uint64_t elevationIndexRevision = 0
std::unordered_map< uint32_t, SurfacePoint > elevationByPlot

Detailed Description

Definition at line 13 of file grid.h.

Constructor & Destructor Documentation

◆ grid()

grid::grid ( Viewscreen * ptrGame)

Definition at line 5 of file grid.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ AirglowGaussian()

float grid::AirglowGaussian ( )

Definition at line 196 of file grid.cpp.

Here is the caller graph for this function:

◆ CalculateCubeAndTcp()

void grid::CalculateCubeAndTcp ( )

Definition at line 101 of file grid.cpp.

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

◆ CalculateInsideArray()

void grid::CalculateInsideArray ( short t,
short s ) const
Todo
I think with doubling the elevation data sampling we won't need to do this?

Definition at line 1230 of file grid.cpp.

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

◆ ClearGrid() [1/2]

void grid::ClearGrid ( )

https://jira.risetvp.com/view.php?id=980

Definition at line 78 of file grid.cpp.

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

◆ ClearGrid() [2/2]

void grid::ClearGrid ( short l,
short m ) const

Definition at line 44 of file grid.cpp.

Here is the call graph for this function:

◆ ElevationCenter()

VECTOR2SHORT grid::ElevationCenter ( ) const
inline

Definition at line 52 of file grid.h.

◆ ElevationChanged()

void grid::ElevationChanged ( ) const
inline

Definition at line 55 of file grid.h.

Here is the caller graph for this function:

◆ ElevationFace()

char grid::ElevationFace ( ) const
inline

Definition at line 53 of file grid.h.

◆ ElevationRevision()

uint64_t grid::ElevationRevision ( ) const
inline

Definition at line 54 of file grid.h.

Here is the caller graph for this function:

◆ InterpolateElevation()

bool grid::InterpolateElevation ( char face,
double u,
double v,
float & meters ) const

Definition at line 167 of file grid.cpp.

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

◆ InterpolateRadarSurface()

bool grid::InterpolateRadarSurface ( char face,
double u,
double v,
float & meters,
float & waterFraction ) const

Definition at line 173 of file grid.cpp.

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

◆ PrepareForReposition()

void grid::PrepareForReposition ( )

Definition at line 271 of file grid.cpp.

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

◆ Process()

void grid::Process ( )
Todo
why are we doing the ones that aren't visible?!

Definition at line 310 of file grid.cpp.

Here is the caller graph for this function:

◆ ReceiveWholeGrid()

void grid::ReceiveWholeGrid ( const SRenderGrid & datapacket)

Definition at line 219 of file grid.cpp.

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

◆ RemoveBuildZone()

void grid::RemoveBuildZone ( short ordinal) const

Definition at line 13 of file grid.cpp.

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

◆ RequestWholeGrid()

void grid::RequestWholeGrid ( )

Definition at line 279 of file grid.cpp.

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

◆ Trace()

void grid::Trace ( const char * msg,
Logger::Level severity = Logger::Level::Info ) const
private

Definition at line 37 of file grid.cpp.

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

◆ TryElevation()

bool grid::TryElevation ( char face,
short u,
short v,
short & meters ) const

Definition at line 132 of file grid.cpp.

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

◆ TryRadarSurface()

bool grid::TryRadarSurface ( char face,
short u,
short v,
short & meters,
bool & water ) const
private

Definition at line 138 of file grid.cpp.

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

Member Data Documentation

◆ cube

char grid::cube = -1

Definition at line 45 of file grid.h.

◆ dataPending

char grid::dataPending = 0

Definition at line 39 of file grid.h.

◆ dataReady

bool grid::dataReady = false

Definition at line 36 of file grid.h.

◆ elevationByPlot

std::unordered_map<uint32_t, SurfacePoint> grid::elevationByPlot
mutableprivate

Definition at line 26 of file grid.h.

◆ elevationIndexRevision

uint64_t grid::elevationIndexRevision = 0
private

Definition at line 24 of file grid.h.

◆ elevationRevision

uint64_t grid::elevationRevision = 1
mutableprivate

Definition at line 24 of file grid.h.

◆ g_bAboveCloudsOld

bool grid::g_bAboveCloudsOld = false
private

Definition at line 19 of file grid.h.

◆ geometryReady

bool grid::geometryReady = false

Definition at line 37 of file grid.h.

◆ makeBuildings

bool grid::makeBuildings = true

Definition at line 42 of file grid.h.

◆ makeClouds

bool grid::makeClouds = true

Definition at line 43 of file grid.h.

◆ oldcube

char grid::oldcube = -1
private

Definition at line 17 of file grid.h.

◆ oldtcp

VECTOR2SHORT grid::oldtcp = VECTOR2SHORT()
private

Definition at line 18 of file grid.h.

◆ patchGeometry

bool grid::patchGeometry = false

Definition at line 38 of file grid.h.

◆ requestedCube

char grid::requestedCube = -1
private

Definition at line 20 of file grid.h.

◆ requestedTcp

VECTOR2SHORT grid::requestedTcp = VECTOR2SHORT()
private

Definition at line 21 of file grid.h.

◆ resetWeatherOnNextGrid

bool grid::resetWeatherOnNextGrid = false

Definition at line 41 of file grid.h.

◆ tcp

VECTOR2SHORT grid::tcp = VECTOR2SHORT()

Definition at line 44 of file grid.h.

◆ viewscreen

Viewscreen* grid::viewscreen = nullptr
private

Definition at line 15 of file grid.h.

◆ wholeGridPending

bool grid::wholeGridPending = false

Definition at line 40 of file grid.h.

◆ wholeGridReceived

bool grid::wholeGridReceived = false
private

Definition at line 22 of file grid.h.


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