• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • scene
GeoSceneGeodata.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Utku Aydın <utkuaydin34@gmail.com>
9 //
10 
11 #include "GeoSceneGeodata.h"
12 #include "GeoSceneTypes.h"
13 
14 #include <QDebug>
15 
16 namespace Marble
17 {
18 GeoSceneGeodata::GeoSceneGeodata( QString name )
19  : GeoSceneAbstractDataset( name ),
20  m_sourceFile( QString() ),
21  m_alpha( 1.0 ),
22  m_pen( QPen( Qt::NoPen ) ),
23  m_brush( QBrush( Qt::transparent ) )
24 {
25 }
26 
27 GeoSceneGeodata::~GeoSceneGeodata()
28 {
29 }
30 
31 const char* GeoSceneGeodata::nodeType() const
32 {
33  return GeoSceneTypes::GeoSceneGeodataType;
34 }
35 
36 bool GeoSceneGeodata::operator==( const GeoSceneGeodata &other ) const
37 {
38  return m_sourceFile == other.sourceFile()
39  && m_pen == other.pen()
40  && m_brush == other.brush();
41 }
42 
43 QString GeoSceneGeodata::property() const
44 {
45  return m_property;
46 }
47 
48 void GeoSceneGeodata::setProperty( QString property )
49 {
50  m_property = property;
51 }
52 
53 QString GeoSceneGeodata::sourceFile() const
54 {
55  return m_sourceFile;
56 }
57 
58 void GeoSceneGeodata::setSourceFile(QString sourceFile)
59 {
60  m_sourceFile = sourceFile;
61 }
62 
63 QString GeoSceneGeodata::colorize() const
64 {
65  return m_colorize;
66 }
67 
68 void GeoSceneGeodata::setColorize( QString colorize )
69 {
70  m_colorize = colorize;
71 }
72 
73 QPen GeoSceneGeodata::pen() const
74 {
75  return m_pen;
76 }
77 
78 void GeoSceneGeodata::setAlpha( const qreal &alpha )
79 {
80  m_alpha = alpha;
81 }
82 
83 qreal GeoSceneGeodata::alpha() const
84 {
85  return m_alpha;
86 }
87 
88 void GeoSceneGeodata::setPen( const QPen& pen )
89 {
90  m_pen = pen;
91 }
92 
93 QBrush GeoSceneGeodata::brush() const
94 {
95  return m_brush;
96 }
97 
98 void GeoSceneGeodata::setBrush( const QBrush& brush )
99 {
100  m_brush = brush;
101 }
102 
103 QList<QColor> GeoSceneGeodata::colors() const
104 {
105  return m_colors;
106 }
107 
108 void GeoSceneGeodata::setColors( const QList<QColor> &colors )
109 {
110  m_colors = colors;
111 }
112 
113 }
GeoSceneTypes.h
Marble::GeoSceneGeodata::setProperty
void setProperty(QString property)
Definition: GeoSceneGeodata.cpp:48
Marble::GeoSceneGeodata::nodeType
virtual const char * nodeType() const
Definition: GeoSceneGeodata.cpp:31
GeoSceneGeodata.h
Marble::GeoSceneGeodata::operator==
bool operator==(const GeoSceneGeodata &other) const
Definition: GeoSceneGeodata.cpp:36
Marble::GeoSceneGeodata::pen
QPen pen() const
Definition: GeoSceneGeodata.cpp:73
Marble::GeoSceneGeodata::brush
QBrush brush() const
Definition: GeoSceneGeodata.cpp:93
Marble::GeoSceneGeodata::sourceFile
QString sourceFile() const
Definition: GeoSceneGeodata.cpp:53
QBrush
Marble::GeoSceneGeodata::property
QString property() const
Definition: GeoSceneGeodata.cpp:43
Marble::GeoSceneGeodata::colors
QList< QColor > colors() const
Definition: GeoSceneGeodata.cpp:103
Marble::GeoSceneAbstractDataset
Contents used inside a layer.
Definition: GeoSceneAbstractDataset.h:37
Marble::GeoSceneGeodata::setBrush
void setBrush(const QBrush &brush)
Definition: GeoSceneGeodata.cpp:98
Marble::GeoSceneGeodata::GeoSceneGeodata
GeoSceneGeodata(QString name)
Definition: GeoSceneGeodata.cpp:18
Marble::GeoSceneTypes::GeoSceneGeodataType
const char * GeoSceneGeodataType
Definition: GeoSceneTypes.cpp:20
Marble::GeoSceneGeodata::~GeoSceneGeodata
virtual ~GeoSceneGeodata()
Definition: GeoSceneGeodata.cpp:27
Marble::GeoSceneGeodata::setSourceFile
void setSourceFile(QString sourceFile)
Definition: GeoSceneGeodata.cpp:58
Marble::GeoSceneGeodata::setColorize
void setColorize(QString colorize)
Definition: GeoSceneGeodata.cpp:68
QString
QList< QColor >
Marble::GeoSceneGeodata::setColors
void setColors(const QList< QColor > &colors)
Definition: GeoSceneGeodata.cpp:108
Marble::GeoSceneGeodata::setAlpha
void setAlpha(const qreal &alpha)
Definition: GeoSceneGeodata.cpp:78
Marble::GeoSceneGeodata::setPen
void setPen(const QPen &pen)
Definition: GeoSceneGeodata.cpp:88
QPen
Marble::GeoSceneGeodata::colorize
QString colorize() const
Definition: GeoSceneGeodata.cpp:63
Marble::GeoSceneGeodata::alpha
qreal alpha() const
Definition: GeoSceneGeodata.cpp:83
Marble::GeoSceneGeodata
Definition: GeoSceneGeodata.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal