Marble

GeoSceneGeodata.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2011 Utku Aydın <utkuaydin34@gmail.com>
4//
5
6#include "GeoSceneGeodata.h"
7#include "GeoSceneTypes.h"
8
9#include <QDebug>
10
11namespace Marble
12{
13GeoSceneGeodata::GeoSceneGeodata( const QString& name )
14 : GeoSceneAbstractDataset( name ),
15 m_sourceFile( QString() ),
16 m_alpha( 1.0 ),
17 m_pen( QPen( Qt::NoPen ) ),
18 m_brush( QBrush( Qt::transparent ) ),
19 m_renderOrder( 0 )
20{
21}
22
23GeoSceneGeodata::~GeoSceneGeodata()
24{
25}
26
27const char* GeoSceneGeodata::nodeType() const
28{
29 return GeoSceneTypes::GeoSceneGeodataType;
30}
31
32bool GeoSceneGeodata::operator==( const GeoSceneGeodata &other ) const
33{
34 return m_sourceFile == other.sourceFile()
35 && m_pen == other.pen()
36 && m_brush == other.brush();
37}
38
39QString GeoSceneGeodata::property() const
40{
41 return m_property;
42}
43
44void GeoSceneGeodata::setProperty( const QString& property )
45{
46 m_property = property;
47}
48
49QString GeoSceneGeodata::sourceFile() const
50{
51 return m_sourceFile;
52}
53
54void GeoSceneGeodata::setSourceFile(const QString& sourceFile)
55{
56 m_sourceFile = sourceFile;
57}
58
59QString GeoSceneGeodata::colorize() const
60{
61 return m_colorize;
62}
63
64void GeoSceneGeodata::setColorize( const QString& colorize )
65{
66 m_colorize = colorize;
67}
68
69QPen GeoSceneGeodata::pen() const
70{
71 return m_pen;
72}
73
74void GeoSceneGeodata::setAlpha(qreal alpha)
75{
76 m_alpha = alpha;
77}
78
79qreal GeoSceneGeodata::alpha() const
80{
81 return m_alpha;
82}
83
84void GeoSceneGeodata::setPen( const QPen& pen )
85{
86 m_pen = pen;
87}
88
89QBrush GeoSceneGeodata::brush() const
90{
91 return m_brush;
92}
93
94void GeoSceneGeodata::setBrush( const QBrush& brush )
95{
96 m_brush = brush;
97}
98
99int GeoSceneGeodata::renderOrder() const
100{
101 return m_renderOrder;
102}
103
104void GeoSceneGeodata::setRenderOrder( int renderOrder )
105{
106 m_renderOrder = renderOrder;
107}
108
109QVector<QColor> GeoSceneGeodata::colors() const
110{
111 return m_colors;
112}
113
114void GeoSceneGeodata::setColors(const QVector<QColor> &colors)
115{
116 m_colors = colors;
117}
118
119}
QString name(GameStandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
transparent
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:57:57 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.