marble
PlacemarkLayout.cpp
Go to the documentation of this file.
253 const GeoDataPlacemark *placemark = dynamic_cast<GeoDataPlacemark*>(qvariant_cast<GeoDataObject*>(index.data( MarblePlacemarkModel::ObjectPointerRole ) ));
275 const GeoDataPlacemark *placemark = static_cast<GeoDataPlacemark*>(qvariant_cast<GeoDataObject*>(index.data( MarblePlacemarkModel::ObjectPointerRole ) ));
296 const GeoDataPlacemark *placemark = static_cast<GeoDataPlacemark*>(qvariant_cast<GeoDataObject*>( index.data( MarblePlacemarkModel::ObjectPointerRole ) ));
400 const GeoDataPlacemark *placemark = dynamic_cast<GeoDataPlacemark*>(qvariant_cast<GeoDataObject*>(index.data( MarblePlacemarkModel::ObjectPointerRole ) ));
511 const GeoDataPlacemark *mark = dynamic_cast<GeoDataPlacemark*>(qvariant_cast<GeoDataObject*>(index.data( MarblePlacemarkModel::ObjectPointerRole ) ));
528 m_runtimeTrace = QString("Placemarks: %1 Drawn: %2").arg( placemarkList.count() ).arg( m_paintOrder.size() );
537 bool PlacemarkLayout::layoutPlacemark( const GeoDataPlacemark *placemark, qreal x, qreal y, bool selected )
588 GeoDataCoordinates PlacemarkLayout::placemarkIconCoordinates( const GeoDataPlacemark *placemark ) const
const QPixmap & symbolPixmap() const
Returns the pixmap of the place mark symbol.
Definition: VisiblePlacemark.cpp:38
A class which represents the visible place marks on a map.
Definition: VisiblePlacemark.h:38
void boundaries(qreal &north, qreal &south, qreal &east, qreal &west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Definition: GeoDataLatLonBox.cpp:198
void repaintNeeded()
Definition: GeoDataFeature.h:103
void setShowOtherPlaces(bool show)
Definition: PlacemarkLayout.cpp:193
void setShowCities(bool show)
Definition: PlacemarkLayout.cpp:183
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
const GeoDataStyle * style() const
Return the style assigned to the placemark.
Definition: GeoDataFeature.cpp:624
const QPoint & symbolPosition() const
Returns the position of the place mark symbol on the map.
Definition: VisiblePlacemark.cpp:60
const QRectF & labelRect() const
Returns the area covered by the place mark name label on the map.
Definition: VisiblePlacemark.cpp:110
QString runtimeTrace() const
Definition: PlacemarkLayout.cpp:532
int zoomLevel() const
Return the popularity index of the placemark.
Definition: GeoDataFeature.cpp:707
virtual bool contains(const GeoDataCoordinates &) const
Definition: GeoDataLatLonAltBox.cpp:171
The pointer to a specific object.
Definition: MarblePlacemarkModel.h:62
GeoDataLabelStyle & labelStyle() const
Return the label style of this style.
Definition: GeoDataStyle.cpp:128
void setShowPlaces(bool show)
Definition: PlacemarkLayout.cpp:178
QVector< GeoDataFeature::GeoDataVisualCategory > sortedVisualCategories()
Definition: PlacemarkLayout.cpp:44
void removePlacemarks(QModelIndex index, int first, int last)
Definition: PlacemarkLayout.cpp:289
bool screenCoordinates(const qreal lon, const qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: ViewportParams.cpp:357
QVector< VisiblePlacemark * > generateLayout(const ViewportParams *viewport)
Definition: PlacemarkLayout.cpp:371
QVector< const GeoDataPlacemark * > whichPlacemarkAt(const QPoint &pos)
Returns a list of model indexes that are at position pos.
Definition: PlacemarkLayout.cpp:229
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
bool isGloballyVisible() const
Return whether this feature is visible or not in the context of its parenting.
Definition: GeoDataFeature.cpp:592
PlacemarkLayout(QAbstractItemModel *placemarkModel, QItemSelectionModel *selectionModel, MarbleClock *clock, QObject *parent=0)
Creates a new place mark layout.
Definition: PlacemarkLayout.cpp:136
This file contains the headers for ViewportParams.
The popularity index.
Definition: MarblePlacemarkModel.h:60
Definition: TileId.h:27
void setShowTerrain(bool show)
Definition: PlacemarkLayout.cpp:188
GeoDataVisualCategory visualCategory() const
Return the symbol index of the placemark.
Definition: GeoDataFeature.cpp:675
static TileId fromCoordinates(const GeoDataCoordinates &coords, int popularity)
Definition: TileId.cpp:62
void setShowCraters(bool show)
Definition: PlacemarkLayout.cpp:203
const GeoDataPlacemark * placemark() const
Returns the index of the place mark model which is associated with this visible place mark...
Definition: VisiblePlacemark.cpp:33
void setShowMaria(bool show)
Definition: PlacemarkLayout.cpp:208
void setShowLandingSites(bool show)
Definition: PlacemarkLayout.cpp:198
GeoDataVisualCategory
A categorization of a placemark as defined by ...FIXME.
Definition: GeoDataFeature.h:75
void addPlacemarks(QModelIndex index, int first, int last)
feed an internal QMap of placemarks with TileId as key when model changes
Definition: PlacemarkLayout.cpp:268
Definition: MarbleClock.h:25
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
Definition: GeoDataFeature.h:111
void requestStyleReset()
Definition: PlacemarkLayout.cpp:213
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.