marble
#include <GeoDataLabelStyle.h>

Public Types | |
enum | Alignment { Corner, Center } |
![]() | |
enum | ColorMode { Normal, Random } |
Public Member Functions | |
GeoDataLabelStyle () | |
GeoDataLabelStyle (const GeoDataLabelStyle &other) | |
GeoDataLabelStyle (const QFont &font, const QColor &color) | |
~GeoDataLabelStyle () | |
GeoDataLabelStyle::Alignment | alignment () const |
QFont | font () const |
bool | glow () const |
virtual const char * | nodeType () const |
GeoDataLabelStyle & | operator= (const GeoDataLabelStyle &other) |
virtual void | pack (QDataStream &stream) const |
float | scale () const |
void | setAlignment (GeoDataLabelStyle::Alignment alignment) |
void | setFont (const QFont &font) |
void | setGlow (bool on) |
void | setScale (const float &scale) |
virtual void | unpack (QDataStream &stream) |
![]() | |
GeoDataColorStyle () | |
GeoDataColorStyle (const GeoDataColorStyle &other) | |
virtual | ~GeoDataColorStyle () |
QColor | color () const |
ColorMode | colorMode () const |
GeoDataColorStyle & | operator= (const GeoDataColorStyle &other) |
QColor | paintedColor () const |
void | setColor (const QColor &value) |
void | setColorMode (const ColorMode &colorMode) |
![]() | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
int | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (int value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (int value) |
int | targetId () const |
![]() | |
GeoNode () | |
virtual | ~GeoNode () |
![]() | |
virtual | ~Serializable () |
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.
Marble::GeoDataLabelStyle::GeoDataLabelStyle | ( | const QFont & | font, |
const QColor & | color | ||
) |
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 100 of file GeoDataLabelStyle.cpp.
QFont Marble::GeoDataLabelStyle::font | ( | ) | const |
Return the current font of the label.
- Returns
- the current font
Definition at line 120 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 125 of file GeoDataLabelStyle.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 90 of file GeoDataLabelStyle.cpp.
GeoDataLabelStyle & Marble::GeoDataLabelStyle::operator= | ( | const GeoDataLabelStyle & | other | ) |
assignment operator
Definition at line 83 of file GeoDataLabelStyle.cpp.
|
virtual |
Serialize the style to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 135 of file GeoDataLabelStyle.cpp.
float Marble::GeoDataLabelStyle::scale | ( | ) | const |
Return the current scale of the label.
- Returns
- the current scale
Definition at line 110 of file GeoDataLabelStyle.cpp.
void Marble::GeoDataLabelStyle::setAlignment | ( | GeoDataLabelStyle::Alignment | alignment | ) |
Set the alignment of the label.
- Parameters
-
int the alignment
Definition at line 95 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 115 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 130 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 105 of file GeoDataLabelStyle.cpp.
|
virtual |
Unserialize the style from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 144 of file GeoDataLabelStyle.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.