Marble::GeoDataLineStyle

Search for usage in LXR

Marble::GeoDataLineStyle Class Reference

#include <GeoDataLineStyle.h>

Inheritance diagram for Marble::GeoDataLineStyle:

Public Member Functions

 GeoDataLineStyle ()
 
 GeoDataLineStyle (const GeoDataLineStyle &other)
 
 GeoDataLineStyle (const QColor &color)
 
bool background () const
 
Qt::PenCapStyle capStyle () const
 
bool cosmeticOutline () const
 
QList< qreal > dashPattern () const
 
const char * nodeType () const override
 
bool operator!= (const GeoDataLineStyle &other) const
 
GeoDataLineStyleoperator= (const GeoDataLineStyle &other)
 
bool operator== (const GeoDataLineStyle &other) const
 
void pack (QDataStream &stream) const override
 
Qt::PenStyle penStyle () const
 
float physicalWidth () const
 
void setBackground (bool background)
 
void setCapStyle (Qt::PenCapStyle style)
 
void setCosmeticOutline (bool enabled)
 
void setDashPattern (const QList< qreal > &pattern)
 
void setPenStyle (Qt::PenStyle style)
 
void setPhysicalWidth (float realWidth)
 
void setWidth (float width)
 
void unpack (QDataStream &stream) override
 
float width () const
 
- Public Member Functions inherited from Marble::GeoDataColorStyle
 GeoDataColorStyle (const GeoDataColorStyle &other)
 
QColor color () const
 
ColorMode colorMode () const
 
bool operator!= (const GeoDataColorStyle &other) const
 
GeoDataColorStyleoperator= (const GeoDataColorStyle &other)
 
bool operator== (const GeoDataColorStyle &other) const
 
void pack (QDataStream &stream) const override
 
QColor paintedColor () const
 
void setColor (const QColor &value)
 
void setColorMode (ColorMode colorMode)
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject (const GeoDataObject &)
 
QString id () const
 
GeoDataObjectoperator= (const GeoDataObject &)
 
void pack (QDataStream &stream) const override
 
GeoDataObjectparent ()
 
const GeoDataObjectparent () const
 
QString resolvePath (const QString &relativePath) const
 
void setId (const QString &value)
 
void setParent (GeoDataObject *parent)
 
void setTargetId (const QString &value)
 
QString targetId () const
 
void unpack (QDataStream &steam) override
 
- Public Member Functions inherited from Marble::GeoNode

Additional Inherited Members

- Public Types inherited from Marble::GeoDataColorStyle
enum  ColorMode { Normal , Random }
 
- Static Public Member Functions inherited from Marble::GeoDataColorStyle
static QString contrastColor (const QColor &color)
 
- 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 28 of file GeoDataLineStyle.h.

Constructor & Destructor Documentation

◆ GeoDataLineStyle() [1/3]

Marble::GeoDataLineStyle::GeoDataLineStyle ( )

Construct a new GeoDataLineStyle.

Definition at line 39 of file GeoDataLineStyle.cpp.

◆ GeoDataLineStyle() [2/3]

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

Definition at line 44 of file GeoDataLineStyle.cpp.

◆ GeoDataLineStyle() [3/3]

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 50 of file GeoDataLineStyle.cpp.

◆ ~GeoDataLineStyle()

Marble::GeoDataLineStyle::~GeoDataLineStyle ( )
override

Definition at line 56 of file GeoDataLineStyle.cpp.

Member Function Documentation

◆ background()

bool Marble::GeoDataLineStyle::background ( ) const

Return true if background get drawn.

Returns

Definition at line 138 of file GeoDataLineStyle.cpp.

◆ capStyle()

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

Return the current pen cap style.

Returns
the current pen cap style

Definition at line 118 of file GeoDataLineStyle.cpp.

◆ cosmeticOutline()

bool Marble::GeoDataLineStyle::cosmeticOutline ( ) const

Return whether the line has a cosmetic 1 pixel outline.

Definition at line 108 of file GeoDataLineStyle.cpp.

◆ dashPattern()

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

Return the current dash pattern.

Returns
the current dash pattern

Definition at line 148 of file GeoDataLineStyle.cpp.

◆ nodeType()

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

Provides type information for downcasting a GeoData.

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 83 of file GeoDataLineStyle.cpp.

◆ operator!=()

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

Definition at line 78 of file GeoDataLineStyle.cpp.

◆ operator=()

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

assignment operator

Definition at line 61 of file GeoDataLineStyle.cpp.

◆ operator==()

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

Definition at line 68 of file GeoDataLineStyle.cpp.

◆ pack()

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

Serialize the style to a stream.

Parameters
streamthe stream

Definition at line 158 of file GeoDataLineStyle.cpp.

◆ penStyle()

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

Return the current pen cap style.

Returns
the current pen cap style

Definition at line 128 of file GeoDataLineStyle.cpp.

◆ physicalWidth()

float Marble::GeoDataLineStyle::physicalWidth ( ) const

Return the current physical width of the line.

Returns
the current width

Definition at line 98 of file GeoDataLineStyle.cpp.

◆ setBackground()

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

Set whether to draw the solid background.

Parameters
backgroundtrue if the background should be solid

Definition at line 143 of file GeoDataLineStyle.cpp.

◆ setCapStyle()

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

Set pen cap style.

Parameters
stylecap style

Definition at line 123 of file GeoDataLineStyle.cpp.

◆ setCosmeticOutline()

void Marble::GeoDataLineStyle::setCosmeticOutline ( bool enabled)

Set whether the line has a cosmetic 1 pixel outline.

Definition at line 113 of file GeoDataLineStyle.cpp.

◆ setDashPattern()

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

Sets the dash pattern.

Parameters
patterndash pattern

Definition at line 153 of file GeoDataLineStyle.cpp.

◆ setPenStyle()

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

Set pen cap style.

Parameters
stylecap style

Definition at line 133 of file GeoDataLineStyle.cpp.

◆ setPhysicalWidth()

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

Set the physical width of the line (in meters)

Parameters
realWidththe new width

Definition at line 103 of file GeoDataLineStyle.cpp.

◆ setWidth()

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

Set the width of the line.

Parameters
widththe new width

Definition at line 88 of file GeoDataLineStyle.cpp.

◆ unpack()

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

Unserialize the style from a stream.

Parameters
streamthe stream

Definition at line 169 of file GeoDataLineStyle.cpp.

◆ width()

float Marble::GeoDataLineStyle::width ( ) const

Return the current width of the line.

Returns
the current width

Definition at line 93 of file GeoDataLineStyle.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:08:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.