#include <HeatMapFigure.h>
|
| double | getHeat (int x, int y) |
| |
| void | setHeat (int x, int y, double value) |
| |
◆ HeatMapFigure()
| inet::HeatMapFigure::HeatMapFigure |
( |
int |
size, |
|
|
const char * |
name |
|
) |
| |
15 setPixmap(cFigure::Pixmap(size, size));
◆ coolDown()
| void inet::HeatMapFigure::coolDown |
( |
| ) |
|
|
virtual |
74 for (
int x = 0; x < getPixmapWidth(); x++)
75 for (
int y = 0; y < getPixmapHeight(); y++)
◆ getClassNameForRenderer()
| virtual const char* inet::HeatMapFigure::getClassNameForRenderer |
( |
| ) |
const |
|
inlinevirtual |
31 {
return "cPixmapFigure"; }
◆ getHeat()
| double inet::HeatMapFigure::getHeat |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
protected |
◆ heatLine()
| void inet::HeatMapFigure::heatLine |
( |
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2 |
|
) |
| |
|
virtual |
42 bool steep = (std::abs(y2 - y1) > std::abs(x2 - x1));
52 double dy = std::abs(y2 - y1);
53 double error = dx / 2.0f;
54 int yStep = (y1 < y2) ? 1 : -1;
56 for (
int x = x1; x <= x2; x++) {
◆ heatPoint()
| void inet::HeatMapFigure::heatPoint |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
◆ setHeat()
| void inet::HeatMapFigure::setHeat |
( |
int |
x, |
|
|
int |
y, |
|
|
double |
value |
|
) |
| |
|
protected |
◆ alpha
| double inet::HeatMapFigure::alpha = 0.5 |
|
protected |
◆ coolingSpeed
| double inet::HeatMapFigure::coolingSpeed = 0.01 |
|
protected |
◆ fromColor
| cFigure::Color inet::HeatMapFigure::fromColor = cFigure::BLACK |
|
protected |
◆ lastCoolDown
| simtime_t inet::HeatMapFigure::lastCoolDown |
|
protected |
◆ toColor
| cFigure::Color inet::HeatMapFigure::toColor = cFigure::RED |
|
protected |
The documentation for this class was generated from the following files: