HOG2
|
#include <MapOverlay.h>
Public Member Functions | |
MapOverlay (Map *m) | |
Map * | GetMap () |
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 | |
Map * | m |
std::vector< double > | values |
std::unordered_map< int, rgbColor > | colors |
double | maxVal |
double | minVal |
double | ignoreVal |
int | colorMap |
bool | drawBorders |
GLuint | displayList |
Definition at line 20 of file MapOverlay.h.
MapOverlay::MapOverlay | ( | Map * | m | ) |
Definition at line 18 of file MapOverlay.cpp.
References colorMap, displayList, drawBorders, Map::GetMapHeight(), Map::GetMapWidth(), m, and values.
void MapOverlay::Clear | ( | ) |
Definition at line 27 of file MapOverlay.cpp.
References displayList, ignoreVal, maxVal, minVal, and values.
|
inline |
Definition at line 38 of file MapOverlay.h.
References colorMap.
void MapOverlay::Draw | ( | Graphics::Display & | display | ) | const |
Definition at line 275 of file MapOverlay.cpp.
References colorMap, fequal(), Graphics::Display::FillRect(), Colors::GetColor(), Map::GetMapWidth(), Map::GetOpenGLCoord(), ignoreVal, m, maxVal, minVal, and values.
|
inline |
Definition at line 35 of file MapOverlay.h.
References colorMap.
|
inline |
Definition at line 23 of file MapOverlay.h.
References m.
|
inline |
Definition at line 39 of file MapOverlay.h.
References maxVal.
|
inline |
Definition at line 40 of file MapOverlay.h.
References minVal.
double MapOverlay::GetOverlayValue | ( | int | x, |
int | y | ||
) |
Definition at line 82 of file MapOverlay.cpp.
References Map::GetMapHeight(), Map::GetMapWidth(), m, and values.
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().
|
inline |
Definition at line 37 of file MapOverlay.h.
References colorMap.
void MapOverlay::OpenGLDraw | ( | ) | const |
Definition at line 98 of file MapOverlay.cpp.
References rgbColor::b, colorMap, customColorMap, displayList, drawBorders, DrawText(), fequal(), fgreater(), fless(), rgbColor::g, Colors::GetColor(), Map::GetMapHeight(), Map::GetMapWidth(), Map::GetOpenGLCoord(), GetValueColor(), ignoreVal, m, maxVal, minVal, rgbColor::r, stripResolution, and values.
|
private |
Definition at line 42 of file MapOverlay.cpp.
References displayList, fequal(), fgreater(), fless(), ignoreVal, maxVal, minVal, and values.
|
inline |
Definition at line 36 of file MapOverlay.h.
References colors.
|
inline |
Definition at line 34 of file MapOverlay.h.
References colorMap.
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.
|
inline |
Definition at line 32 of file MapOverlay.h.
References ignoreVal.
std::string MapOverlay::SVGDraw | ( | ) | const |
Definition at line 294 of file MapOverlay.cpp.
References Colors::black, colorMap, Colors::darkgray, fequal(), Colors::GetColor(), Map::GetMapHeight(), Map::GetMapWidth(), ignoreVal, m, max, maxVal, minVal, SVGDefineGradient(), SVGDrawLine(), SVGDrawRect(), SVGDrawText(), SVGFrameRect(), and values.
|
private |
Definition at line 50 of file MapOverlay.h.
Referenced by DecreaseColorMap(), Draw(), GetColorMap(), GetValueColor(), IncreaseColorMap(), MapOverlay(), OpenGLDraw(), SetColorMap(), and SVGDraw().
|
private |
Definition at line 47 of file MapOverlay.h.
Referenced by GetValueColor(), and SetColor().
|
static |
Definition at line 42 of file MapOverlay.h.
Referenced by OpenGLDraw().
|
mutableprivate |
Definition at line 52 of file MapOverlay.h.
Referenced by Clear(), MapOverlay(), OpenGLDraw(), resetValues(), and SetOverlayValue().
|
private |
Definition at line 51 of file MapOverlay.h.
Referenced by MapOverlay(), and OpenGLDraw().
|
private |
Definition at line 49 of file MapOverlay.h.
Referenced by Clear(), Draw(), OpenGLDraw(), resetValues(), SetTransparentValue(), and SVGDraw().
|
private |
Definition at line 45 of file MapOverlay.h.
Referenced by Draw(), GetMap(), GetOverlayValue(), MapOverlay(), OpenGLDraw(), SetOverlayValue(), and SVGDraw().
|
private |
Definition at line 48 of file MapOverlay.h.
Referenced by Clear(), Draw(), GetMaxValue(), GetValueColor(), OpenGLDraw(), resetValues(), SetOverlayValue(), and SVGDraw().
|
private |
Definition at line 48 of file MapOverlay.h.
Referenced by Clear(), Draw(), GetMinValue(), GetValueColor(), OpenGLDraw(), resetValues(), SetOverlayValue(), and SVGDraw().
|
private |
Definition at line 46 of file MapOverlay.h.
Referenced by Clear(), Draw(), GetOverlayValue(), MapOverlay(), OpenGLDraw(), resetValues(), SetOverlayValue(), and SVGDraw().