Mapper  0.9.0
API documentation
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OpenOrienteering::OcdIcon Struct Reference

A utility for converting OCD icons. More...

#include <ocd_icon.h>

Collaboration diagram for OpenOrienteering::OcdIcon:
Collaboration graph
[legend]

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 Mapmap
 
const Symbolsymbol
 

Detailed Description

A utility for converting OCD icons.

Synopsis:

ocd_base_symbol.icon = OcdIcon{map, symbol};

symbol->setCustomIcon(OcdIcon::toQImage(ocd_base_symbol.icon));

Member Function Documentation

◆ operator Ocd::IconV8()

OpenOrienteering::OcdIcon::operator Ocd::IconV8 ( ) const

◆ operator Ocd::IconV9()

OpenOrienteering::OcdIcon::operator Ocd::IconV9 ( ) const

◆ toQImage() [1/2]

QImage OpenOrienteering::OcdIcon::toQImage ( const Ocd::IconV8 icon)
static

Creates a QImage for the given uncompressed icon data.

Note: This function does not support OCD version 8 compressed icons.

◆ toQImage() [2/2]

QImage OpenOrienteering::OcdIcon::toQImage ( const Ocd::IconV9 icon)
static

Creates a QImage for the given icon data.

Member Data Documentation

◆ map

const Map& OpenOrienteering::OcdIcon::map

◆ symbol

const Symbol& OpenOrienteering::OcdIcon::symbol

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