• 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
  • plugins
  • declarative
DeclarativeDataPluginModel.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 2012 Anton Chernov <chernov.anton.mail@gmail.com>
9 // Copyright 2012 "LOTES TM" LLC <lotes.sis@gmail.com>
10 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
11 //
12 
13 #include "DeclarativeDataPluginModel.h"
14 
15 #include "GeoDataLatLonAltBox.h"
16 
17 using namespace Marble;
18 
19 DeclarativeDataPluginModel::DeclarativeDataPluginModel( const MarbleModel *marbleModel, QObject *parent )
20  : AbstractDataPluginModel( "QMLDataPluginModel", marbleModel, parent )
21 {
22  // nothing to do
23 }
24 
25 DeclarativeDataPluginModel::~DeclarativeDataPluginModel()
26 {
27  // nothing to do
28 }
29 
30 void DeclarativeDataPluginModel::getAdditionalItems( const GeoDataLatLonAltBox& box, qint32 )
31 {
32  Marble::GeoDataCoordinates::Unit const degree = Marble::GeoDataCoordinates::Degree;
33  emit dataRequest( box.north( degree ), box.south( degree ), box.east( degree ), box.west( degree ) );
34 }
35 
36 #include "DeclarativeDataPluginModel.moc"
Marble::GeoDataCoordinates::Unit
Unit
enum used constructor to specify the units used
Definition: GeoDataCoordinates.h:64
Marble::AbstractDataPluginModel
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
Marble::DeclarativeDataPluginModel::DeclarativeDataPluginModel
DeclarativeDataPluginModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: DeclarativeDataPluginModel.cpp:19
QObject
Marble::GeoDataCoordinates::Degree
Definition: GeoDataCoordinates.h:66
DeclarativeDataPluginModel.h
Marble::GeoDataLatLonBox::north
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
Marble::GeoDataLatLonBox::east
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
Marble::DeclarativeDataPluginModel::~DeclarativeDataPluginModel
virtual ~DeclarativeDataPluginModel()
Definition: DeclarativeDataPluginModel.cpp:25
Marble::DeclarativeDataPluginModel::dataRequest
void dataRequest(qreal north, qreal south, qreal east, qreal west)
Additional items for the given bound box (in degrees) are requested.
Marble::DeclarativeDataPluginModel::getAdditionalItems
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Managing to get number additional items in box.
Definition: DeclarativeDataPluginModel.cpp:30
Marble::GeoDataLatLonBox::west
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
GeoDataLatLonAltBox.h
Marble::GeoDataLatLonBox::south
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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