Kstars

ksconjunct.h
1/*
2 SPDX-FileCopyrightText: 2008 Akarsh Simha <kstar@bas.org.in>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "approachsolver.h"
9
10class GeoLocation;
11class KSPlanetBase;
12class SkyObject;
13
14/**
15 * @class KSConjunct
16 * @short Implements algorithms to find close conjunctions of planets in a given time range.
17 * A class that implements a method to compute close conjunctions between any two solar system
18 * objects excluding planetary moons. Given two such objects, this class has implementations of
19 * algorithms required to find the time of closest approach in a given range of time.
20 *
21 * @author Akarsh Simha
22 * @version 2.0
23 */
25{
27public:
28 /** Constructor. Instantiates a KSNumbers for internal computations. */
29 KSConjunct();
30
31 void setObject1(SkyObject_s &obj) { m_object1 = obj; }
32 void setObject2(KSPlanetBase_s &obj) { m_object2 = obj; }
33 void setOpposition(bool opposition) { m_opposition = opposition; }
34
35signals:
36 void madeProgress(int);
37
38protected:
39 double findInitialStep(long double startJD, long double stopJD) override;
40 void updatePositions(long double jd) override;
41
42private:
43 dms findDistance() override;
44
45
46 SkyObject_s m_object1;
47 KSPlanetBase_s m_object2;
48 bool m_opposition { false };
49};
50
Implements algorithms to find close approaches of two objects on the sky.
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
Implements algorithms to find close conjunctions of planets in a given time range.
Definition ksconjunct.h:25
KSConjunct()
Constructor.
double findInitialStep(long double startJD, long double stopJD) override
findStep
void updatePositions(long double jd) override
updatePositions
A subclass of TrailObject that provides additional information needed for most solar system objects.
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
An angle, stored as degrees, but expressible in many ways.
Definition dms.h:38
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.