![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
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 SkyGrid; 00027 class SkyLine; 00028 00032 class GridLinesMgr : public StelModule 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 GridLinesMgr(); 00038 virtual ~GridLinesMgr(); 00039 00041 // Methods defined in the StelModule class 00046 virtual void init(); 00047 00049 virtual QString getModuleID() const {return "GridLinesMgr";} 00050 00055 virtual void draw(StelCore* core); 00056 00059 virtual void update(double deltaTime); 00060 00064 virtual void setStelStyle(const QString& section); 00065 00067 virtual double getCallOrder(StelModuleActionName actionName) const; 00068 00070 // Setter and getters 00071 public slots: 00073 void setFlagAzimuthalGrid(bool b); 00075 bool getFlagAzimuthalGrid(void) const; 00077 Vec3f getColorAzimuthalGrid(void) const; 00079 void setColorAzimuthalGrid(const Vec3f& v); 00080 00082 void setFlagEquatorGrid(bool b); 00084 bool getFlagEquatorGrid(void) const; 00086 Vec3f getColorEquatorGrid(void) const; 00088 void setColorEquatorGrid(const Vec3f& v); 00089 00091 void setFlagEquatorJ2000Grid(bool b); 00093 bool getFlagEquatorJ2000Grid(void) const; 00095 Vec3f getColorEquatorJ2000Grid(void) const; 00097 void setColorEquatorJ2000Grid(const Vec3f& v); 00098 00100 void setFlagGalacticGrid(bool b); 00102 bool getFlagGalacticGrid(void) const; 00104 Vec3f getColorGalacticGrid(void) const; 00106 void setColorGalacticGrid(const Vec3f& v); 00107 00109 void setFlagEquatorLine(bool b); 00111 bool getFlagEquatorLine(void) const; 00113 Vec3f getColorEquatorLine(void) const; 00115 void setColorEquatorLine(const Vec3f& v); 00116 00118 void setFlagEclipticLine(bool b); 00120 bool getFlagEclipticLine(void) const; 00122 Vec3f getColorEclipticLine(void) const; 00124 void setColorEclipticLine(const Vec3f& v); 00125 00127 void setFlagMeridianLine(bool b); 00129 bool getFlagMeridianLine(void) const; 00131 Vec3f getColorMeridianLine(void) const; 00133 void setColorMeridianLine(const Vec3f& v); 00134 00135 private: 00136 SkyGrid * equGrid; // Equatorial grid 00137 SkyGrid * equJ2000Grid; // Equatorial J2000 grid 00138 SkyGrid * galacticGrid; // Galactic grid 00139 SkyGrid * aziGrid; // Azimuthal grid 00140 SkyLine * equatorLine; // Celestial Equator line 00141 SkyLine * eclipticLine; // Ecliptic line 00142 SkyLine * meridianLine; // Meridian line 00143 }; 00144 00145 #endif // _GRIDLINESMGR_HPP_