• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • GeoDataLabelStyle
Public Types | Public Member Functions | List of all members
Marble::GeoDataLabelStyle Class Reference

#include <GeoDataLabelStyle.h>

Inheritance diagram for Marble::GeoDataLabelStyle:
Inheritance graph
[legend]

Public Types

enum  Alignment { Corner, Center }
 
- Public Types inherited from Marble::GeoDataColorStyle
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
 
bool operator!= (const GeoDataLabelStyle &other) const
 
GeoDataLabelStyle & operator= (const GeoDataLabelStyle &other)
 
bool operator== (const GeoDataLabelStyle &other) const
 
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)
 
- Public Member Functions inherited from Marble::GeoDataColorStyle
 GeoDataColorStyle ()
 
 GeoDataColorStyle (const GeoDataColorStyle &other)
 
virtual ~GeoDataColorStyle ()
 
QColor color () const
 
ColorMode colorMode () const
 
bool operator!= (const GeoDataColorStyle &other) const
 
GeoDataColorStyle & operator= (const GeoDataColorStyle &other)
 
bool operator== (const GeoDataColorStyle &other) const
 
QColor paintedColor () const
 
void setColor (const QColor &value)
 
void setColorMode (const ColorMode &colorMode)
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject ()
 
 GeoDataObject (const GeoDataObject &)
 
virtual ~GeoDataObject ()
 
QString id () const
 
GeoDataObject & operator= (const GeoDataObject &)
 
virtual GeoDataObject * parent () const
 
QString resolvePath (const QString &relativePath) const
 
void setId (const QString &value)
 
virtual void setParent (GeoDataObject *parent)
 
void setTargetId (const QString &value)
 
QString targetId () const
 
- Public Member Functions inherited from Marble::GeoNode
 GeoNode ()
 
virtual ~GeoNode ()
 
- Public Member Functions inherited from Marble::Serializable
virtual ~Serializable ()
 

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

enum Marble::GeoDataLabelStyle::Alignment
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
fontthe font to use when showing the name
colorthe 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.

const char * Marble::GeoDataLabelStyle::nodeType ( ) const
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.

void Marble::GeoDataLabelStyle::pack ( QDataStream &  stream) const
virtual

Serialize the style to a stream.

Parameters
streamthe 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
intthe alignment

Definition at line 108 of file GeoDataLabelStyle.cpp.

void Marble::GeoDataLabelStyle::setFont ( const QFont &  font)

Set the font of the label.

Parameters
fontthe 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
scalethe new scale

Definition at line 118 of file GeoDataLabelStyle.cpp.

void Marble::GeoDataLabelStyle::unpack ( QDataStream &  stream)
virtual

Unserialize the style from a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 157 of file GeoDataLabelStyle.cpp.


The documentation for this class was generated from the following files:
  • GeoDataLabelStyle.h
  • GeoDataLabelStyle.cpp
This file is part of the KDE documentation.
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.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal