/usr/include/marble/BillboardGraphicsItem.h is in libmarble-dev 4:4.14.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
//
#ifndef MARBLE_BILLBOARDGRAPHICSITEM_H
#define MARBLE_BILLBOARDGRAPHICSITEM_H
#include "MarbleGraphicsItem.h"
#include "marble_export.h"
#include <QList>
#include <QPointF>
#include "GeoDataCoordinates.h"
namespace Marble
{
/**
* @brief 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.
*/
class MARBLE_EXPORT BillboardGraphicsItem : public MarbleGraphicsItem
{
public:
BillboardGraphicsItem();
GeoDataCoordinates coordinate() const;
void setCoordinate( const GeoDataCoordinates &coordinates );
Qt::Alignment alignment() const;
void setAlignment( Qt::Alignment alignment );
/**
* @brief 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.
*/
QList<QPointF> positions() const;
/**
* @brief Returns the absolute screen bounding boxes of the item.
*/
QList<QRectF> boundingRects() const;
/**
* Returns the rect of one representation of the object that is at the given position.
*/
QRectF containsRect( const QPointF &point ) const;
private:
class Private;
Private *p();
const Private *p() const;
};
} // Marble namespace
#endif
|