14#include <QtDBus/QDBusArgument>
30 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.kstars.fov")
40 Q_PROPERTY(
bool cpLock MEMBER m_lockCelestialPole)
55 FOV(
const QString &name,
float a,
float b = -1,
float xoffset = 0,
float yoffset = 0,
float rot = 0,
56 Shape shape = SQUARE,
const QString &color =
"#FFFFFF",
bool useLockedCP =
false);
59 void sync(
const FOV &other);
61 inline Q_SCRIPTABLE
QString name()
const {
return m_name; }
62 void setName(
const QString &n) { m_name = n; }
64 inline FOV::Shape shape()
const {
return m_shape; }
65 void setShape(FOV::Shape s) { m_shape = s; }
69 inline float sizeX()
const {
return m_sizeX; }
70 inline float sizeY()
const {
return m_sizeY; }
71 void setSize(
float s) { m_sizeX = m_sizeY = s; }
72 void setSize(
float sx,
float sy)
78 void setOffset(
float fx,
float fy)
83 inline float offsetX()
const {
return m_offsetX; }
84 inline float offsetY()
const {
return m_offsetY; }
87 void setPA(
float rt) { m_PA = rt; }
88 inline float PA()
const {
return m_PA; }
90 inline QString color()
const {
return m_color; }
91 void setColor(
const QString &c) { m_color = c; }
109 void setCenter(
const SkyPoint ¢er);
111 float northPA()
const;
112 void setNorthPA(
float northPA);
114 void setImage(
const QImage &image);
116 void setImageDisplay(
bool value);
118 bool lockCelestialPole()
const;
119 void setLockCelestialPole(
bool lockCelestialPole);
124 float m_sizeX { 0 }, m_sizeY { 0 };
125 float m_offsetX { 0 }, m_offsetY { 0 };
127 float m_northPA { 0 };
130 bool m_imageDisplay {
false };
131 bool m_lockCelestialPole {
false };
133 static int getID() {
return m_ID++; }
151 static void addFOV(
FOV *newFOV)
156 static void removeFOV(
FOV *fov)
177Q_DECLARE_METATYPE(FOV::Shape)
A simple class handling FOVs.
static const QList< FOV * > & readFOVs()
Read list of FOVs from "fov.dat".
static bool save()
Write list of FOVs to "fov.dat".
static void releaseCache()
Release the FOV cache.
A simple class encapsulating a Field-of-View symbol.
FOV()
Default constructor.
void draw(QPainter &p, float zoomFactor)
draw the FOV symbol on a QPainter
float sizeX() const
Sizes are in arcminutes.
The sky coordinates of a point in the sky.
void append(QList< T > &&value)
bool removeOne(const AT &t)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:39 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.