Marble

GeoDataOrientation.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef GEODATAORIENTATION_H
7#define GEODATAORIENTATION_H
8
9#include "GeoDataObject.h"
10#include "MarbleGlobal.h"
11
12namespace Marble {
13
14class GeoDataOrientationPrivate;
15
16/**
17 */
18class GEODATA_EXPORT GeoDataOrientation: public GeoDataObject
19{
20public:
21 GeoDataOrientation();
22
23 GeoDataOrientation( const GeoDataOrientation &other );
24
25 GeoDataOrientation& operator=( const GeoDataOrientation &other );
26
27 bool operator==( const GeoDataOrientation &other ) const;
28 bool operator!=( const GeoDataOrientation &other ) const;
29
30 ~GeoDataOrientation() override;
31
32 /** Provides type information for downcasting a GeoNode */
33 const char* nodeType() const override;
34
35 /** Returns by how much degrees the camera has been rotated about the normal.
36 * Default value= 0. Range: 0-360 degrees
37 */
38 double heading() const;
39 void setHeading( double heading );
40
41 /** Returns the rotation of the camera in degrees, around the X axis.
42 * Value ranges from 0 (indicating that the view is aimed straight down
43 * toward the earth), through 90 (indicating that the view is aimed toward
44 * the horizon) to values greater than 90 (indicating that the view is pointed
45 * up into the sky. Values are clamped at +180 degrees.
46 */
47 double tilt() const;
48 void setTilt( double tilt );
49
50 /** Returns the rotation of the camera in degrees around the Z axis.
51 * Range: −180 to +180 degrees.
52 */
53 double roll() const;
54 void setRoll( double roll);
55
56protected:
57 GeoDataOrientationPrivate* const d;
58};
59
60}
61
62#endif // GEODATAORIENTATION_H
QAction * roll(const QObject *recvr, const char *slot, QObject *parent)
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.