1/*! \mainpage KStars API 2\tableofcontents 3 4\section Introduction Introduction 5 6KStars is free, open source, cross-platform Astronomy Software. 7 8It provides an accurate graphical simulation of the night sky, from any location on Earth, at any date and time. The display includes up to 100 million stars, 13,000 deep-sky objects,all 8 planets, the Sun and Moon, and thousands of comets, asteroids, supernovae, and satellites. 9 10For students and teachers, it supports adjustable simulation speeds in order to view phenomena that happen over long timescales, the KStars Astrocalculator to predict conjunctions, and many common astronomical calculations. For the amateur astronomer, it provides an observation planner, a sky calendar tool, and an FOV editor to calculate field of view of equipment and display them. Find out interesting objects in the "What's up Tonight" tool, plot altitude vs. time graphs for any object, print high-quality sky charts, and gain access to lots of information and resources to help you explore the universe! 11 12Included with KStars is Ekos astrophotography suite, a complete astrophotography solution that can control all INDI devices including numerous telescopes, CCDs, DSLRs, focusers, filters, and a lot more. Ekos supports highly accurate tracking using online and offline astrometry solver, autofocus and autoguiding capabilities, and capture of single or multiple images using the powerful built in sequence manager. 13 14\section APIStructure Structure 15 16KStars is a simulation of the night sky. The whole program is essentially a (very complicated) model/view implementation. The "model" is all of the data regarding objects in the night sky, and how 17they change with time, and the "view" is the graphical display of this model on your screen. 18 19The "model" is encapsulated in the KStarsData class, and the "view" is encapsulated in the KStars class. Here is a list of the major components of KStars: 20 21\subsection Data Data 22 - KStarsData: Master class for the backend "model". 23 - SkyMapComposite: Top of hierarchy for plottable objects. 24 - SkyComponent are lists of objects of the same type that are drawn in the sky map. Individual objects are represented as an instance of SkyPoint, or one of its children. 25 Only imaginary positions in the sky use SkyPoint directly. Most real objects use the derived class SkyObject, which adds names and other data. Stars, planets, comets, asteroids, deep-sky objects, constellations, 26 guide lines, the Milky Way, etc. each have their own Component 27 - \subpage Stars "Stars: How stars are handled in KStars?" 28 - SkyObject itself has many derivatives for different kinds of objects: 29 - StarObject 30 - DeepSkyObject 31 - KSPlanetBase 32 - KSSun 33 - KSPlanet 34 - KSMoon 35 - KSAsteroid 36 - KSPluto 37 - KSComet 38 - PlanetMoons 39 - JupiterMoons 40 - Satellite 41 - Supernova 42 - TrailObject 43 44\subsection View View 45 - KStars: main window; master class for the frontend "view". 46 - SkyMap: sky widget 47 - KSPopupMenu: right-click menu 48 - InfoBoxes: on-screen information on time, position, and focused object 49 - SkyLabeler 50 - Flags: FlagComponent represents a flag on the sky map and is managed by FlagManager. 51 - FOVs: FOV represents a Field-of-View symbol on the skymap. The \ref FOVDialog "FOV Dialog" enables editing and \ref NewFOV "adding a new FOV". 52 - \ref Projector "Projections": Multiple projection systems are supported to map the celestial sphere unto a 2D surface. 53 54\subsection Time Time 55 - \subpage TimeKeeping "Time Keeping": How is time stored and simulated in KStars? 56 - SimClock (controls passage of time in the simulation) 57 - KStarsDateTime 58 59\subsection Math Math 60 - KSNumbers 61 - HTMesh: Primary backbone to index stars and deep sky objects using \subpage HTMIndexing "multi-level Hierarchical Triangular Mesh" 62 - KSAlmanac 63 64\subsection Tools Tools 65 - \ref AstroCalc "Calculator": Calculator tool covering many astronomical calculations. 66 - FITSViewer: Open and preview FITS files. 67 - \ref INDI "Devices & INDI": Establish INDI drivers locally or connect to remote INDI servers. 68 - Ekos 69 - \ref SkyCalendar "Sky Calendar" 70 - \ref DetailDialog "Detail Dialog" 71 - \ref WUTDialog "What's up tonight" 72 - What's interesting 73 - \ref PlanetViewer "Solar System": Display an overhead view of the solar system 74 - \ref JMoonTool "Jupiter Moons" 75 - \ref StarHopper "Star Hopper" 76 - \ref PrintingWizard "Printing" 77 78\subsection Observation Observation 79 - OAL: Open Astronomy Log 80 - \ref ObservingList "Observation Planner" 81 82\subsection Auxiliary Auxiliary 83 Auxiliary are helper classes/dialogs/functions used throughout KStars. 84 - \ref ImageViewer "Image Viewer" 85 - dms : Encapsulates an angle value. 86 - GeoLocation: Encapsulates a location on Earth. 87 - TimeZoneRule: Encapsulates a daylight savings time rule. 88 - \ref ColorScheme "Color Schemes" 89 - ThumbnailPicker / ThumbnailEditor 90 - \ref FocusDialog "Focus Dialog" 91 - \ref KSWizard "Wizard" 92 - Settings: OpsCatalog, OpsAdvanced, OpsColors, OpsGuides, OpsSatellites, OpsSolarSystem, OpsSupernovae, OpsINDI, OpsEkos 93 - \ref KSNotification "Notifications" 94 95\subsection Scripting Scripting 96 - \ref DBusInterface KStars DBus Interface 97 - \ref INDIDBusInterface INDI DBus Interface: Provides low level access to all INDI devices and properties. 98 - \ref EkosDBusInterface Ekos DBus Interface: Provides high level access to Ekos \ref Manager and corresponding modules. Ekos Modules with DBus Interface: 99 <ul> 100 <li>\ref CaptureDBusInterface "Capture Module DBus Interface"</li> 101 <li>\ref FocusDBusInterface "Focus Module DBus Interface"</li> 102 <li>\ref MountDBusInterface "Mount Module DBus Interface"</li> 103 <li>\ref GuideDBusInterface "Guide Module DBus Interface"</li> 104 <li>\ref AlignDBusInterface "Align Module DBus Interface"</li> 105 <li>\ref SchedulerDBusInterface "Scheduler Module DBus Interface"</li> 106 <li>\ref DomeDBusInterface "Dome DBus Interface"</li> 107 <li>\ref DustCapDBusInterface "Dust Cap DBus Interface"</li> 108 </ul> 109 - \ref ScriptBuilder Script builder 110 111\section HowItWorks How does it work? 112 113The following explanation is a \e very high level and general overview on the basic workflow in KStars. When you run KStars, the following general steps are executed (not necessarily in this order): 114-# An Instance of KStars is created. KStars will start with the SimClock running and set to the system date and time unless otherwise specified in command line arguments. 115-# An Instance of KStarsData is created. Data for stars, catalogs, deep sky objects, comets...etc are read and loaded into memory. 116 Some data are not read unless necessary, such as stars that only appear at very high zoom levels. 117-# Date and Time are initialized. Simulated clocks normally ticks forward at a particular interval, the default being once per second like a real clock. 118-# KStars splash screen is created. 119-# An Instance of SkyMap is created. The SkyMap is the primary central widget in KStars. Toolbars, menus, actions, and status bar are initialized. 120-# SimClock emits the timeAdvanced() signal, which is connected to KStarsData::updateTime(), which takes care of updating object coordinates and drawing the skymap. 121 Effects for precession, nutation, aberration, and refraction are taken into account. 122-# SkyMap can have multiple draw backends (QPainter or OpenGL). It calls the selected backend to draw the overlays and objects unto the sky map. 123-# The backend implementing SkyMapDrawAbstract receives a PaintEvent(..) from SkyMap which begins by drawing the background first. Afterwards, it calls KStarsData SkyMapComposite instance which in turn calls 124 all child composites and components to draw themselves. Each component draws itself on the skymap. The order of the drawing routine ensures layers such as equatorial/horizontal 125 grid lines are drawn last. 126-# The sky map responds to user input from keyboard and mouse to perform various actions such as panning, zooming, invoking the popup menu for a particular object...etc. 127-# SimClock emits timeAdvanced() signal and the cycle repeats. 128-# The user can invoke tools, change settings, download new data, run scripts..etc while the cycle above is taking place in the background. 129-# Upon exit destructors are called to properly terminate all objects, free memory, and save options if necessary. 130 131\author Jasem Mutlaq 132*/ 133