kstars
#include <altvstime.h>

Public Slots | |
void | slotAddSource () |
void | slotAdvanceFocus () |
void | slotBrowseObject () |
void | slotChooseCity () |
void | slotClear () |
void | slotClearBoxes () |
void | slotHighlight (int) |
void | slotPrint () |
void | slotUpdateDateLoc () |
Public Member Functions | |
AltVsTime (QWidget *parent=0) | |
~AltVsTime () | |
void | computeSunRiseSetTimes () |
double | findAltitude (SkyPoint *p, double hour) |
KStarsDateTime | getDate () |
double | getEpoch (const QString &eName) |
void | processObject (SkyObject *o, bool forceAdd=false) |
void | setLSTLimits () |
void | showCurrentDate () |
Detailed Description
the Altitude vs.
Time Tool. Plot the altitude as a function of time for any list of objects, as seen from any location, on any date.
Definition at line 43 of file altvstime.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 54 of file altvstime.cpp.
AltVsTime::~AltVsTime | ( | ) |
Destructor.
Definition at line 125 of file altvstime.cpp.
Member Function Documentation
void AltVsTime::computeSunRiseSetTimes | ( | ) |
Determine the time of sunset and sunrise for the current date and location settings.
Convert the times to doubles, expressing the times as fractions of a full day. Calls AVTPlotWidget::setSunRiseSetTimes() to send the numbers to the plot widget.
Definition at line 351 of file altvstime.cpp.
double AltVsTime::findAltitude | ( | SkyPoint * | p, |
double | hour | ||
) |
Determine the altitude coordinate of a SkyPoint, given an hour of the day.
This is called for every 30-minute interval in the displayed Day, in order to construct the altitude curve for a given object.
- Parameters
-
p the skypoint whose altitude is to be found hour the time in the displayed day, expressed in hours
- Returns
- the Altitude, expresse in degrees
Definition at line 286 of file altvstime.cpp.
KStarsDateTime AltVsTime::getDate | ( | ) |
- Returns
- a KStarsDateTime object constructed from the current setting in the Date widget.
Definition at line 461 of file altvstime.cpp.
double AltVsTime::getEpoch | ( | const QString & | eName | ) |
Parse a string as an epoch number.
If the string can't be parsed, return 2000.0.
- Parameters
-
eName the epoch string to be parsed
- Returns
- the epoch number
Definition at line 468 of file altvstime.cpp.
void AltVsTime::processObject | ( | SkyObject * | o, |
bool | forceAdd = false |
||
) |
Add a SkyObject to the display.
Constructs a PLotObject representing the Alt-vs-time curve for the object.
- Parameters
-
o pointer to the SkyObject to be added forceAdd if true, then the object will be added, even if there is already a curve for the same coordinates.
Definition at line 217 of file altvstime.cpp.
void AltVsTime::setLSTLimits | ( | ) |
Determine the limits for the sideral time axis, using the sidereal time at midnight for the current date and location settings.
Definition at line 441 of file altvstime.cpp.
void AltVsTime::showCurrentDate | ( | ) |
Set the AltVsTime Date according to the current Date in the KStars main window.
Currently, this is only used in the ctor to initialize the Date.
Definition at line 453 of file altvstime.cpp.
|
slot |
Add an object to the list of displayed objects, according to the data entered in the edit boxes.
Definition at line 130 of file altvstime.cpp.
|
slot |
Move input keyboard focus to the next logical widget.
We need a separate slot for this because we are intercepting Enter key events, which close the window by default, to advance input focus instead (when the Enter events occur in certain Edit boxes).
Definition at line 321 of file altvstime.cpp.
|
slot |
Launch the Find Object window to select a new object for the list of displayed objects.
Definition at line 206 of file altvstime.cpp.
|
slot |
Launch the Location dialog to choose a new location.
Definition at line 428 of file altvstime.cpp.
|
slot |
Clear the list of displayed objects.
Definition at line 329 of file altvstime.cpp.
|
slot |
Clear the edit boxes for specifying a new object.
Definition at line 344 of file altvstime.cpp.
|
slot |
Update the plot to highlight the altitude curve of the objects which is highlighted in the listbox.
Definition at line 297 of file altvstime.cpp.
|
slot |
Print plot widget.
Definition at line 523 of file altvstime.cpp.
|
slot |
Update the plot to reflec new Date and Location settings.
Definition at line 363 of file altvstime.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.