Kstars
14 #include <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; }
68 inline float sizeX()
const {
return m_sizeX; }
69 inline float sizeY()
const {
return m_sizeY; }
70 void setSize(
float s) { m_sizeX = m_sizeY = s; }
71 void setSize(
float sx,
float sy)
77 void setOffset(
float fx,
float fy)
82 inline float offsetX()
const {
return m_offsetX; }
83 inline float offsetY()
const {
return m_offsetY; }
86 void setPA(
float rt) { m_PA = rt; }
87 inline float PA()
const {
return m_PA; }
89 inline QString color()
const {
return m_color; }
90 void setColor(
const QString &c) { m_color = c; }
108 void setCenter(
const SkyPoint ¢er);
110 float northPA()
const;
111 void setNorthPA(
float northPA);
113 void setImage(
const QImage &image);
115 void setImageDisplay(
bool value);
117 bool lockCelestialPole()
const;
118 void setLockCelestialPole(
bool lockCelestialPole);
123 float m_sizeX { 0 }, m_sizeY { 0 };
124 float m_offsetX { 0 }, m_offsetY { 0 };
126 float m_northPA { 0 };
129 bool m_imageDisplay {
false };
130 bool m_lockCelestialPole {
false };
132 static int getID() {
return m_ID++; }
150 static void addFOV(
FOV *newFOV)
155 static void removeFOV(
FOV *fov)
176 Q_DECLARE_METATYPE(FOV::Shape)
void append(const T &value)
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
void draw(QPainter &p, float zoomFactor)
draw the FOV symbol on a QPainter
static bool save()
Write list of FOVs to "fov.dat".
FOV()
Default constructor.
bool removeOne(const T &value)
static void releaseCache()
Release the FOV cache.
QDebug operator<<(QDebug d, const QCPVector2D &vec)
static const QList< FOV * > & readFOVs()
Read list of FOVs from "fov.dat".
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 04:05:51 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.