marble
GeometryLayer.cpp
Go to the documentation of this file.
58 void createGraphicsItemFromGeometry( const GeoDataGeometry *object, const GeoDataPlacemark *placemark );
99 const GeoDataObject *object = static_cast<GeoDataObject*>( d->m_model->index( 0, 0, QModelIndex() ).internalPointer() );
245 int maxZoomLevel = qMin<int>( qMax<int>( qLn( viewport->radius() *4 / 256 ) / qLn( 2.0 ), 1), GeometryLayerPrivate::maximumZoomLevel() );
299 void GeometryLayerPrivate::createGraphicsItemFromGeometry( const GeoDataGeometry* object, const GeoDataPlacemark *placemark )
359 GeoDataScreenOverlay const * screenOverlay = static_cast<GeoDataScreenOverlay const *>( overlay );
400 const GeoDataObject *object = qvariant_cast<GeoDataObject*>(index.data( MarblePlacemarkModel::ObjectPointerRole ) );
414 const GeoDataObject *object = qvariant_cast<GeoDataObject*>(index.data( MarblePlacemarkModel::ObjectPointerRole ) );
428 const GeoDataObject *object = static_cast<GeoDataObject*>( d->m_model->index( 0, 0, QModelIndex() ).internalPointer() );
const char * GeoDataMultiGeometryType
Definition: GeoDataTypes.cpp:60
virtual bool intersects(const GeoDataLatLonAltBox &) const
Check if this GeoDataLatLonAltBox intersects with the given one.
Definition: GeoDataLatLonAltBox.cpp:196
const char * GeoDataLinearRingType
Definition: GeoDataTypes.cpp:52
const char * GeoDataPolygonType
Definition: GeoDataTypes.cpp:69
virtual bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="NONE", GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: GeometryLayer.cpp:237
virtual QString runtimeTrace() const
Returns a debug line for perfo/tracing issues.
Definition: GeometryLayer.cpp:274
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
virtual void paint(GeoPainter *painter, const ViewportParams *viewport)=0
Paints the item using the given GeoPainter.
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:66
const char * GeoDataDocumentType
Definition: GeoDataTypes.cpp:38
virtual GeoDataObject * parent() const
Provides the parent of the object in GeoDataContainers.
Definition: GeoDataObject.cpp:65
void save()
Definition: GeoGraphicsItem.h:30
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
The pointer to a specific object.
Definition: MarblePlacemarkModel.h:62
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the bounding box covered by the item.
Definition: GeoGraphicsItem.cpp:67
virtual QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: GeometryLayer.cpp:118
void repaintNeeded()
bool isValid() const
const char * GeoDataScreenOverlayType
Definition: GeoDataTypes.cpp:88
void removePlacemarks(QModelIndex index, int first, int last)
Definition: GeometryLayer.cpp:408
const char * GeoDataFolderType
Definition: GeoDataTypes.cpp:42
const char * GeoDataMultiTrackType
Definition: GeoDataTypes.cpp:61
const char * GeoDataLineStringType
Definition: GeoDataTypes.cpp:53
Definition: RenderState.h:22
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void addPlacemarks(QModelIndex index, int first, int last)
Definition: GeometryLayer.cpp:393
This file contains the headers for ViewportParams.
void restore()
GeometryLayer(const QAbstractItemModel *model)
Definition: GeometryLayer.cpp:96
QVariant data(int role) const
bool paintEvent(QPainter *painter, const ViewportParams *viewport)
Paints the item on the screen in view coordinates.
Definition: MarbleGraphicsItem.cpp:38
Definition: GeoDataFeature.h:78
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)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
const char * GeoDataPhotoOverlayType
Definition: GeoDataTypes.cpp:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.