9#include <stellarsolver.h>
14#include <QFutureWatcher>
17#include <QSharedPointer>
28class SolverUtils :
public QObject
33 SolverUtils(
const SSolver::Parameters ¶meters,
double timeoutSeconds = 15,
34 SSolver::ProcessType type = SSolver::SOLVE);
38 void runSolver(
const QString &filename);
39 SolverUtils &useScale(
bool useIt,
double scaleLowArcsecPerPixel,
double scaleHighArcsecPerPixel);
40 SolverUtils &usePosition(
bool useIt,
double raDegrees,
double decDegrees);
41 bool isRunning()
const;
44 void setHealpix(
int indexToUse = -1,
int healpixToUse = -1);
45 void getSolutionHealpix(
int *indexUsed,
int *healpixUsed)
const;
47 const FITSImage::Background &getBackground()
const
50 if (!m_StellarSolver)
return *
new FITSImage::Background();
51 return m_StellarSolver->getBackground();
57 return m_StellarSolver->getStarList();
59 int getNumStarsFound()
const
61 if (!m_StellarSolver)
return 0;
62 return m_StellarSolver->getNumStarsFound();
67 static void patchMultiAlgorithm(StellarSolver *solver);
70 void done(
bool timedOut,
bool success,
const FITSImage::Solution &solution,
double elapsedSeconds);
71 void newLog(
const QString &logText);
79 std::unique_ptr<StellarSolver> m_StellarSolver;
84 SSolver::Parameters m_Parameters;
86 const uint32_t m_TimeoutMilliseconds {0};
90 double m_ScaleLowArcsecPerPixel {0}, m_ScaleHighArcsecPerPixel {0};
94 int m_IndexToUse { -1 };
95 int m_HealpixToUse { -1 };
97 bool m_UseScale {
false };
98 bool m_UsePosition {
false };
99 double m_raDegrees { 0.0 };
100 double m_decDegrees { 0.0 };
102 SSolver::ProcessType m_Type = SSolver::SOLVE;
103 std::mutex deleteSolverMutex;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.