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_alpha(1.0)
16 , m_pen(QPen(Qt::NoPen))
17 , m_brush(QBrush(Qt::transparent))
18 , m_renderOrder(0)
19{
20}
21
22GeoSceneGeodata::~GeoSceneGeodata() = default;
23
24const char *GeoSceneGeodata::nodeType() const
25{
26 return GeoSceneTypes::GeoSceneGeodataType;
27}
28
29bool GeoSceneGeodata::operator==(const GeoSceneGeodata &other) const
30{
31 return m_sourceFile == other.sourceFile() && m_pen == other.pen() && m_brush == other.brush();
32}
33
34QString GeoSceneGeodata::property() const
35{
36 return m_property;
37}
38
39void GeoSceneGeodata::setProperty(const QString &property)
40{
41 m_property = property;
42}
43
44QString GeoSceneGeodata::sourceFile() const
45{
46 return m_sourceFile;
47}
48
49void GeoSceneGeodata::setSourceFile(const QString &sourceFile)
50{
51 m_sourceFile = sourceFile;
52}
53
54QString GeoSceneGeodata::colorize() const
55{
56 return m_colorize;
57}
58
59void GeoSceneGeodata::setColorize(const QString &colorize)
60{
61 m_colorize = colorize;
62}
63
64QPen GeoSceneGeodata::pen() const
65{
66 return m_pen;
67}
68
69void GeoSceneGeodata::setAlpha(qreal alpha)
70{
71 m_alpha = alpha;
72}
73
74qreal GeoSceneGeodata::alpha() const
75{
76 return m_alpha;
77}
78
79void GeoSceneGeodata::setPen(const QPen &pen)
80{
81 m_pen = pen;
82}
83
84QBrush GeoSceneGeodata::brush() const
85{
86 return m_brush;
87}
88
89void GeoSceneGeodata::setBrush(const QBrush &brush)
90{
91 m_brush = brush;
92}
93
94int GeoSceneGeodata::renderOrder() const
95{
96 return m_renderOrder;
97}
98
99void GeoSceneGeodata::setRenderOrder(int renderOrder)
100{
101 m_renderOrder = renderOrder;
102}
103
104QList<QColor> GeoSceneGeodata::colors() const
105{
106 return m_colors;
107}
108
109void GeoSceneGeodata::setColors(const QList<QColor> &colors)
110{
111 m_colors = colors;
112}
113
114}
QString name(StandardAction 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 Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.