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

kstars

Public Slots | Public Member Functions | List of all members
AltVsTime Class Reference

#include <altvstime.h>

Inheritance diagram for AltVsTime:
Inheritance graph
[legend]

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.

Author
Jason Harris

Definition at line 43 of file altvstime.h.

Constructor & Destructor Documentation

AltVsTime::AltVsTime ( QWidget *  parent = 0)
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
pthe skypoint whose altitude is to be found
hourthe 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
eNamethe 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
opointer to the SkyObject to be added
forceAddif 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.

void AltVsTime::slotAddSource ( )
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::slotAdvanceFocus ( )
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.

void AltVsTime::slotBrowseObject ( )
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.

void AltVsTime::slotChooseCity ( )
slot

Launch the Location dialog to choose a new location.

Definition at line 428 of file altvstime.cpp.

void AltVsTime::slotClear ( )
slot

Clear the list of displayed objects.

Definition at line 329 of file altvstime.cpp.

void AltVsTime::slotClearBoxes ( )
slot

Clear the edit boxes for specifying a new object.

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

void AltVsTime::slotPrint ( )
slot

Print plot widget.

Definition at line 523 of file altvstime.cpp.

void AltVsTime::slotUpdateDateLoc ( )
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:
  • altvstime.h
  • altvstime.cpp
This file is part of the KDE documentation.
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.

kstars

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal