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

marble

  • Marble
  • ScreenGraphicsItem
Public Types | Public Member Functions | Protected Member Functions | List of all members
Marble::ScreenGraphicsItem Class Reference

#include <ScreenGraphicsItem.h>

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

Public Types

enum  GraphicsItemFlag { ItemIsMovable = 0x1, ItemIsHideable = 0x2 }
 
- Public Types inherited from Marble::MarbleGraphicsItem
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
 

Public Member Functions

 ScreenGraphicsItem (MarbleGraphicsItem *parent=0)
 
virtual ~ScreenGraphicsItem ()
 
QList< QPointF > absolutePositions () const
 
GraphicsItemFlags flags () const
 
QPointF position () const
 
QPointF positivePosition () const
 
void setFlags (GraphicsItemFlags flags)
 
void setPosition (const QPointF &position)
 
- Public Member Functions inherited from Marble::MarbleGraphicsItem
virtual ~MarbleGraphicsItem ()
 
CacheMode cacheMode () const
 
bool contains (const QPointF &point) const
 
virtual QRectF contentRect () const
 
virtual QSizeF contentSize () const
 
void hide ()
 
AbstractMarbleGraphicsLayout * layout () const
 
bool paintEvent (QPainter *painter, const ViewportParams *viewport)
 
void setCacheMode (CacheMode mode)
 
virtual void setContentSize (const QSizeF &size)
 
void setLayout (AbstractMarbleGraphicsLayout *layout)
 
virtual void setProjection (const ViewportParams *viewport)
 
void setSize (const QSizeF &size)
 
void setVisible (bool visible)
 
void show ()
 
QSizeF size () const
 
bool visible () const
 

Protected Member Functions

 ScreenGraphicsItem (ScreenGraphicsItemPrivate *d_ptr)
 
virtual bool eventFilter (QObject *, QEvent *)
 
- Protected Member Functions inherited from Marble::MarbleGraphicsItem
 MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr)
 
virtual void paint (QPainter *painter)
 
void update ()
 

Additional Inherited Members

- Protected Attributes inherited from Marble::MarbleGraphicsItem
MarbleGraphicsItemPrivate *const d
 

Detailed Description

Definition at line 30 of file ScreenGraphicsItem.h.

Member Enumeration Documentation

enum Marble::ScreenGraphicsItem::GraphicsItemFlag
Enumerator
ItemIsMovable 
ItemIsHideable 

Definition at line 33 of file ScreenGraphicsItem.h.

Constructor & Destructor Documentation

ScreenGraphicsItem::ScreenGraphicsItem ( MarbleGraphicsItem *  parent = 0)
explicit

Definition at line 25 of file ScreenGraphicsItem.cpp.

ScreenGraphicsItem::~ScreenGraphicsItem ( )
virtual

Definition at line 35 of file ScreenGraphicsItem.cpp.

ScreenGraphicsItem::ScreenGraphicsItem ( ScreenGraphicsItemPrivate *  d_ptr)
explicitprotected

Definition at line 30 of file ScreenGraphicsItem.cpp.

Member Function Documentation

QList< QPointF > ScreenGraphicsItem::absolutePositions ( ) const

Return the absolute position of the ScreenGraphicsItem.

All coordinates are counted positive and depend on the current viewport.

Positive x-coordinates are counted left-aligned from the left border of the map. Positive y-coordinates are counted top-aligned from the top border of the map.

Definition at line 54 of file ScreenGraphicsItem.cpp.

bool ScreenGraphicsItem::eventFilter ( QObject *  object,
QEvent *  e 
)
protectedvirtual

Reimplemented from Marble::MarbleGraphicsItem.

Reimplemented in Marble::AbstractFloatItem, Marble::OverviewMap, Marble::ElevationProfileFloatItem, Marble::NavigationFloatItem, Marble::FileViewFloatItem, Marble::RoutingPlugin, Marble::License, and Marble::WidgetGraphicsItem.

Definition at line 69 of file ScreenGraphicsItem.cpp.

ScreenGraphicsItem::GraphicsItemFlags ScreenGraphicsItem::flags ( ) const

Returns the flags of the item.

Definition at line 59 of file ScreenGraphicsItem.cpp.

QPointF ScreenGraphicsItem::position ( ) const

Return the position of the ScreenGraphicsItem.

Positive x-coordinates are counted left-aligned from the left border of the parent item. Negative x-coordinates are counted right-aligned from the right border of the parent item.

Positive y-coordinates are counted top-aligned from the top border of the parent item. Negative y-coordinates are counted right-aligned from the bottom border of the parent item.

Definition at line 39 of file ScreenGraphicsItem.cpp.

QPointF ScreenGraphicsItem::positivePosition ( ) const

Return the positive position of the ScreenGraphicsItem.

All coordinates are counted positive and depend on the current viewport.

Positive x-coordinates are counted left-aligned from the left border of the parent item. Positive y-coordinates are counted top-aligned from the top border of the parent item.

Definition at line 49 of file ScreenGraphicsItem.cpp.

void ScreenGraphicsItem::setFlags ( GraphicsItemFlags  flags)

Sets the flags to flags.

All flags in flags will be enabled and all other flags will be disabled. By default all flags are disabled.

Definition at line 64 of file ScreenGraphicsItem.cpp.

void ScreenGraphicsItem::setPosition ( const QPointF &  position)

Set the position of the ScreenGraphicsItem.

Parameters
posPosition

Positive x-coordinates are counted left-aligned from the left border of the parent item. Negative x-coordinates are counted right-aligned from the right border of the parent item.

Positive y-coordinates are counted top-aligned from the top border of the parent item. Negative y-coordinates are counted right-aligned from the bottom border of the parent item.

Definition at line 44 of file ScreenGraphicsItem.cpp.


The documentation for this class was generated from the following files:
  • ScreenGraphicsItem.h
  • ScreenGraphicsItem.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