kstars
AltVsTime Class Reference
the Altitude vs. More...
#include <altvstime.h>

Public Slots | |
void | slotAddSource (void) |
void | slotAdvanceFocus (void) |
void | slotBrowseObject (void) |
void | slotChooseCity (void) |
void | slotClear (void) |
void | slotClearBoxes (void) |
void | slotHighlight (void) |
void | slotUpdateDateLoc (void) |
Public Member Functions | |
AltVsTime (QWidget *parent=0) | |
void | computeSunRiseSetTimes () |
int | currentPlotListItem () const |
double | findAltitude (SkyPoint *p, double hour) |
KStarsDateTime | getDate (void) |
double | getEpoch (QString eName) |
void | processObject (SkyObject *o, bool forceAdd=false) |
void | setLSTLimits () |
void | showCurrentDate (void) |
QPtrList< SkyPoint > * | skyPointList () |
~AltVsTime () |
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.
- Version:
- 1.0
Definition at line 93 of file altvstime.h.
Constructor & Destructor Documentation
AltVsTime::AltVsTime | ( | QWidget * | parent = 0 |
) |
AltVsTime::~AltVsTime | ( | ) |
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 336 of file altvstime.cpp.
int AltVsTime::currentPlotListItem | ( | ) | const |
- Returns:
- the currently highlighted item in the list of displayed objects
Definition at line 457 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 268 of file altvstime.cpp.
KStarsDateTime AltVsTime::getDate | ( | void | ) |
- Returns:
- a KStarsDateTime object constructed from the current setting in the Date widget.
Definition at line 476 of file altvstime.cpp.
double AltVsTime::getEpoch | ( | 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 484 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 207 of file altvstime.cpp.
void AltVsTime::setLSTLimits | ( | void | ) |
Determine the limits for the sideral time axis, using the sidereal time at midnight for the current date and location settings.
Definition at line 461 of file altvstime.cpp.
void AltVsTime::showCurrentDate | ( | void | ) |
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 469 of file altvstime.cpp.
- Returns:
- a pointer to the list of SkyPoints representing the objects being displayed.
Definition at line 165 of file altvstime.h.
void AltVsTime::slotAddSource | ( | void | ) | [slot] |
Add an object to the list of displayed objects, according to the data entered in the edit boxes.
Definition at line 119 of file altvstime.cpp.
void AltVsTime::slotAdvanceFocus | ( | void | ) | [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 309 of file altvstime.cpp.
void AltVsTime::slotBrowseObject | ( | void | ) | [slot] |
Launch the Find Object window to select a new object for the list of displayed objects.
Definition at line 197 of file altvstime.cpp.
void AltVsTime::slotChooseCity | ( | void | ) | [slot] |
void AltVsTime::slotClear | ( | void | ) | [slot] |
void AltVsTime::slotClearBoxes | ( | void | ) | [slot] |
void AltVsTime::slotHighlight | ( | void | ) | [slot] |
Update the plot to highlight the altitude curve of the objects which is highlighted in the listbox.
Definition at line 279 of file altvstime.cpp.
void AltVsTime::slotUpdateDateLoc | ( | void | ) | [slot] |
Update the plot to reflec new Date and Location settings.
Definition at line 374 of file altvstime.cpp.
The documentation for this class was generated from the following files: