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

marble

  • Marble
  • SceneGraphicsItem
Public Member Functions | Protected Member Functions | List of all members
Marble::SceneGraphicsItem Class Referenceabstract

#include <SceneGraphicsItem.h>

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

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 > &regions)
 
- 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

Marble::SceneGraphicsItem::SceneGraphicsItem ( GeoDataPlacemark *  placemark)
explicit

Definition at line 19 of file SceneGraphicsItem.cpp.

Marble::SceneGraphicsItem::~SceneGraphicsItem ( )

Definition at line 26 of file SceneGraphicsItem.cpp.

Member Function Documentation

virtual const char* Marble::SceneGraphicsItem::graphicType ( ) const
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.

virtual bool Marble::SceneGraphicsItem::mouseMoveEvent ( QMouseEvent *  event)
protectedpure virtual

Implemented in Marble::AreaAnnotation, and Marble::PlacemarkTextAnnotation.

virtual bool Marble::SceneGraphicsItem::mousePressEvent ( QMouseEvent *  event)
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.

virtual bool Marble::SceneGraphicsItem::mouseReleaseEvent ( QMouseEvent *  event)
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.

QList< QRegion > Marble::SceneGraphicsItem::regions ( ) const

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.

void Marble::SceneGraphicsItem::setRegions ( const QList< QRegion > &  regions)

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:
  • SceneGraphicsItem.h
  • SceneGraphicsItem.cpp
This file is part of the KDE documentation.
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.

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
  • 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