• 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
  • skyobjects
supernova.h
Go to the documentation of this file.
1 /***************************************************************************
2  supernova.h - K Desktop Planetarium
3  -------------------
4  begin : Sunday, 19th June, 2011
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 SUPERNOVA_H
19 #define SUPERNOVA_H
20 
21 #include "skyobject.h"
22 
23 #include <qvarlengtharray.h>
24 
44 class Supernova : public SkyObject
45 {
46 public:
47  explicit Supernova( dms ra, dms dec, const QString& date, float m = 0.0, const QString& serialNo=QString(),
48  const QString& type=QString(), const QString& hostGalaxy=QString(), const QString& offset=QString(),const QString& discoverer=QString() );
49  //virtual Supernova* clone() const;
50 
52  virtual ~Supernova() {}
53 
55  inline bool hasName() const { return ( !serialNumber.isEmpty()); }
56 
58  inline virtual QString name( void ) const { return serialNumber;}
59 
63  inline dms getRA() { return RA ; }
64 
68  inline dms getDec() { return Dec ; }
69 
73  inline float getMagnitude() { return Magnitude ; }
74 
78  inline QString getType() { return type; }
79 
83  inline QString getHostGalaxy() { return hostGalaxy; }
84 
88  inline QString getDate() { return date; }
89 
90 private:
91  void initPopupMenu(KSPopupMenu*);
92  QString serialNumber, type, hostGalaxy, offset, discoverers, date;
93  dms RA, Dec;
94  float Magnitude;
95 };
96 
97 #endif
SkyPoint::ra
const dms & ra() const
Definition: skypoint.h:171
KSPopupMenu
The KStars Popup Menu.
Definition: kspopupmenu.h:43
Supernova::getDec
dms getDec()
Definition: supernova.h:68
Supernova::getHostGalaxy
QString getHostGalaxy()
Definition: supernova.h:83
skyobject.h
Supernova::getMagnitude
float getMagnitude()
Definition: supernova.h:73
Supernova::hasName
bool hasName() const
Definition: supernova.h:55
Supernova::~Supernova
virtual ~Supernova()
Destructor(Empty)
Definition: supernova.h:52
Supernova::getType
QString getType()
Definition: supernova.h:78
Supernova
Represents the supernova object.
Definition: supernova.h:44
Supernova::getRA
dms getRA()
Definition: supernova.h:63
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
SkyPoint::dec
const dms & dec() const
Definition: skypoint.h:174
Supernova::getDate
QString getDate()
Definition: supernova.h:88
SkyObject::type
int type(void) const
Definition: skyobject.h:164
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
Supernova::name
virtual QString name(void) const
Definition: supernova.h:58
Supernova::Supernova
Supernova(dms ra, dms dec, const QString &date, float m=0.0, const QString &serialNo=QString(), const QString &type=QString(), const QString &hostGalaxy=QString(), const QString &offset=QString(), const QString &discoverer=QString())
Definition: supernova.cpp:21
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