Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/Quasar_8hpp_source.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 07:30:01 2014
Кодировка:

Поисковые слова: moon
Stellarium: /home/aw/devel/stellarium/trunk/plugins/Quasars/src/Quasar.hpp Source File
Stellarium 0.12.3
Quasar.hpp
1 /*
2  * Copyright (C) 2011 Alexander Wolf
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
17  */
18 
19 #ifndef _QUASAR_HPP_
20 #define _QUASAR_HPP_ 1
21 
22 #include <QVariant>
23 #include <QString>
24 #include <QStringList>
25 #include <QFont>
26 #include <QList>
27 #include <QDateTime>
28 
29 #include "StelObject.hpp"
30 #include "StelFader.hpp"
31 #include "StelProjectorType.hpp"
32 
33 
38 
39 class Quasar : public StelObject
40 {
41  friend class Quasars;
42 public:
44  Quasar(const QVariantMap& map);
45  ~Quasar();
46 
49  QVariantMap getMap(void);
50 
51  virtual QString getType(void) const
52  {
53  return "Quasar";
54  }
55  virtual float getSelectPriority(const StelCore* core) const;
56 
60  virtual QString getInfoString(const StelCore* core, const InfoStringGroup& flags) const;
61  virtual Vec3f getInfoColor(void) const;
62  virtual Vec3d getJ2000EquatorialPos(const StelCore*) const
63  {
64  return XYZ;
65  }
66  virtual float getVMagnitude(const StelCore* core, bool withExtinction=false) const;
67  virtual double getAngularSize(const StelCore* core) const;
68  virtual QString getNameI18n(void) const
69  {
70  return designation;
71  }
72  virtual QString getEnglishName(void) const
73  {
74  return designation;
75  }
76 
77  void update(double deltaTime);
78 
79 private:
80  bool initialized;
81 
82  Vec3d XYZ; // holds J2000 position
83 
84  void draw(StelCore* core, class StelRenderer* renderer, StelProjectorP projector,
85  class StelTextureNew* markerTexture);
86 
89  unsigned char BvToColorIndex(float b_v);
90 
91  // Quasar
92  QString designation;
93  float VMagnitude;
94  float AMagnitude;
95  float bV;
96  double qRA;
97  double qDE;
98  float redshift;
99 
100  LinearFader labelsFader;
101 };
102 
103 #endif // _QUASAR_HPP_