![]() |
Mapper
0.9.0
API documentation
|
A functor for comparing symbols by dominant colors. More...
#include <symbol.h>
Public Member Functions | |
lessByColor (const Map *map) | |
Constructs the functor for the given map. More... | |
bool | operator() (const Symbol *s1, const Symbol *s2) const |
Operator which compares two symbols by dominant colors. More... | |
A functor for comparing symbols by dominant colors.
Other than lessByColorPriority(), this comparison uses the lowest priority which exists for a particular RGB color in the map, i.e. it groups colors by RGB values (and orders the result by priority).
All map colors are preprocessed in the constructor. Thus the functor becomes invalid as soon as colors are changed.
OpenOrienteering::Symbol::lessByColor::lessByColor | ( | const Map * | map | ) |
Constructs the functor for the given map.
bool OpenOrienteering::Symbol::lessByColor::operator() | ( | const Symbol * | s1, |
const Symbol * | s2 | ||
) | const |
Operator which compares two symbols by dominant colors.