Marble

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

KDE's Doxygen guidelines are available online.