Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

modules/GridLinesMgr.hpp

00001 /*
00002  * Stellarium
00003  * Copyright (C) 2007 Fabien Chereau
00004  * 
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018  */
00019  
00020 #ifndef _GRIDLINESMGR_HPP_
00021 #define _GRIDLINESMGR_HPP_
00022 
00023 #include "VecMath.hpp"
00024 #include "StelModule.hpp"
00025 
00026 class StelTranslator;
00027 class SkyGrid;
00028 class SkyLine;
00029 class QSettings;
00030 
00034 class GridLinesMgr : public StelModule
00035 {
00036     Q_OBJECT
00037 
00038 public:
00039     GridLinesMgr();
00040     virtual ~GridLinesMgr();
00041 
00043     // Methods defined in the StelModule class
00048     virtual void init();
00049     
00051     virtual QString getModuleID() const {return "GridLinesMgr";}
00052     
00057     virtual void draw(StelCore* core);
00058     
00061     virtual void update(double deltaTime);
00062     
00066     virtual void setStelStyle(const StelStyle& style);
00067     
00069     virtual double getCallOrder(StelModuleActionName actionName) const;
00070     
00072     // Setter and getters
00073 public slots:
00075     void setFlagAzimuthalGrid(bool b);
00077     bool getFlagAzimuthalGrid(void) const;
00079     Vec3f getColorAzimuthalGrid(void) const;
00081     void setColorAzimuthalGrid(const Vec3f& v);
00082     
00084     void setFlagEquatorGrid(bool b);
00086     bool getFlagEquatorGrid(void) const;
00088     Vec3f getColorEquatorGrid(void) const;
00090     void setColorEquatorGrid(const Vec3f& v);
00091     
00093     void setFlagEquatorJ2000Grid(bool b);
00095     bool getFlagEquatorJ2000Grid(void) const;
00097     Vec3f getColorEquatorJ2000Grid(void) const;
00099     void setColorEquatorJ2000Grid(const Vec3f& v);
00100     
00102     void setFlagEquatorLine(bool b);
00104     bool getFlagEquatorLine(void) const;
00106     Vec3f getColorEquatorLine(void) const;
00108     void setColorEquatorLine(const Vec3f& v);
00109     
00111     void setFlagEclipticLine(bool b);
00113     bool getFlagEclipticLine(void) const;
00115     Vec3f getColorEclipticLine(void) const;
00117     void setColorEclipticLine(const Vec3f& v);
00118 
00120     void setFlagMeridianLine(bool b);
00122     bool getFlagMeridianLine(void) const;
00124     Vec3f getColorMeridianLine(void) const;
00126     void setColorMeridianLine(const Vec3f& v);
00127     
00128 private:
00129     SkyGrid * equGrid;      // Equatorial grid
00130     SkyGrid * equJ2000Grid; // Equatorial J2000 grid
00131     SkyGrid * aziGrid;      // Azimuthal grid
00132     SkyLine * equatorLine;  // Celestial Equator line
00133     SkyLine * eclipticLine; // Ecliptic line
00134     SkyLine * meridianLine; // Meridian line
00135 };
00136 
00137 #endif // _GRIDLINESMGR_HPP_

Generated on Mon Mar 9 16:16:16 2009 for Stellarium by  doxygen 1.5.5