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

marble

Marble::GeoDataStyle

Marble::GeoDataStyle Class Reference

an addressable style group More...

#include <GeoDataStyle.h>

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

List of all members.

Public Member Functions

 GeoDataStyle (const QPixmap &icon, const QFont &font, const QColor &color)
 GeoDataStyle (const GeoDataStyle &other)
 GeoDataStyle ()
 ~GeoDataStyle ()
GeoDataIconStyle & iconStyle () const
GeoDataLabelStyle & labelStyle () const
GeoDataLineStyle & lineStyle () const
virtual QString nodeType () const
GeoDataStyle & operator= (const GeoDataStyle &other)
virtual void pack (QDataStream &stream) const
GeoDataPolyStyle & polyStyle () const
void setIconStyle (const GeoDataIconStyle &style)
void setLabelStyle (const GeoDataLabelStyle &style)
void setLineStyle (const GeoDataLineStyle &style)
void setPolyStyle (const GeoDataPolyStyle &style)
virtual void unpack (QDataStream &stream)

Detailed Description

an addressable style group

A GeoDataStyle defines an addressable style group that can be referenced by GeoDataStyleMaps and GeoDataFeatures. GeoDataStyles affect how Geometry is presented in the 3D viewer (not yet implemented) and how Features appear. Shared styles are collected in a GeoDataDocument and must have an id defined for them so that they can be referenced by the individual Features that use them.

See also:
GeoDataIconStyle
GeoDataLabelStyle
GeoDataLineStyle
GeoDataPolyStyle

Definition at line 51 of file GeoDataStyle.h.


Constructor & Destructor Documentation

Marble::GeoDataStyle::GeoDataStyle (  ) 

Construct a default style.

Definition at line 46 of file GeoDataStyle.cpp.

Marble::GeoDataStyle::GeoDataStyle ( const GeoDataStyle &  other  ) 

Definition at line 51 of file GeoDataStyle.cpp.

Marble::GeoDataStyle::GeoDataStyle ( const QPixmap &  icon,
const QFont &  font,
const QColor &  color 
)

Construct a new style.

Parameters:
icon used to construct the icon style
font used to construct the label styles
color used to construct the label styles

Definition at line 56 of file GeoDataStyle.cpp.

Marble::GeoDataStyle::~GeoDataStyle (  ) 

Definition at line 62 of file GeoDataStyle.cpp.


Member Function Documentation

GeoDataIconStyle & Marble::GeoDataStyle::iconStyle (  )  const

Return the icon style of this style.

Definition at line 99 of file GeoDataStyle.cpp.

GeoDataLabelStyle & Marble::GeoDataStyle::labelStyle (  )  const

Return the label style of this style.

Definition at line 114 of file GeoDataStyle.cpp.

GeoDataLineStyle & Marble::GeoDataStyle::lineStyle (  )  const

Return the label style of this style.

Definition at line 104 of file GeoDataStyle.cpp.

QString Marble::GeoDataStyle::nodeType (  )  const [virtual]

Provides type information for downcasting a GeoNode.

Reimplemented from Marble::GeoDataStyleSelector.

Definition at line 74 of file GeoDataStyle.cpp.

GeoDataStyle & Marble::GeoDataStyle::operator= ( const GeoDataStyle &  other  ) 

assignment operator

Parameters:
other the GeoDataStyle that gets duplicated

Reimplemented from Marble::GeoDataStyleSelector.

Definition at line 67 of file GeoDataStyle.cpp.

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

Serialize the style to a stream.

Parameters:
stream the stream

Reimplemented from Marble::GeoDataStyleSelector.

Definition at line 119 of file GeoDataStyle.cpp.

GeoDataPolyStyle & Marble::GeoDataStyle::polyStyle (  )  const

Return the label style of this style.

Definition at line 109 of file GeoDataStyle.cpp.

void Marble::GeoDataStyle::setIconStyle ( const GeoDataIconStyle &  style  ) 

set the icon style

Definition at line 79 of file GeoDataStyle.cpp.

void Marble::GeoDataStyle::setLabelStyle ( const GeoDataLabelStyle &  style  ) 

set the label style

Definition at line 89 of file GeoDataStyle.cpp.

void Marble::GeoDataStyle::setLineStyle ( const GeoDataLineStyle &  style  ) 

set the line style

Definition at line 84 of file GeoDataStyle.cpp.

void Marble::GeoDataStyle::setPolyStyle ( const GeoDataPolyStyle &  style  ) 

set the poly style

Definition at line 94 of file GeoDataStyle.cpp.

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

Unserialize the style from a stream.

Parameters:
stream the stream

Reimplemented from Marble::GeoDataStyleSelector.

Definition at line 129 of file GeoDataStyle.cpp.


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

marble

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

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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