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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • tools
avtplotwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  avtplotwidget.h - description
3  -------------------
4  begin : Sat Nov 10 2007
5  copyright : (C) 2007 by Jason Harris
6  email : kstars@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef AVTPLOTWIDGET_H_
19 #define AVTPLOTWIDGET_H_
20 
21 #include <QPoint>
22 
23 #include <kplotwidget.h>
24 
39 class AVTPlotWidget : public KPlotWidget
40 {
41  Q_OBJECT
42 public:
45  explicit AVTPlotWidget( QWidget *parent=0 );
46 
55  void setSunRiseSetTimes( double sr, double ss ) { SunRise = sr; SunSet = ss; update(); }
56 
57  void setDawnDuskTimes( double da, double du );
58 
59  void setMinMaxSunAlt( double min, double max );
60 
61 protected:
66  void mouseMoveEvent( QMouseEvent *e );
67 
71  void mousePressEvent( QMouseEvent *e );
72 
76  void mouseDoubleClickEvent( QMouseEvent *e );
77 
80  void paintEvent( QPaintEvent *e );
81 
82 private:
83  double SunRise, SunSet, Dawn, Dusk, SunMinAlt, SunMaxAlt;
84  QPoint MousePoint;
85 };
86 
87 #endif
AVTPlotWidget::setMinMaxSunAlt
void setMinMaxSunAlt(double min, double max)
Definition: avtplotwidget.cpp:200
AVTPlotWidget::setSunRiseSetTimes
void setSunRiseSetTimes(double sr, double ss)
Set the fractional positions of the Sunrise and Sunset positions, in units where last midnight was 0...
Definition: avtplotwidget.h:55
QWidget
AVTPlotWidget::mousePressEvent
void mousePressEvent(QMouseEvent *e)
Simply calls mouseMoveEvent().
Definition: avtplotwidget.cpp:43
KPlotWidget
AVTPlotWidget::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *e)
Reset the MousePoint to a null value, to erase the crosshairs.
Definition: avtplotwidget.cpp:47
AVTPlotWidget
An extension of the KPlotWidget for the AltVsTime tool.
Definition: avtplotwidget.h:39
AVTPlotWidget::paintEvent
void paintEvent(QPaintEvent *e)
Redraw the plot.
Definition: avtplotwidget.cpp:71
AVTPlotWidget::setDawnDuskTimes
void setDawnDuskTimes(double da, double du)
Definition: avtplotwidget.cpp:194
AVTPlotWidget::AVTPlotWidget
AVTPlotWidget(QWidget *parent=0)
Constructor.
Definition: avtplotwidget.cpp:31
AVTPlotWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *e)
Handle mouse move events.
Definition: avtplotwidget.cpp:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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