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

kstars

Public Member Functions | Protected Member Functions | List of all members
AVTPlotWidget Class Reference

#include <avtplotwidget.h>

Inheritance diagram for AVTPlotWidget:
Inheritance graph
[legend]

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

Definition at line 39 of file avtplotwidget.h.

Constructor & Destructor Documentation

AVTPlotWidget::AVTPlotWidget ( QWidget *  parent = 0)
explicit

Constructor.

Definition at line 31 of file avtplotwidget.cpp.

Member Function Documentation

void AVTPlotWidget::mouseDoubleClickEvent ( QMouseEvent *  e)
protected

Reset the MousePoint to a null value, to erase the crosshairs.

Definition at line 47 of file avtplotwidget.cpp.

void AVTPlotWidget::mouseMoveEvent ( QMouseEvent *  e)
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.

void AVTPlotWidget::mousePressEvent ( QMouseEvent *  e)
protected

Simply calls mouseMoveEvent().

Definition at line 43 of file avtplotwidget.cpp.

void AVTPlotWidget::paintEvent ( QPaintEvent *  e)
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.

void AVTPlotWidget::setSunRiseSetTimes ( double  sr,
double  ss 
)
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
srthe fractional position of Sunrise
ssthe fractional position of Sunset

Definition at line 55 of file avtplotwidget.h.


The documentation for this class was generated from the following files:
  • avtplotwidget.h
  • avtplotwidget.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