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

marble

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

#include <GeoDataLineStyle.h>

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

Public Member Functions

 GeoDataLineStyle ()
 
 GeoDataLineStyle (const GeoDataLineStyle &other)
 
 GeoDataLineStyle (const QColor &color)
 
 ~GeoDataLineStyle ()
 
bool background () const
 
Qt::PenCapStyle capStyle () const
 
QVector< qreal > dashPattern () const
 
virtual const char * nodeType () const
 
bool operator!= (const GeoDataLineStyle &other) const
 
GeoDataLineStyle & operator= (const GeoDataLineStyle &other)
 
bool operator== (const GeoDataLineStyle &other) const
 
virtual void pack (QDataStream &stream) const
 
Qt::PenStyle penStyle () const
 
float physicalWidth () const
 
void setBackground (bool background)
 
void setCapStyle (Qt::PenCapStyle style)
 
void setDashPattern (const QVector< qreal > &pattern)
 
void setPenStyle (Qt::PenStyle style)
 
void setPhysicalWidth (const float &realWidth)
 
void setWidth (const float &width)
 
virtual void unpack (QDataStream &stream)
 
float width () const
 
- 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

- Public Types inherited from Marble::GeoDataColorStyle
enum  ColorMode { Normal, Random }
 
- Protected Member Functions inherited from Marble::GeoDataObject
virtual bool equals (const GeoDataObject &other) const
 

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 36 of file GeoDataLineStyle.h.

Constructor & Destructor Documentation

Marble::GeoDataLineStyle::GeoDataLineStyle ( )

Construct a new GeoDataLineStyle.

Definition at line 43 of file GeoDataLineStyle.cpp.

Marble::GeoDataLineStyle::GeoDataLineStyle ( const GeoDataLineStyle &  other)

Definition at line 48 of file GeoDataLineStyle.cpp.

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

Construct a new GeoDataLineStyle.

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

Definition at line 53 of file GeoDataLineStyle.cpp.

Marble::GeoDataLineStyle::~GeoDataLineStyle ( )

Definition at line 59 of file GeoDataLineStyle.cpp.

Member Function Documentation

bool Marble::GeoDataLineStyle::background ( ) const

Return true if background get drawn.

Returns

Definition at line 135 of file GeoDataLineStyle.cpp.

Qt::PenCapStyle Marble::GeoDataLineStyle::capStyle ( ) const

Return the current pen cap style.

Returns
the current pen cap style

Definition at line 115 of file GeoDataLineStyle.cpp.

QVector< qreal > Marble::GeoDataLineStyle::dashPattern ( ) const

Return the current dash pattern.

Returns
the current dash pattern

Definition at line 145 of file GeoDataLineStyle.cpp.

const char * Marble::GeoDataLineStyle::nodeType ( ) const
virtual

Provides type information for downcasting a GeoData.

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 90 of file GeoDataLineStyle.cpp.

bool Marble::GeoDataLineStyle::operator!= ( const GeoDataLineStyle &  other) const

Definition at line 85 of file GeoDataLineStyle.cpp.

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

assignment operator

Definition at line 64 of file GeoDataLineStyle.cpp.

bool Marble::GeoDataLineStyle::operator== ( const GeoDataLineStyle &  other) const

Definition at line 71 of file GeoDataLineStyle.cpp.

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

Serialize the style to a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 155 of file GeoDataLineStyle.cpp.

Qt::PenStyle Marble::GeoDataLineStyle::penStyle ( ) const

Return the current pen cap style.

Returns
the current pen cap style

Definition at line 125 of file GeoDataLineStyle.cpp.

float Marble::GeoDataLineStyle::physicalWidth ( ) const

Return the current physical width of the line.

Returns
the current width

Definition at line 105 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::setBackground ( bool  background)

Set whether to draw the solid background.

Parameters
bool

Definition at line 140 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::setCapStyle ( Qt::PenCapStyle  style)

Set pen cap style.

Parameters
stylecap style

Definition at line 120 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::setDashPattern ( const QVector< qreal > &  pattern)

Sets the dash pattern.

Parameters
patterndash pattern

Definition at line 150 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::setPenStyle ( Qt::PenStyle  style)

Set pen cap style.

Parameters
stylecap style

Definition at line 130 of file GeoDataLineStyle.cpp.

void Marble::GeoDataLineStyle::setPhysicalWidth ( const float &  realWidth)

Set the physical width of the line (in meters)

Parameters
widththe new width

Definition at line 110 of file GeoDataLineStyle.cpp.

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

Set the width of the line.

Parameters
widththe new width

Definition at line 95 of file GeoDataLineStyle.cpp.

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

Unserialize the style from a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 166 of file GeoDataLineStyle.cpp.

float Marble::GeoDataLineStyle::width ( ) const

Return the current width of the line.

Returns
the current width

Definition at line 100 of file GeoDataLineStyle.cpp.


The documentation for this class was generated from the following files:
  • GeoDataLineStyle.h
  • GeoDataLineStyle.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