• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

modcalcvlsr.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           modcalcLSRVel.h  -  description
00003                              -------------------
00004     begin                : dom mar 13 2005
00005     copyright            : (C) 2005 by Pablo de Vicente
00006     email                : pvicentea@wanadoo.es
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef MODCALCVLSR_H
00019 #define MODCALCVLSR_H
00020 
00021 #include <kapplication.h>
00022 #include <qwidget.h>
00023 #include "modcalcvlsrdlg.h"
00024 
00025 class QWidget;
00026 class SkyPoint;
00027 class KStarsDateTime;
00028 class GeoLocation;
00029 class dms;
00030 
00038 class modCalcVlsr : public modCalcVlsrDlg  {
00039 
00040 Q_OBJECT
00041 
00042 public: 
00043     modCalcVlsr(QWidget *p, const char *n);
00044     ~modCalcVlsr();
00045     
00046 public slots:
00047 
00048     void slotClearCoords();
00049     void slotComputeVelocities();
00050     void slotUtChecked();
00051     void slotDateChecked();
00052     void slotRaChecked();
00053     void slotDecChecked();
00054     void slotEpochChecked();
00055     void slotLongChecked();
00056     void slotLatChecked();
00057     void slotHeightChecked();
00058     void slotVlsrChecked();
00059     void slotInputFile();
00060     void slotOutputFile();
00061     void slotRunBatch();
00062 
00063 private:
00064 
00067     SkyPoint getEquCoords(void);
00068 
00069     /* @return a double with the Vlsr from the vlsrBox in the UI
00070      */
00071     double getVLSR (void);
00072     
00073     /* @return a double with the Vhel from the vhelBox in the UI
00074      */
00075     double getVhel (void);
00076     
00077     /* @return a double with the Vgeo from the vgeoBox in the UI
00078      */
00079     double getVgeo (void);
00080     
00081     /* @return a double with the Vtopo from the vtopoBox in the UI
00082      */
00083     double getVtopo (void);
00084 
00086     KStarsDateTime getDateTime (void);
00087 
00092     double getEpoch (QString eName);
00093 
00094     /* Creates a dms object from the latitude box */
00095     dms getLatitude (void);
00096 
00097     /* Creates a dms object from the longitude box */
00098     dms getLongitude (void);
00099 
00100     /* creates a double from the height box */ 
00101     double getHeight(void);
00102     
00103     /* Constructs a GeoLocation object from the longitude, latitude and height fields */
00104 
00105     void getGeoLocation(void);
00106 
00109     void showCurrentDateTime(void);
00110 
00111     /* Constructs the a GeoLocation object (geoPlace) from the calling classes.
00112      * This is for using as Geolocation the location setup in KStars 
00113      * */
00114     void initGeo(void);
00115 
00116     /* Fills the longitude, latitude and height fields with the values in the 
00117      * geoPlace object, which come from the calling classes.
00118      */
00119     void showLongLat(void);
00120 
00123     void showVlsr (const double vlsr );
00124 
00127     void showHelVel (const double vhel );
00128 
00131     void showGeoVel (const double vgeo );
00132 
00135     void showTopoVel (const double vtopo );
00136 
00140     void showEpoch (const KStarsDateTime &dt );
00141 
00142     /* Method to process the lines from a file
00143      */
00144     void processLines( QTextStream &istream );
00145   
00146     GeoLocation *geoPlace;
00147 
00148 };
00149 
00150 
00151 
00152 #endif

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal