kstars
#include <avtplotwidget.h>

Public Member Functions | |
AVTPlotWidget (QWidget *parent=0) | |
void | setDawnDuskTimes (double da, double du) |
void | setMinMaxSunAlt (double min, double max) |
void | setSunRiseSetTimes (double sr, double ss) |
Protected Member Functions | |
void | mouseDoubleClickEvent (QMouseEvent *e) |
void | mouseMoveEvent (QMouseEvent *e) |
void | mousePressEvent (QMouseEvent *e) |
void | paintEvent (QPaintEvent *e) |
Detailed Description
An extension of the KPlotWidget for the AltVsTime tool.
The biggest difference is that in addition to the plot objects, it draws the "ground" below Alt=0 and draws the sky light blue for day times, and black for night times. The transition between day and night is drawn with a gradient, and the position follows the actual sunrise/sunset times of the given date/location. Also, this plot widget provides two time axes (local time along the bottom, and local sideral time along the top). Finally, it provides user interaction: on mouse click, it draws crosshairs at the mouse position with labels for the time and altitude.
- Version
- 1.0
Definition at line 39 of file avtplotwidget.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 31 of file avtplotwidget.cpp.
Member Function Documentation
|
protected |
Reset the MousePoint to a null value, to erase the crosshairs.
Definition at line 47 of file avtplotwidget.cpp.
|
protected |
Handle mouse move events.
If the mouse button is down, draw crosshair lines centered at the cursor position. This allows the user to pinpoint specific position sin the plot.
Definition at line 52 of file avtplotwidget.cpp.
|
protected |
Simply calls mouseMoveEvent().
Definition at line 43 of file avtplotwidget.cpp.
|
protected |
Redraw the plot.
Definition at line 71 of file avtplotwidget.cpp.
void AVTPlotWidget::setDawnDuskTimes | ( | double | da, |
double | du | ||
) |
Definition at line 194 of file avtplotwidget.cpp.
void AVTPlotWidget::setMinMaxSunAlt | ( | double | min, |
double | max | ||
) |
Definition at line 200 of file avtplotwidget.cpp.
|
inline |
Set the fractional positions of the Sunrise and Sunset positions, in units where last midnight was 0.0, and next midnight is 1.0.
i.e., if Sunrise is at 06:00, then we set it as 0.25 in this function. Likewise, if Sunset is at 18:00, then we set it as 0.75 in this function.
- Parameters
-
sr the fractional position of Sunrise ss the fractional position of Sunset
Definition at line 55 of file avtplotwidget.h.
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.