Kstars
22 #include <QSharedPointer>
23 #include <QJsonDocument>
25 #include <QJsonObject>
26 #include <unordered_map>
28 #include "config-kstars.h"
30 #include "polyfills/qstring_hash.h"
33 #pragma GCC diagnostic push
34 #pragma GCC diagnostic ignored "-Wignored-attributes"
37 #pragma GCC diagnostic ignored "-Wint-in-bool-context"
41 #pragma GCC diagnostic pop
57 bool isHardwareLimited();
77 inline T clamp(T x, T min, T max)
93 inline T reduceAngle(T x, T min, T max)
96 return x - delta * floor((x - min) / delta);
102 inline Eigen::Vector3d fromSperical(
const dms &longitude,
const dms &latitude)
107 longitude.
SinCos(sinL, cosL);
108 latitude.
SinCos(sinB, cosB);
109 return Eigen::Vector3d(cosB * cosL, cosB * sinL, sinB);
113 inline QPointF vecToPoint(
const Eigen::Vector2f &vec)
115 return QPointF(vec[0], vec[1]);
119 inline Eigen::Vector2f pointToVec(
const QPointF &p)
121 return Eigen::Vector2f(p.
x(), p.
y());
140 QString getDSSURL(
const dms &ra,
const dms &dec,
float width = 0,
float height = 0,
166 template <
typename T>
252 static void Write(
QTextStream &stream, QtMsgType type,
259 void copyResourcesFolderFromAppBundle(
QString folder);
260 bool setupMacKStarsIfNeeded();
261 bool configureAstrometry();
262 bool replaceIndexFileNotYetSet();
267 QStringList getAstrometryDefaultIndexFolderPaths();
268 QString getAstrometryConfFilePath();
270 bool addAstrometryDataDir(
const QString &dataDir);
271 bool removeAstrometryDataDir(
const QString &dataDir);
283 JPLParser(
const QString &path);
289 const std::unordered_map<QString, int> &fieldMap()
const
294 template <
typename Lambda>
295 void for_each(
const Lambda &fct)
297 for (
const auto &item : m_data)
299 fct([ &,
this](
const QString & key)
301 return item.toArray().at(m_field_map.at(key));
309 std::unordered_map<QString, int> m_field_map;
316 MPCParser(
const QString &path);
318 template <
typename Lambda>
319 void for_each(
const Lambda &fct)
321 for (
const auto &item : m_data)
323 fct([ &,
this](
const QString & key)
325 return item.toObject().value(key);
357 double getAvailableRAM();
359 void setGlobalSettings(
const QVariantMap &settings);
373 double rangePA(
double pa);
380 double range360(
double r);
387 double rotationToPositionAngle(
double value);
393 double positionAngleToRotation(
double value);
void append(const T &value)
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
void SinCos(double &s, double &c) const
Compute Sine and Cosine of the angle simultaneously.
Interface into Qt's logging system.
static void UseStderr()
Output logs to stderr.
static void UseStdout()
Output logs to stdout.
static void UseFile()
Store all logs into the specified file.
subclass of SkyObject specialized for stars.
static void SyncFilterRules()
SyncFilterRules Sync QtLogging filter rules from Options.
KStars utility functions.
static void Disable()
Disable logging.
An angle, stored as degrees, but expressible in many ways.
static void UseDefault()
Use the default logging mechanism.
Information about an object in the sky.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:02:41 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.