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

kstars

ksasteroid.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           ksasteroid.h  -  K Desktop Planetarium
00003                              -------------------
00004     begin                : Wed 19 Feb 2003
00005     copyright            : (C) 2001 by Jason Harris
00006     email                : jharris@30doradus.org
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 KSASTEROID_H
00019 #define KSASTEROID_H
00020 
00021 #include "ksplanetbase.h"
00022 
00044 class KStarsData;
00045 class KSNumbers;
00046 class dms;
00047 
00048 class KSAsteroid : public KSPlanetBase
00049 {
00050     public:
00064         KSAsteroid( KStarsData *kd, QString s, QString image_file,
00065             long double JD, double a, double e, dms i, dms w, dms N, dms M, double H );
00066 
00068         virtual ~KSAsteroid() {}
00069 
00073         virtual bool loadData();
00074 
00075     protected:
00082         virtual bool findGeocentricPosition( const KSNumbers *num, const KSPlanetBase *Earth=NULL );
00083 
00084         //these set functions are needed for the new KSPluto subclass
00085         void set_a( double newa ) { a = newa; }
00086         void set_e( double newe ) { e = newe; }
00087         void set_P( double newP ) { P = newP; }
00088         void set_i( double newi ) { i.setD( newi ); }
00089         void set_w( double neww ) { w.setD( neww ); }
00090         void set_M( double newM ) { M.setD( newM ); }
00091         void set_N( double newN ) { N.setD( newN ); }
00092         void setJD( long double jd ) { JD = jd; }
00093 
00094     private:
00095         KStarsData *kd;
00096         long double JD;
00097         double a, e, H, P;
00098         dms i, w, M, N;
00099 };
00100 
00101 #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