• 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
  • graphicsitem
GeoPointGraphicsItem.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 2009 Andrew Manson <g.real.ate@gmail.com>
9 //
10 
11 #include "GeoPointGraphicsItem.h"
12 
13 #include "GeoPainter.h"
14 
15 namespace Marble
16 {
17 
18 GeoPointGraphicsItem::GeoPointGraphicsItem( const GeoDataFeature *feature )
19  : GeoGraphicsItem( feature )
20 {
21 }
22 
23 void GeoPointGraphicsItem::setPoint( const GeoDataPoint& point )
24 {
25  m_point = point;
26 }
27 
28 GeoDataPoint GeoPointGraphicsItem::point() const
29 {
30  return m_point;
31 }
32 
33 void GeoPointGraphicsItem::paint( GeoPainter* painter, const ViewportParams* viewport )
34 {
35  Q_UNUSED( viewport );
36  painter->drawPoint( m_point );
37 }
38 
39 const GeoDataLatLonAltBox& GeoPointGraphicsItem::latLonAltBox() const
40 {
41  return m_point.latLonAltBox();
42 }
43 
44 }
Marble::GeoDataPoint
A Geometry object representing a 3d point.
Definition: GeoDataPoint.h:47
Marble::GeoPointGraphicsItem::latLonAltBox
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the bounding box covered by the item.
Definition: GeoPointGraphicsItem.cpp:39
Marble::GeoPointGraphicsItem::m_point
GeoDataPoint m_point
Definition: GeoPointGraphicsItem.h:35
Marble::GeoPointGraphicsItem::point
GeoDataPoint point() const
Definition: GeoPointGraphicsItem.cpp:28
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::GeoGraphicsItem
Definition: GeoGraphicsItem.h:30
Marble::GeoPointGraphicsItem::setPoint
void setPoint(const GeoDataPoint &point)
Definition: GeoPointGraphicsItem.cpp:23
GeoPainter.h
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::GeoDataFeature
A base class for all geodata features.
Definition: GeoDataFeature.h:55
Marble::GeoPointGraphicsItem::paint
virtual void paint(GeoPainter *painter, const ViewportParams *viewport)
Paints the item using the given GeoPainter.
Definition: GeoPointGraphicsItem.cpp:33
Marble::GeoPointGraphicsItem::GeoPointGraphicsItem
GeoPointGraphicsItem(const GeoDataFeature *feature)
Definition: GeoPointGraphicsItem.cpp:18
GeoPointGraphicsItem.h
Marble::GeoPainter::drawPoint
void drawPoint(const GeoDataCoordinates &position)
Draws a single point at a given geographic position. The point is drawn using the painter's pen color...
Definition: GeoPainter.cpp:227
Marble::GeoDataGeometry::latLonAltBox
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Definition: GeoDataGeometry.cpp:122
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: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