kstars
jupitermoons.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 jupitermoons.h - description 00003 ------------------- 00004 begin : Fri Oct 18 2002 00005 copyright : (C) 2002 by Jason Harris 00006 email : kstars@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 JUPITERMOONS_H 00019 #define JUPITERMOONS_H 00020 00021 #include "skypoint.h" 00022 00033 class KSPlanet; 00034 class KSSun; 00035 00036 class JupiterMoons { 00037 public: 00041 JupiterMoons(); 00042 00044 ~JupiterMoons(); 00045 00065 void findPosition( const KSNumbers *num, const KSPlanet *jup, const KSSun *ksun ); 00066 00070 SkyPoint* pos( int id ) { return &Pos[id]; } 00071 00075 bool inFront( int id ) const { return InFront[id]; } 00076 00080 QString name( int id ) const { return Name[id]; } 00081 00086 int moonNamed( const QString &name ) const; 00087 00092 void EquatorialToHorizontal( const dms *LSTh, const dms *lat ); 00093 00097 double x( int i ) const { return XJ[i]; } 00098 00102 double y( int i ) const { return YJ[i]; } 00103 00107 double z( int i ) const { return ZJ[i]; } 00108 private: 00109 SkyPoint Pos[4]; 00110 QString Name[4]; 00111 bool InFront[4]; 00112 //the rectangular position, relative to Jupiter. X-axis is equator of Jupiter; usints are Jup. Radius 00113 double XJ[4], YJ[4], ZJ[4]; 00114 }; 00115 00116 #endif 00117