|
Flow Visualisation
|
Discrete distance map. More...
#include <DistanceMap.h>
Public Member Functions | |
| DistanceMap (int sizeX, int sizeY) | |
| the distance data More... | |
| ~DistanceMap () | |
| void | initializeDistanceMap (glm::uvec2 position) |
| initializes distance map with supplied position Changes every element More... | |
| void | updateDistanceMap (glm::uvec2 position) |
| Updates distance map with supplied position Changes elements only when position is closer. More... | |
| int | at (int row, int col) |
| distance to nearest arrow at position More... | |
Discrete distance map.
| DistanceMap::DistanceMap | ( | int | sizeX, |
| int | sizeY | ||
| ) |
the distance data
| DistanceMap::~DistanceMap | ( | ) |
| int DistanceMap::at | ( | int | row, |
| int | col | ||
| ) |
distance to nearest arrow at position
| void DistanceMap::initializeDistanceMap | ( | glm::uvec2 | position | ) |
initializes distance map with supplied position Changes every element
| void DistanceMap::updateDistanceMap | ( | glm::uvec2 | position | ) |
Updates distance map with supplied position Changes elements only when position is closer.