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{
14
15class GeoDataOrientationPrivate;
16
17/**
18 */
19class GEODATA_EXPORT GeoDataOrientation : public GeoDataObject
20{
21public:
22 GeoDataOrientation();
23
24 GeoDataOrientation(const GeoDataOrientation &other);
25
26 GeoDataOrientation &operator=(const GeoDataOrientation &other);
27
28 bool operator==(const GeoDataOrientation &other) const;
29 bool operator!=(const GeoDataOrientation &other) const;
30
31 ~GeoDataOrientation() override;
32
33 /** Provides type information for downcasting a GeoNode */
34 const char *nodeType() const override;
35
36 /** Returns by how much degrees the camera has been rotated about the normal.
37 * Default value= 0. Range: 0-360 degrees
38 */
39 double heading() const;
40 void setHeading(double heading);
41
42 /** Returns the rotation of the camera in degrees, around the X axis.
43 * Value ranges from 0 (indicating that the view is aimed straight down
44 * toward the earth), through 90 (indicating that the view is aimed toward
45 * the horizon) to values greater than 90 (indicating that the view is pointed
46 * up into the sky. Values are clamped at +180 degrees.
47 */
48 double tilt() const;
49 void setTilt(double tilt);
50
51 /** Returns the rotation of the camera in degrees around the Z axis.
52 * Range: −180 to +180 degrees.
53 */
54 double roll() const;
55 void setRoll(double roll);
56
57protected:
58 GeoDataOrientationPrivate *const d;
59};
60
61}
62
63#endif // GEODATAORIENTATION_H
QAction * roll(const QObject *recvr, const char *slot, QObject *parent)
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.