marble
#include <SceneGraphicsItem.h>

Public Member Functions | |
| SceneGraphicsItem (GeoDataPlacemark *placemark) | |
| ~SceneGraphicsItem () | |
| virtual const char * | graphicType () const =0 |
| const GeoDataPlacemark * | placemark () const |
| GeoDataPlacemark * | placemark () |
| QList< QRegion > | regions () const |
| bool | sceneEvent (QEvent *event) |
| void | setRegions (const QList< QRegion > ®ions) |
Public Member Functions inherited from Marble::GeoGraphicsItem | |
| GeoGraphicsItem (const GeoDataFeature *feature) | |
| virtual | ~GeoGraphicsItem () |
| const GeoDataFeature * | feature () const |
| GeoGraphicsItemFlags | flags () const |
| virtual const GeoDataLatLonAltBox & | latLonAltBox () const |
| int | minZoomLevel () const |
| virtual void | paint (GeoPainter *painter, const ViewportParams *viewport)=0 |
| void | setFlag (GeoGraphicsItemFlag flag, bool enabled=true) |
| void | setFlags (GeoGraphicsItemFlags flags) |
| void | setLatLonAltBox (const GeoDataLatLonAltBox &latLonAltBox) |
| void | setMinZoomLevel (int zoomLevel) |
| void | setStyle (const GeoDataStyle *style) |
| void | setVisible (bool visible) |
| void | setZValue (qreal z) |
| const GeoDataStyle * | style () const |
| bool | visible () const |
| qreal | zValue () const |
Protected Member Functions | |
| virtual bool | mouseMoveEvent (QMouseEvent *event)=0 |
| virtual bool | mousePressEvent (QMouseEvent *event)=0 |
| virtual bool | mouseReleaseEvent (QMouseEvent *event)=0 |
Additional Inherited Members | |
Public Types inherited from Marble::GeoGraphicsItem | |
| enum | GeoGraphicsItemFlag { NoOptions = 0x0, ItemIsMovable = 0x1, ItemIsSelectable = 0x2, ItemIsVisible = 0x4 } |
Protected Attributes inherited from Marble::GeoGraphicsItem | |
| GeoGraphicsItemPrivate *const | d |
Detailed Description
This is the base class for all scene graphics included within the annotate plugin.
It is not instantiated by itself but it is always used as a part of a derived object.
Definition at line 34 of file SceneGraphicsItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 19 of file SceneGraphicsItem.cpp.
| Marble::SceneGraphicsItem::~SceneGraphicsItem | ( | ) |
Definition at line 26 of file SceneGraphicsItem.cpp.
Member Function Documentation
|
pure virtual |
It is used for downcasting a SceneGraphicItem.
It returns a const char which is the name of the element's class and is defined within the SceneGraphicsTypes namespace.
Implemented in Marble::AreaAnnotation, Marble::GroundOverlayFrame, and Marble::PlacemarkTextAnnotation.
|
protectedpure virtual |
Implemented in Marble::AreaAnnotation, and Marble::PlacemarkTextAnnotation.
|
protectedpure virtual |
Pure virtual functions which handle the mouse events, all of which are re-implemented in every SceneGraphicItem derived classes.
Implemented in Marble::AreaAnnotation, and Marble::PlacemarkTextAnnotation.
|
protectedpure virtual |
Implemented in Marble::AreaAnnotation, and Marble::PlacemarkTextAnnotation.
| const GeoDataPlacemark * Marble::SceneGraphicsItem::placemark | ( | ) | const |
SceneGraphicItem class, when called from one of its derived classes' constructors, takes as a parameter a pointer to the placemark of the graphic element.
- Returns
- The pointer to the placemark mentioned above.
Definition at line 41 of file SceneGraphicsItem.cpp.
| GeoDataPlacemark * Marble::SceneGraphicsItem::placemark | ( | ) |
Definition at line 46 of file SceneGraphicsItem.cpp.
Returns the list of regions which form the scene graphic element.
Definition at line 31 of file SceneGraphicsItem.cpp.
| bool Marble::SceneGraphicsItem::sceneEvent | ( | QEvent * | event | ) |
This function is used to call the event distributer and makes use of the re-implemented virtual functions which handle the mouse events.
FIXME: There is still doubt whether there is a better way to do this or not.
Definition at line 51 of file SceneGraphicsItem.cpp.
A setter for the m_regions private member.
Definition at line 36 of file SceneGraphicsItem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from