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

marble

  • sources
  • kde-4.12
  • 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_pen( QPen( Qt::NoPen ) ),
22  m_brush( QBrush( Qt::transparent ) )
23 {
24 }
25 
26 GeoSceneGeodata::~GeoSceneGeodata()
27 {
28 }
29 
30 const char* GeoSceneGeodata::nodeType() const
31 {
32  return GeoSceneTypes::GeoSceneGeodataType;
33 }
34 
35 bool GeoSceneGeodata::operator==( const GeoSceneGeodata &other ) const
36 {
37  return m_sourceFile == other.sourceFile()
38  && m_pen == other.pen()
39  && m_brush == other.brush();
40 }
41 
42 QString GeoSceneGeodata::property() const
43 {
44  return m_property;
45 }
46 
47 void GeoSceneGeodata::setProperty( QString property )
48 {
49  m_property = property;
50 }
51 
52 QString GeoSceneGeodata::sourceFile() const
53 {
54  return m_sourceFile;
55 }
56 
57 void GeoSceneGeodata::setSourceFile(QString sourceFile)
58 {
59  m_sourceFile = sourceFile;
60 }
61 
62 QString GeoSceneGeodata::colorize() const
63 {
64  return m_colorize;
65 }
66 
67 void GeoSceneGeodata::setColorize( QString colorize )
68 {
69  m_colorize = colorize;
70 }
71 
72 QPen GeoSceneGeodata::pen() const
73 {
74  return m_pen;
75 }
76 
77 void GeoSceneGeodata::setPen( const QPen& pen )
78 {
79  m_pen = pen;
80 }
81 
82 QBrush GeoSceneGeodata::brush() const
83 {
84  return m_brush;
85 }
86 
87 void GeoSceneGeodata::setBrush( const QBrush& brush )
88 {
89  m_brush = brush;
90 }
91 
92 }
GeoSceneTypes.h
Marble::GeoSceneGeodata::setProperty
void setProperty(QString property)
Definition: GeoSceneGeodata.cpp:47
Marble::GeoSceneGeodata::nodeType
virtual const char * nodeType() const
Definition: GeoSceneGeodata.cpp:30
GeoSceneGeodata.h
Marble::GeoSceneGeodata::operator==
bool operator==(const GeoSceneGeodata &other) const
Definition: GeoSceneGeodata.cpp:35
Marble::GeoSceneGeodata::pen
QPen pen() const
Definition: GeoSceneGeodata.cpp:72
Marble::GeoSceneGeodata::brush
QBrush brush() const
Definition: GeoSceneGeodata.cpp:82
Marble::GeoSceneGeodata::sourceFile
QString sourceFile() const
Definition: GeoSceneGeodata.cpp:52
Marble::GeoSceneGeodata::property
QString property() const
Definition: GeoSceneGeodata.cpp:42
Marble::GeoSceneAbstractDataset
Contents used inside a layer.
Definition: GeoSceneAbstractDataset.h:37
Marble::GeoSceneGeodata::setBrush
void setBrush(const QBrush &brush)
Definition: GeoSceneGeodata.cpp:87
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:26
Marble::GeoSceneGeodata::setSourceFile
void setSourceFile(QString sourceFile)
Definition: GeoSceneGeodata.cpp:57
Marble::GeoSceneGeodata::setColorize
void setColorize(QString colorize)
Definition: GeoSceneGeodata.cpp:67
Marble::GeoSceneGeodata::setPen
void setPen(const QPen &pen)
Definition: GeoSceneGeodata.cpp:77
Marble::GeoSceneGeodata::colorize
QString colorize() const
Definition: GeoSceneGeodata.cpp:62
Marble::GeoSceneGeodata
Definition: GeoSceneGeodata.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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