QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCMapPalette Class Reference

QGCMapPalette is a variant of QGCPalette which is used to hold colors used for display over the map control. More...

#include <QGCMapPalette.h>

Inheritance diagram for QGCMapPalette:
Collaboration diagram for QGCMapPalette:

Signals

void paletteChanged (void)
void lightColorsChanged (bool lightColors)

Public Member Functions

 QGCMapPalette (QObject *parent=nullptr)
QColor text (void) const
 Text color.
QColor textOutline (void) const
bool lightColors (void) const
void setLightColors (bool lightColors)

Detailed Description

QGCMapPalette is a variant of QGCPalette which is used to hold colors used for display over the map control.

Since the coloring of a satellite map differs greatly from the coloring of a street map you need to be able to switch between sets of color based on map type.

Usage:

    1.0

   FlightMap {
       id:             map
       anchors.fill:   parent

       QGCMapPalette { id: mapPal: lightColors: map.isSatelliteMap }

       QGCLabel {
           text:   "Text over map"
           color:  mapPal.text
       }
   }

Definition at line 29 of file QGCMapPalette.h.

Constructor & Destructor Documentation

◆ QGCMapPalette()

QGCMapPalette::QGCMapPalette ( QObject * parent = nullptr)

Definition at line 6 of file QGCMapPalette.cc.

Member Function Documentation

◆ lightColors()

bool QGCMapPalette::lightColors ( void ) const
inline

Definition at line 46 of file QGCMapPalette.h.

Referenced by lightColorsChanged(), and setLightColors().

◆ lightColorsChanged

void QGCMapPalette::lightColorsChanged ( bool lightColors)
signal

References lightColors().

◆ paletteChanged

void QGCMapPalette::paletteChanged ( void )
signal

Referenced by setLightColors().

◆ setLightColors()

void QGCMapPalette::setLightColors ( bool lightColors)

Definition at line 12 of file QGCMapPalette.cc.

References lightColors(), and paletteChanged().

◆ text()

QColor QGCMapPalette::text ( void ) const
inline

Text color.

Definition at line 43 of file QGCMapPalette.h.

◆ textOutline()

QColor QGCMapPalette::textOutline ( void ) const
inline

Definition at line 44 of file QGCMapPalette.h.


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