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

marble

  • Marble
  • BillboardGraphicsItem
Public Member Functions | List of all members
Marble::BillboardGraphicsItem Class Reference

#include <BillboardGraphicsItem.h>

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

Public Member Functions

 BillboardGraphicsItem ()
 
Qt::Alignment alignment () const
 
QList< QRectF > boundingRects () const
 
QRectF containsRect (const QPointF &point) const
 
GeoDataCoordinates coordinate () const
 
QList< QPointF > positions () const
 
void setAlignment (Qt::Alignment alignment)
 
void setCoordinate (const GeoDataCoordinates &coordinates)
 
- 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
 

Additional Inherited Members

- Public Types inherited from Marble::MarbleGraphicsItem
enum  CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache }
 
- Protected Member Functions inherited from Marble::MarbleGraphicsItem
 MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr)
 
virtual bool eventFilter (QObject *object, QEvent *e)
 
virtual void paint (QPainter *painter)
 
void update ()
 
- Protected Attributes inherited from Marble::MarbleGraphicsItem
MarbleGraphicsItemPrivate *const d
 

Detailed Description

Base class for all 2D labels (a.k.a.

billboards) in 3D space.

A BillboardGraphicsItem represents a point of interest on a planet with a geo location. As a result, it may appear more than once on the map, depending on the projection and the zoom level.

Definition at line 32 of file BillboardGraphicsItem.h.

Constructor & Destructor Documentation

Marble::BillboardGraphicsItem::BillboardGraphicsItem ( )

Definition at line 88 of file BillboardGraphicsItem.cpp.

Member Function Documentation

Qt::Alignment Marble::BillboardGraphicsItem::alignment ( ) const

Definition at line 128 of file BillboardGraphicsItem.cpp.

QList< QRectF > Marble::BillboardGraphicsItem::boundingRects ( ) const

Returns the absolute screen bounding boxes of the item.

Definition at line 108 of file BillboardGraphicsItem.cpp.

QRectF Marble::BillboardGraphicsItem::containsRect ( const QPointF &  point) const

Returns the rect of one representation of the object that is at the given position.

Definition at line 118 of file BillboardGraphicsItem.cpp.

GeoDataCoordinates Marble::BillboardGraphicsItem::coordinate ( ) const

Definition at line 93 of file BillboardGraphicsItem.cpp.

QList< QPointF > Marble::BillboardGraphicsItem::positions ( ) const

Returns the absolute screen positions of the item.

All elements indicate the position of the topleft corner in screen coordinates and are based on the viewport of the last paintEvent(). Note that the result list may contain an unbound number of elements, including zero, depending on the item's visibility, the projection and zoom level.

Definition at line 103 of file BillboardGraphicsItem.cpp.

void Marble::BillboardGraphicsItem::setAlignment ( Qt::Alignment  alignment)

Definition at line 133 of file BillboardGraphicsItem.cpp.

void Marble::BillboardGraphicsItem::setCoordinate ( const GeoDataCoordinates &  coordinates)

Definition at line 98 of file BillboardGraphicsItem.cpp.


The documentation for this class was generated from the following files:
  • BillboardGraphicsItem.h
  • BillboardGraphicsItem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 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