Marble::GeoDataStyle

Search for usage in LXR

Marble::GeoDataStyle Class Reference

#include <GeoDataStyle.h>

Inheritance diagram for Marble::GeoDataStyle:

Public Types

using ConstPtr = QSharedPointer< const GeoDataStyle >
 
using Ptr = QSharedPointer< GeoDataStyle >
 

Public Member Functions

 GeoDataStyle ()
 
 GeoDataStyle (const GeoDataStyle &other)
 
 GeoDataStyle (const QString &iconPath, const QFont &font, const QColor &color)
 
GeoDataBalloonStyle & balloonStyle ()
 
const GeoDataBalloonStyle & balloonStyle () const
 
GeoDataIconStyle & iconStyle ()
 
const GeoDataIconStyle & iconStyle () const
 
GeoDataLabelStylelabelStyle ()
 
const GeoDataLabelStylelabelStyle () const
 
GeoDataLineStylelineStyle ()
 
const GeoDataLineStylelineStyle () const
 
GeoDataListStyle & listStyle ()
 
const GeoDataListStyle & listStyle () const
 
const char * nodeType () const override
 
bool operator!= (const GeoDataStyle &other) const
 
GeoDataStyleoperator= (const GeoDataStyle &other)
 
bool operator== (const GeoDataStyle &other) const
 
void pack (QDataStream &stream) const override
 
GeoDataPolyStylepolyStyle ()
 
const GeoDataPolyStylepolyStyle () const
 
void setBalloonStyle (const GeoDataBalloonStyle &style)
 
void setIconStyle (const GeoDataIconStyle &style)
 
void setLabelStyle (const GeoDataLabelStyle &style)
 
void setLineStyle (const GeoDataLineStyle &style)
 
void setListStyle (const GeoDataListStyle &style)
 
void setPolyStyle (const GeoDataPolyStyle &style)
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataStyleSelector
bool operator!= (const GeoDataStyleSelector &other) const
 
GeoDataStyleSelectoroperator= (const GeoDataStyleSelector &other)
 
bool operator== (const GeoDataStyleSelector &other) const
 
void pack (QDataStream &stream) const override
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from Marble::GeoDataStyleSelector
 GeoDataStyleSelector (const GeoDataStyleSelector &other)
 
- Protected Member Functions inherited from Marble::GeoDataObject
virtual bool equals (const GeoDataObject &other) const
 

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
GeoDataBalloonStyle
GeoDataListStyle

Definition at line 50 of file GeoDataStyle.h.

Constructor & Destructor Documentation

◆ GeoDataStyle() [1/2]

Marble::GeoDataStyle::GeoDataStyle ( )

Construct a default style.

Definition at line 45 of file GeoDataStyle.cpp.

◆ GeoDataStyle() [2/2]

Marble::GeoDataStyle::GeoDataStyle ( const QString iconPath,
const QFont font,
const QColor color 
)

Construct a new style.

Parameters
iconPathused to construct the icon style
fontused to construct the label styles
colorused to construct the label styles

Definition at line 55 of file GeoDataStyle.cpp.

Member Function Documentation

◆ balloonStyle()

const GeoDataBalloonStyle & Marble::GeoDataStyle::balloonStyle ( )

Return the balloon style of this style.

Definition at line 169 of file GeoDataStyle.cpp.

◆ iconStyle()

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

Return the icon style of this style.

Definition at line 129 of file GeoDataStyle.cpp.

◆ labelStyle()

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

Return the label style of this style.

Definition at line 159 of file GeoDataStyle.cpp.

◆ lineStyle()

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

Return the label style of this style.

Definition at line 139 of file GeoDataStyle.cpp.

◆ listStyle()

const GeoDataListStyle & Marble::GeoDataStyle::listStyle ( )

Return the list style of this style.

Definition at line 179 of file GeoDataStyle.cpp.

◆ nodeType()

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

Provides type information for downcasting a GeoNode.

Implements Marble::GeoNode.

Definition at line 92 of file GeoDataStyle.cpp.

◆ operator=()

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

assignment operator

Parameters
otherthe GeoDataStyle that gets duplicated

Definition at line 66 of file GeoDataStyle.cpp.

◆ pack()

void Marble::GeoDataStyle::pack ( QDataStream stream) const
override

Serialize the style to a stream.

Parameters
streamthe stream

Definition at line 189 of file GeoDataStyle.cpp.

◆ polyStyle()

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

Return the label style of this style.

Definition at line 149 of file GeoDataStyle.cpp.

◆ setBalloonStyle()

void Marble::GeoDataStyle::setBalloonStyle ( const GeoDataBalloonStyle &  style)

set the balloon style

Definition at line 118 of file GeoDataStyle.cpp.

◆ setIconStyle()

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

set the icon style

Definition at line 97 of file GeoDataStyle.cpp.

◆ setLabelStyle()

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

set the label style

Definition at line 108 of file GeoDataStyle.cpp.

◆ setLineStyle()

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

set the line style

Definition at line 103 of file GeoDataStyle.cpp.

◆ setListStyle()

void Marble::GeoDataStyle::setListStyle ( const GeoDataListStyle &  style)

set the list style

Definition at line 123 of file GeoDataStyle.cpp.

◆ setPolyStyle()

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

set the poly style

Definition at line 113 of file GeoDataStyle.cpp.

◆ unpack()

void Marble::GeoDataStyle::unpack ( QDataStream stream)
override

Unserialize the style from a stream.

Parameters
streamthe stream

Definition at line 201 of file GeoDataStyle.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:28 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.