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

marble/src

Marble::GeoDataLineStyle

Marble::GeoDataLineStyle Class Reference

specifies the style how lines are drawn More...

#include <GeoDataLineStyle.h>

Inheritance diagram for Marble::GeoDataLineStyle:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 GeoDataLineStyle (const QColor &color)
 GeoDataLineStyle ()
virtual void pack (QDataStream &stream) const
void setWidth (const float &width)
virtual void unpack (QDataStream &stream)
float width () const
 ~GeoDataLineStyle ()

Detailed Description

specifies the style how lines are drawn

A GeoDataLineStyle specifies how the name of a GeoDataFeature is drawn in the viewer. A custom color, color mode (both inherited from GeoDataColorStyle) and width for the width of the line.

Definition at line 35 of file GeoDataLineStyle.h.


Constructor & Destructor Documentation

Marble::GeoDataLineStyle::GeoDataLineStyle (  ) 

Construct a new GeoDataLineStyle.

Definition at line 32 of file GeoDataLineStyle.cpp.

Marble::GeoDataLineStyle::GeoDataLineStyle ( const QColor &  color  )  [explicit]

Construct a new GeoDataLineStyle.

Parameters:
color the color to use when showing the name
See also:
GeoDataColorStyle

Definition at line 37 of file GeoDataLineStyle.cpp.

Marble::GeoDataLineStyle::~GeoDataLineStyle (  ) 

Definition at line 43 of file GeoDataLineStyle.cpp.


Member Function Documentation

void Marble::GeoDataLineStyle::pack ( QDataStream &  stream  )  const [virtual]

Serialize the style to a stream.

Parameters:
stream the stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 58 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::setWidth ( const float &  width  ) 

Set the width of the line.

Parameters:
width the new width

Definition at line 48 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::unpack ( QDataStream &  stream  )  [virtual]

Unserialize the style from a stream.

Parameters:
stream the stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 65 of file GeoDataLineStyle.cpp.

float Marble::GeoDataLineStyle::width (  )  const

Return the current width of the line.

Returns:
the current width

Definition at line 53 of file GeoDataLineStyle.cpp.


The documentation for this class was generated from the following files:
  • GeoDataLineStyle.h
  • GeoDataLineStyle.cpp

marble/src

Skip menu "marble/src"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal