![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
a grid axis maps the segments of the input curve to an axis of the free-space diagram.
Input curve P is mapped to the x-axis. Input curve Q is mapped to the y-axis.
The GridAxis class keeps a list of segment lengths.
In addition we assign line styles for visualisation.
#include <grid.h>
Inherits vector< data::Interval >.
Public Member Functions | |
GridAxis () | |
empty constructor More... | |
void | setCurve (const Curve &P) |
compute the length of each polygon segment More... | |
void | setLineStyles (const LineStyleVector &linesStyles, LineStyle defaultLineStyle) |
assign line styles for visualisation More... | |
LineStyle | lineStyle (int i) const |
double | map (double x) const |
maps a value from [0..n] onto the axis [0..|P|] More... | |
data::Interval | map (const Interval &other) const |
maps an interval from [0..n] onto the axis [0..|P|] More... | |
double | length () const |
Private Attributes | |
LineStyle | defaultLineStyle |
default line style for drawing a grid line More... | |
LineStyleVector | lineStyles |
custom line styles for grid lines More... | |
double GridAxis::length | ( | ) | const |
LineStyle GridAxis::lineStyle | ( | int | i | ) | const |
double GridAxis::map | ( | double | x | ) | const |
void GridAxis::setCurve | ( | const Curve & | P | ) |
void GridAxis::setLineStyles | ( | const LineStyleVector & | linesStyles, |
LineStyle | defaultLineStyle | ||
) |
|
private |
|
private |