• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kstars

AltVsTime Class Reference

#include <altvstime.h>

Inheritance diagram for AltVsTime:

Inheritance graph
[legend]

List of all members.


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
Author:
Jason Harris

Definition at line 50 of file altvstime.h.


Public Slots

void slotUpdateDateLoc (void)
void slotClear (void)
void slotClearBoxes (void)
void slotAddSource (void)
void slotBrowseObject (void)
void slotChooseCity (void)
void slotAdvanceFocus (void)
void slotHighlight (int)

Public Member Functions

 AltVsTime (QWidget *parent=0)
 ~AltVsTime ()
void setLSTLimits ()
void showCurrentDate (void)
KStarsDateTime getDate (void)
void computeSunRiseSetTimes ()
double getEpoch (const QString &eName)
void processObject (SkyObject *o, bool forceAdd=false)
double findAltitude (SkyPoint *p, double hour)
int currentPlotListItem () const
QList< SkyObject * > & skyPointList ()

Constructor & Destructor Documentation

AltVsTime::AltVsTime ( QWidget *  parent = 0  ) 

Constructor.

Definition at line 55 of file altvstime.cpp.

AltVsTime::~AltVsTime (  ) 

Destructor.

Definition at line 125 of file altvstime.cpp.


Member Function Documentation

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 462 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 473 of file altvstime.cpp.

KStarsDateTime AltVsTime::getDate ( void   ) 

Returns:
a KStarsDateTime object constructed from the current setting in the Date widget.

Definition at line 480 of file altvstime.cpp.

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 348 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 488 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 219 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 282 of file altvstime.cpp.

int AltVsTime::currentPlotListItem (  )  const

Returns:
the currently highlighted item in the list of displayed objects

Definition at line 458 of file altvstime.cpp.

QList<SkyObject*>& AltVsTime::skyPointList (  )  [inline]

Returns:
a pointer to the list of SkyObjects representing the objects being displayed.

Definition at line 122 of file altvstime.h.

void AltVsTime::slotUpdateDateLoc ( void   )  [slot]

Update the plot to reflec new Date and Location settings.

Definition at line 386 of file altvstime.cpp.

void AltVsTime::slotClear ( void   )  [slot]

Clear the list of displayed objects.

Definition at line 327 of file altvstime.cpp.

void AltVsTime::slotClearBoxes ( void   )  [slot]

Clear the edit boxes for specifying a new object.

Definition at line 341 of file altvstime.cpp.

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 130 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 209 of file altvstime.cpp.

void AltVsTime::slotChooseCity ( void   )  [slot]

Launch the Location dialog to choose a new location.

Definition at line 446 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 319 of file altvstime.cpp.

void AltVsTime::slotHighlight ( int  row  )  [slot]

Update the plot to highlight the altitude curve of the objects which is highlighted in the listbox.

Definition at line 293 of file altvstime.cpp.


The documentation for this class was generated from the following files:
  • altvstime.h
  • altvstime.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal