• 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
  • skycomponents
supernovaecomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  supernovaecomponent.h - K Desktop Planetarium
3  -------------------
4  begin : 2011/18/06
5  copyright : (C) 2011 by Samikshan Bairagya
6  email : samikshan@gmail.com
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 SUPERNOVAE_COMPONENT_H
19 #define SUPERNOVAE_COMPONENT_H
20 
21 #include "listcomponent.h"
22 #include "skyobjects/supernova.h"
23 
24 #include "ksnumbers.h"
25 
26 #include <QProcess>
27 #include <QList>
28 
37 class Supernova;
38 
39 class SupernovaeComponent : public QObject, public ListComponent
40 {
41  Q_OBJECT;
42 
43 public:
44  explicit SupernovaeComponent(SkyComposite* parent);
45  virtual ~SupernovaeComponent();
46  virtual bool selected();
47  virtual void update(KSNumbers* num = 0);
48  virtual SkyObject* findByName(const QString& name);
49  virtual SkyObject* objectNearest(SkyPoint* p, double& maxrad);
50 
55  virtual void draw(SkyPainter* skyp);
56 
57  virtual void notifyNewSupernovae();
61  static float zoomMagnitudeLimit();
62 
63 public slots:
67  void slotTriggerDataFileUpdate();
68 
69 private slots:
70 
74  void slotDataFileUpdateFinished( int exitCode, QProcess::ExitStatus exitStatus );
75 
76 private:
77  void loadData();
78 
79  QList<SkyObject*> latest;
80 
81  QProcess *m_Parser;
82 };
83 
84 #endif
85 
SupernovaeComponent::SupernovaeComponent
SupernovaeComponent(SkyComposite *parent)
Definition: supernovaecomponent.cpp:33
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
supernova.h
SupernovaeComponent::~SupernovaeComponent
virtual ~SupernovaeComponent()
Definition: supernovaecomponent.cpp:38
QObject
ListComponent
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyObjects.
Definition: listcomponent.h:36
SupernovaeComponent::notifyNewSupernovae
virtual void notifyNewSupernovae()
Definition: supernovaecomponent.cpp:200
SupernovaeComponent::selected
virtual bool selected()
Definition: supernovaecomponent.cpp:52
SupernovaeComponent::objectNearest
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: supernovaecomponent.cpp:148
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
SupernovaeComponent::draw
virtual void draw(SkyPainter *skyp)
Definition: supernovaecomponent.cpp:178
SupernovaeComponent::slotTriggerDataFileUpdate
void slotTriggerDataFileUpdate()
This initiates updating of the data file by using supernovae_updates_parser.py.
Definition: supernovaecomponent.cpp:228
listcomponent.h
Supernova
Represents the supernova object.
Definition: supernova.h:44
ksnumbers.h
SupernovaeComponent::findByName
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: supernovaecomponent.cpp:137
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
SupernovaeComponent
encapsulates Supernovae.
Definition: supernovaecomponent.h:39
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
SupernovaeComponent::update
virtual void update(KSNumbers *num=0)
Update the sky positions of this component.
Definition: supernovaecomponent.cpp:40
SupernovaeComponent::zoomMagnitudeLimit
static float zoomMagnitudeLimit()
Definition: supernovaecomponent.cpp:168
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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