kstars
supernovaecomponent.cpp
Go to the documentation of this file.
33 SupernovaeComponent::SupernovaeComponent(SkyComposite* parent): ListComponent(parent), m_Parser(0)
69 //SN ,Host Galaxy ,Date , R.A. , Decl., Offset ,Mag., Disc. Ref. , SN Position , Posn. Ref. ,Typ, SN ,Discoverer(s)
174 return 14.0 + 2.222*( lgz - lgmin ) + 2.222*log10( static_cast<double>(Options::starDensity()) );
224 // KMessageBox::informationList(0, i18n("New Supernovae discovered!"), latestList, i18n("New Supernovae discovered!"));
233 connect( m_Parser, SIGNAL( finished( int, QProcess::ExitStatus ) ), this, SLOT( slotDataFileUpdateFinished( int, QProcess::ExitStatus ) ) );
237 void SupernovaeComponent::slotDataFileUpdateFinished( int exitCode, QProcess::ExitStatus exitStatus )
249 errmsg = i18n( "Python process that updates the supernova information failed with error code %1", QString::number( exitCode ) );
252 if( KStars::Instance() && SkyMap::Instance() ) // Displaying a message box causes entry of control into the Qt event loop. Can lead to segfault if we are checking for supernovae alerts during initialization!
254 // FIXME: There should be a better way to check if KStars is fully initialized. Maybe we should have a static boolean in the KStars class. --asimha
SupernovaeComponent(SkyComposite *parent)
Definition: supernovaecomponent.cpp:33
Definition: notifyupdatesui.h:30
static double magnitudeLimitAlertSupernovae()
Get Set magnitude limit for supernovae to be alerted.
Definition: Options.h:1512
virtual ~SupernovaeComponent()
Definition: supernovaecomponent.cpp:38
virtual void updateCoords(KSNumbers *num, bool includePlanets=true, const dms *lat=0, const dms *LST=0, bool forceRecompute=false)
Determine the current coordinates (RA, Dec) from the catalog coordinates (RA0, Dec0), accounting for both precession and nutation.
Definition: skypoint.cpp:317
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyObjects.
Definition: listcomponent.h:36
virtual void notifyNewSupernovae()
Definition: supernovaecomponent.cpp:200
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: supernovaecomponent.cpp:148
void addItems(QList< SkyObject * > updatesList)
Definition: notifyupdatesui.cpp:44
Definition: ksparser.h:70
void slotTriggerDataFileUpdate()
This initiates updating of the data file by using supernovae_updates_parser.py.
Definition: supernovaecomponent.cpp:228
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 is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
void EquatorialToHorizontal(const dms *LST, const dms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates, given the local sidereal time and the observer's latitude.
Definition: skypoint.cpp:55
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
static double magnitudeLimitShowSupernovae()
Get Set magnitude limit for supernovae to be shown on the skymap.
Definition: Options.h:1474
virtual void update(KSNumbers *num=0)
Update the sky positions of this component.
Definition: supernovaecomponent.cpp:40
Definition: skyobject.h:112
static float zoomMagnitudeLimit()
Definition: supernovaecomponent.cpp:168
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
Definition: ksparser.h:72
Definition: ksparser.h:68
dms angularDistanceTo(const SkyPoint *sp, double *const positionAngle=0) const
Computes the angular distance between two SkyObjects.
Definition: skypoint.cpp:608
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
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.