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

marble

  • Marble
  • PlacemarkLayout
Public Slots | Signals | Public Member Functions | List of all members
Marble::PlacemarkLayout Class Reference

#include <PlacemarkLayout.h>

Inheritance diagram for Marble::PlacemarkLayout:
Inheritance graph
[legend]

Public Slots

void addPlacemarks (QModelIndex index, int first, int last)
 
void removePlacemarks (QModelIndex index, int first, int last)
 
void requestStyleReset ()
 
void resetCacheData ()
 
void setShowCities (bool show)
 
void setShowCraters (bool show)
 
void setShowLandingSites (bool show)
 
void setShowMaria (bool show)
 
void setShowOtherPlaces (bool show)
 
void setShowPlaces (bool show)
 
void setShowTerrain (bool show)
 

Signals

void repaintNeeded ()
 

Public Member Functions

 PlacemarkLayout (QAbstractItemModel *placemarkModel, QItemSelectionModel *selectionModel, MarbleClock *clock, QObject *parent=0)
 
 ~PlacemarkLayout ()
 
QVector< VisiblePlacemark * > generateLayout (const ViewportParams *viewport)
 
QString runtimeTrace () const
 
QVector< const GeoDataPlacemark * > whichPlacemarkAt (const QPoint &pos)
 

Detailed Description

Layouts the place marks with a passed QPainter.

Definition at line 54 of file PlacemarkLayout.h.

Constructor & Destructor Documentation

Marble::PlacemarkLayout::PlacemarkLayout ( QAbstractItemModel *  placemarkModel,
QItemSelectionModel *  selectionModel,
MarbleClock *  clock,
QObject *  parent = 0 
)

Creates a new place mark layout.

Definition at line 136 of file PlacemarkLayout.cpp.

Marble::PlacemarkLayout::~PlacemarkLayout ( )

Destroys the place mark painter.

Definition at line 173 of file PlacemarkLayout.cpp.

Member Function Documentation

void Marble::PlacemarkLayout::addPlacemarks ( QModelIndex  index,
int  first,
int  last 
)
slot

feed an internal QMap of placemarks with TileId as key when model changes

Definition at line 268 of file PlacemarkLayout.cpp.

QVector< VisiblePlacemark * > Marble::PlacemarkLayout::generateLayout ( const ViewportParams *  viewport)
Reimplemented from superclass.

First handle the selected placemarks, as they have the highest priority.

Now handle all other placemarks...

We handled selected placemarks already, so we skip them here... Assuming that only a small amount of places is selected we check for the selected state after all other filters

Definition at line 371 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::removePlacemarks ( QModelIndex  index,
int  first,
int  last 
)
slot

Definition at line 289 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::repaintNeeded ( )
signal
void Marble::PlacemarkLayout::requestStyleReset ( )
slot

Definition at line 213 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::resetCacheData ( )
slot

Definition at line 309 of file PlacemarkLayout.cpp.

QString Marble::PlacemarkLayout::runtimeTrace ( ) const

Definition at line 532 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowCities ( bool  show)
slot

Definition at line 183 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowCraters ( bool  show)
slot

Definition at line 203 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowLandingSites ( bool  show)
slot

Definition at line 198 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowMaria ( bool  show)
slot

Definition at line 208 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowOtherPlaces ( bool  show)
slot

Definition at line 193 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowPlaces ( bool  show)
slot

Definition at line 178 of file PlacemarkLayout.cpp.

void Marble::PlacemarkLayout::setShowTerrain ( bool  show)
slot

Definition at line 188 of file PlacemarkLayout.cpp.

QVector< const GeoDataPlacemark * > Marble::PlacemarkLayout::whichPlacemarkAt ( const QPoint &  pos)

Returns a list of model indexes that are at position pos.

Definition at line 229 of file PlacemarkLayout.cpp.


The documentation for this class was generated from the following files:
  • PlacemarkLayout.h
  • PlacemarkLayout.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 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