Flow Visualisation
flowiz::DistanceMap Class Reference

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...
 

Detailed Description

Discrete distance map.

Constructor & Destructor Documentation

DistanceMap::DistanceMap ( int  sizeX,
int  sizeY 
)

the distance data

DistanceMap::~DistanceMap ( )

Member Function Documentation

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.


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