Marble::BillboardGraphicsItem

Search for usage in LXR

Marble::BillboardGraphicsItem Class Reference

#include <BillboardGraphicsItem.h>

Inheritance diagram for Marble::BillboardGraphicsItem:

Public Member Functions

Qt::Alignment alignment () const
 
QVector< QRectFboundingRects () const
 
QRectF containsRect (const QPointF &point) const
 
GeoDataCoordinates coordinate () const
 
QVector< QPointFpositions () const
 
void setAlignment (Qt::Alignment alignment)
 
void setCoordinate (const GeoDataCoordinates &coordinates)
 

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 28 of file BillboardGraphicsItem.h.

Constructor & Destructor Documentation

◆ BillboardGraphicsItem()

Marble::BillboardGraphicsItem::BillboardGraphicsItem ( )

Definition at line 86 of file BillboardGraphicsItem.cpp.

Member Function Documentation

◆ alignment()

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

Definition at line 133 of file BillboardGraphicsItem.cpp.

◆ boundingRects()

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

Returns the absolute screen bounding boxes of the item.

Since
0.26.0

Definition at line 109 of file BillboardGraphicsItem.cpp.

◆ containsRect()

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 123 of file BillboardGraphicsItem.cpp.

◆ coordinate()

GeoDataCoordinates Marble::BillboardGraphicsItem::coordinate ( ) const

Definition at line 91 of file BillboardGraphicsItem.cpp.

◆ positions()

QVector< 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.

Since
0.26.0

Definition at line 103 of file BillboardGraphicsItem.cpp.

◆ setAlignment()

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

Definition at line 139 of file BillboardGraphicsItem.cpp.

◆ setCoordinate()

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

Definition at line 97 of file BillboardGraphicsItem.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.