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
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
QModelIndexList indexes() const
void setSortRole(int role)
void setBottom(int y)
QSize size() 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
int width() const
void boundaries(qreal &north, qreal &south, qreal &east, qreal &west, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Definition: GeoDataLatLonBox.cpp:198
virtual void sort(int column, Qt::SortOrder order)
void append(const T &value)
void repaintNeeded()
Definition: GeoDataFeature.h:105
virtual void setSourceModel(QAbstractItemModel *sourceModel)
void setShowOtherPlaces(bool show)
Definition: PlacemarkLayout.cpp:193
void getCoords(int *x1, int *y1, int *x2, int *y2) const
const_iterator constEnd() const
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, or a default style if none has been set.
Definition: GeoDataFeature.cpp:709
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
bool intersects(const QRectF &rectangle) const
QString runtimeTrace() const
Definition: PlacemarkLayout.cpp:532
int zoomLevel() const
Return the popularity index of the placemark.
Definition: GeoDataFeature.cpp:797
void setWeight(int weight)
const_iterator insert(const T &value)
virtual bool contains(const GeoDataCoordinates &) const
Definition: GeoDataLatLonAltBox.cpp:170
The pointer to a specific object.
Definition: MarblePlacemarkModel.h:62
qreal left() const
virtual int rowCount(const QModelIndex &parent) const
void clear()
bool isValid() const
int count(const T &value) const
qreal x() const
qreal y() const
void setTop(int y)
const QItemSelection selection() const
void setShowPlaces(bool show)
Definition: PlacemarkLayout.cpp:178
bool isEmpty() const
QVector< GeoDataFeature::GeoDataVisualCategory > sortedVisualCategories()
Definition: PlacemarkLayout.cpp:44
void removePlacemarks(QModelIndex index, int first, int last)
Definition: PlacemarkLayout.cpp:289
void setDynamicSortFilter(bool enable)
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:667
PlacemarkLayout(QAbstractItemModel *placemarkModel, QItemSelectionModel *selectionModel, MarbleClock *clock, QObject *parent=0)
Creates a new place mark layout.
Definition: PlacemarkLayout.cpp:136
qreal right() const
bool isNull() const
bool isEmpty() const
int width(const QString &text, int len) const
This file contains the headers for ViewportParams.
The popularity index.
Definition: MarblePlacemarkModel.h:60
void setRight(int x)
const_iterator constBegin() const
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:765
qreal width() const
QVariant data(int role) const
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
int height() const
int height() const
void setShowMaria(bool show)
Definition: PlacemarkLayout.cpp:208
void setShowLandingSites(bool show)
Definition: PlacemarkLayout.cpp:198
qreal height() const
bool contains(const QPointF &point) const
GeoDataVisualCategory
A categorization of a placemark as defined by ...FIXME.
Definition: GeoDataFeature.h:77
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setLeft(int x)
GeoDataLabelStyle & labelStyle()
Return the label style of this style.
Definition: GeoDataStyle.cpp:163
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void coords(int *x1, int *y1, int *x2, int *y2) const
Definition: GeoDataFeature.h:113
void requestStyleReset()
Definition: PlacemarkLayout.cpp:213
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.