marble
#include <GeoDataLabelStyle.h>

Public Types | |
| enum | Alignment { Corner, Center } | 
  Public Types inherited from Marble::GeoDataColorStyle | |
| enum | ColorMode { Normal, Random } | 
Additional Inherited Members | |
  Protected Member Functions inherited from Marble::GeoDataObject | |
| virtual bool | equals (const GeoDataObject &other) const | 
Detailed Description
specifies how the name of a GeoDataFeature is drawn
A GeoDataLabelStyle specifies how the name of a GeoDataFeature is drawn in the viewer. A custom color, color mode (both inherited from GeoDataColorStyle, and scale for the label (name) can be specified.
Definition at line 36 of file GeoDataLabelStyle.h.
Member Enumeration Documentation
| Enumerator | |
|---|---|
| Corner | |
| Center | |
Definition at line 39 of file GeoDataLabelStyle.h.
Constructor & Destructor Documentation
| Marble::GeoDataLabelStyle::GeoDataLabelStyle | ( | ) | 
Construct a new GeoDataLabelStyle.
Definition at line 61 of file GeoDataLabelStyle.cpp.
| Marble::GeoDataLabelStyle::GeoDataLabelStyle | ( | const GeoDataLabelStyle & | other | ) | 
Definition at line 67 of file GeoDataLabelStyle.cpp.
Construct a new GeoDataLabelStyle.
- Parameters
 - 
  
font the font to use when showing the name color the color to use when showing the name  
- See also
 - GeoDataColorStyle
 
Definition at line 72 of file GeoDataLabelStyle.cpp.
| Marble::GeoDataLabelStyle::~GeoDataLabelStyle | ( | ) | 
Definition at line 78 of file GeoDataLabelStyle.cpp.
Member Function Documentation
| GeoDataLabelStyle::Alignment Marble::GeoDataLabelStyle::alignment | ( | ) | const | 
Return the alignment of the label.
- Returns
 - the current alignment
 
Definition at line 113 of file GeoDataLabelStyle.cpp.
| QFont Marble::GeoDataLabelStyle::font | ( | ) | const | 
Return the current font of the label.
- Returns
 - the current font
 
Definition at line 133 of file GeoDataLabelStyle.cpp.
| bool Marble::GeoDataLabelStyle::glow | ( | ) | const | 
Return true if the text of the label should glow, false otherwise.
- See also
 - setGlow
 
Definition at line 138 of file GeoDataLabelStyle.cpp.
      
  | 
  virtual | 
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 103 of file GeoDataLabelStyle.cpp.
| bool Marble::GeoDataLabelStyle::operator!= | ( | const GeoDataLabelStyle & | other | ) | const | 
Definition at line 98 of file GeoDataLabelStyle.cpp.
| GeoDataLabelStyle & Marble::GeoDataLabelStyle::operator= | ( | const GeoDataLabelStyle & | other | ) | 
assignment operator
Definition at line 83 of file GeoDataLabelStyle.cpp.
| bool Marble::GeoDataLabelStyle::operator== | ( | const GeoDataLabelStyle & | other | ) | const | 
Definition at line 90 of file GeoDataLabelStyle.cpp.
      
  | 
  virtual | 
Serialize the style to a stream.
- Parameters
 - 
  
stream the stream  
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 148 of file GeoDataLabelStyle.cpp.
| float Marble::GeoDataLabelStyle::scale | ( | ) | const | 
Return the current scale of the label.
- Returns
 - the current scale
 
Definition at line 123 of file GeoDataLabelStyle.cpp.
| void Marble::GeoDataLabelStyle::setAlignment | ( | GeoDataLabelStyle::Alignment | alignment | ) | 
Set the alignment of the label.
- Parameters
 - 
  
int the alignment  
Definition at line 108 of file GeoDataLabelStyle.cpp.
| void Marble::GeoDataLabelStyle::setFont | ( | const QFont & | font | ) | 
Set the font of the label.
- Parameters
 - 
  
font the new font  
Definition at line 128 of file GeoDataLabelStyle.cpp.
| void Marble::GeoDataLabelStyle::setGlow | ( | bool | on | ) | 
Enable or disable a glow effect around the text of the label.
The default is false.
Note that this is not a KML property.
Definition at line 143 of file GeoDataLabelStyle.cpp.
| void Marble::GeoDataLabelStyle::setScale | ( | const float & | scale | ) | 
Set the scale of the label.
- Parameters
 - 
  
scale the new scale  
Definition at line 118 of file GeoDataLabelStyle.cpp.
      
  | 
  virtual | 
Unserialize the style from a stream.
- Parameters
 - 
  
stream the stream  
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 157 of file GeoDataLabelStyle.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference
 Public Types inherited from