HOG2
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
MapOverlay Class Reference

#include <MapOverlay.h>

Collaboration diagram for MapOverlay:
Collaboration graph
[legend]

Public Member Functions

 MapOverlay (Map *m)
 
MapGetMap ()
 
void Clear ()
 
void SetOverlayValue (int x, int y, double value)
 
double GetOverlayValue (int x, int y)
 
void OpenGLDraw () const
 
std::string SVGDraw () const
 
void Draw (Graphics::Display &display) const
 
void SetTransparentValue (double v)
 
rgbColor GetValueColor (double value) const
 
void SetColorMap (int val)
 
int GetColorMap ()
 
void SetColor (int value, rgbColor c)
 
void IncreaseColorMap ()
 
void DecreaseColorMap ()
 
double GetMaxValue ()
 
double GetMinValue ()
 

Static Public Attributes

static const int customColorMap = -1
 

Private Member Functions

void resetValues ()
 

Private Attributes

Mapm
 
std::vector< double > values
 
std::unordered_map< int, rgbColorcolors
 
double maxVal
 
double minVal
 
double ignoreVal
 
int colorMap
 
bool drawBorders
 
GLuint displayList
 

Detailed Description

Definition at line 20 of file MapOverlay.h.

Constructor & Destructor Documentation

◆ MapOverlay()

MapOverlay::MapOverlay ( Map m)

Definition at line 18 of file MapOverlay.cpp.

References colorMap, displayList, drawBorders, Map::GetMapHeight(), Map::GetMapWidth(), m, and values.

Member Function Documentation

◆ Clear()

void MapOverlay::Clear ( )

Definition at line 27 of file MapOverlay.cpp.

References displayList, ignoreVal, maxVal, minVal, and values.

◆ DecreaseColorMap()

void MapOverlay::DecreaseColorMap ( )
inline

Definition at line 38 of file MapOverlay.h.

References colorMap.

◆ Draw()

void MapOverlay::Draw ( Graphics::Display display) const

◆ GetColorMap()

int MapOverlay::GetColorMap ( )
inline

Definition at line 35 of file MapOverlay.h.

References colorMap.

◆ GetMap()

Map* MapOverlay::GetMap ( )
inline

Definition at line 23 of file MapOverlay.h.

References m.

◆ GetMaxValue()

double MapOverlay::GetMaxValue ( )
inline

Definition at line 39 of file MapOverlay.h.

References maxVal.

◆ GetMinValue()

double MapOverlay::GetMinValue ( )
inline

Definition at line 40 of file MapOverlay.h.

References minVal.

◆ GetOverlayValue()

double MapOverlay::GetOverlayValue ( int  x,
int  y 
)

Definition at line 82 of file MapOverlay.cpp.

References Map::GetMapHeight(), Map::GetMapWidth(), m, and values.

◆ GetValueColor()

rgbColor MapOverlay::GetValueColor ( double  value) const

Definition at line 89 of file MapOverlay.cpp.

References colorMap, colors, Colors::GetColor(), maxVal, and minVal.

Referenced by OpenGLDraw().

◆ IncreaseColorMap()

void MapOverlay::IncreaseColorMap ( )
inline

Definition at line 37 of file MapOverlay.h.

References colorMap.

◆ OpenGLDraw()

void MapOverlay::OpenGLDraw ( ) const

◆ resetValues()

void MapOverlay::resetValues ( )
private

Definition at line 42 of file MapOverlay.cpp.

References displayList, fequal(), fgreater(), fless(), ignoreVal, maxVal, minVal, and values.

◆ SetColor()

void MapOverlay::SetColor ( int  value,
rgbColor  c 
)
inline

Definition at line 36 of file MapOverlay.h.

References colors.

◆ SetColorMap()

void MapOverlay::SetColorMap ( int  val)
inline

Definition at line 34 of file MapOverlay.h.

References colorMap.

◆ SetOverlayValue()

void MapOverlay::SetOverlayValue ( int  x,
int  y,
double  value 
)

Definition at line 63 of file MapOverlay.cpp.

References displayList, Map::GetMapHeight(), Map::GetMapWidth(), m, maxVal, minVal, and values.

◆ SetTransparentValue()

void MapOverlay::SetTransparentValue ( double  v)
inline

Definition at line 32 of file MapOverlay.h.

References ignoreVal.

◆ SVGDraw()

std::string MapOverlay::SVGDraw ( ) const

Member Data Documentation

◆ colorMap

int MapOverlay::colorMap
private

◆ colors

std::unordered_map<int, rgbColor> MapOverlay::colors
private

Definition at line 47 of file MapOverlay.h.

Referenced by GetValueColor(), and SetColor().

◆ customColorMap

const int MapOverlay::customColorMap = -1
static

Definition at line 42 of file MapOverlay.h.

Referenced by OpenGLDraw().

◆ displayList

GLuint MapOverlay::displayList
mutableprivate

Definition at line 52 of file MapOverlay.h.

Referenced by Clear(), MapOverlay(), OpenGLDraw(), resetValues(), and SetOverlayValue().

◆ drawBorders

bool MapOverlay::drawBorders
private

Definition at line 51 of file MapOverlay.h.

Referenced by MapOverlay(), and OpenGLDraw().

◆ ignoreVal

double MapOverlay::ignoreVal
private

Definition at line 49 of file MapOverlay.h.

Referenced by Clear(), Draw(), OpenGLDraw(), resetValues(), SetTransparentValue(), and SVGDraw().

◆ m

Map* MapOverlay::m
private

◆ maxVal

double MapOverlay::maxVal
private

◆ minVal

double MapOverlay::minVal
private

◆ values

std::vector<double> MapOverlay::values
private

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