![]() |
Mapper
0.9.0
API documentation
|
A utility for converting OCD icons. More...
#include <ocd_icon.h>
Public Member Functions | |
operator Ocd::IconV8 () const | |
operator Ocd::IconV9 () const | |
Static Public Member Functions | |
static QImage | toQImage (const Ocd::IconV8 &icon) |
Creates a QImage for the given uncompressed icon data. More... | |
static QImage | toQImage (const Ocd::IconV9 &icon) |
Creates a QImage for the given icon data. More... | |
Public Attributes | |
const Map & | map |
const Symbol & | symbol |
A utility for converting OCD icons.
Synopsis:
ocd_base_symbol.icon = OcdIcon{map, symbol};
symbol->setCustomIcon(OcdIcon::toQImage(ocd_base_symbol.icon));
OpenOrienteering::OcdIcon::operator Ocd::IconV8 | ( | ) | const |
OpenOrienteering::OcdIcon::operator Ocd::IconV9 | ( | ) | const |
|
static |
Creates a QImage for the given uncompressed icon data.
Note: This function does not support OCD version 8 compressed icons.
|
static |
Creates a QImage for the given icon data.
const Map& OpenOrienteering::OcdIcon::map |
const Symbol& OpenOrienteering::OcdIcon::symbol |