EclipseHandler
#include <eclipsehandler.h>
Public Types | |
typedef QVector< EclipseEvent_s > | EclipseVector |
Signals | |
void | signalComputationFinished () |
void | signalEventFound (EclipseEvent_s event) |
void | signalProgress (int) |
Signals inherited from ApproachSolver | |
void | solverMadeProgress (int progress) |
Protected Member Functions | |
virtual double | findInitialStep (long double startJD, long double stopJD) override |
Protected Member Functions inherited from ApproachSolver | |
virtual dms | findDistance ()=0 |
bool | findPrecise (QPair< long double, dms > *out, long double jd, double step, int prevSign) |
dms | findSkyPointDistance (SkyPoint *obj1, SkyPoint *obj2) |
virtual double | getMaxSeparation () |
virtual void | updatePositions (long double jd)=0 |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
The EclipseHandler class.
This is a base class for providing a common interface for eclipse events which can be quite different in nature. It is meant to be subclassed. (Check LunarEclipseHandler as an example)
- Todo
- remove uglieness from KSConjunct (export m_object... functionality to separate class!, that findinitialstepsize isn't nice either)
- Note
- I've integrated the
findDetails
stuff in the eclipse handler because it already has thebeef
it takes (instances and methods). OOP is not always the way.
Definition at line 118 of file eclipsehandler.h.
Member Typedef Documentation
◆ EclipseVector
typedef QVector<EclipseEvent_s> EclipseHandler::EclipseVector |
Definition at line 122 of file eclipsehandler.h.
Constructor & Destructor Documentation
◆ EclipseHandler()
Definition at line 20 of file eclipsehandler.cpp.
◆ ~EclipseHandler()
|
overridevirtual |
Definition at line 24 of file eclipsehandler.cpp.
Member Function Documentation
◆ computeEclipses()
|
pure virtual |
compute
Implements the details for finding all the eclipses in a given time-frame. Should call findEclipse intelligently. e.g. only if the moon is full for lunar eclipses et-cetera
- Returns
- A vector of shared pointers to eclipse events.
Implemented in LunarEclipseHandler.
◆ findInitialStep()
|
inlineoverrideprotectedvirtual |
findStep
- Returns
- the step size used by findClosestApproach (in Julian Days)
Make this as big as possible. The bigger it is, the more likely is a skip over...
Implements ApproachSolver.
Reimplemented in LunarEclipseHandler.
Definition at line 168 of file eclipsehandler.h.
◆ getEvents()
|
inline |
getEvents
May be used if the return value of computeEclipses is being ignored.
- Note
- The underlying vector changes after every call to computeEclipses.
- Returns
- A vector of shared pointers to eclipse events.
Definition at line 144 of file eclipsehandler.h.
◆ signalComputationFinished
|
signal |
signalComputationFinished
signals the end of the computation
◆ signalEventFound
|
signal |
signalEventFound
A signal to be dispatched as soon as a new Event is found.
- Note
- Has to emitted by a subclass!
- Parameters
-
event
◆ signalProgress
|
signal |
signalProgress
gives the progress of the computation in percent
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.