• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • tools
  • whatsinteresting
obsconditions.h
Go to the documentation of this file.
1 /***************************************************************************
2  obsconditions.h - K Desktop Planetarium
3  -------------------
4  begin : 2012/10/07
5  copyright : (C) 2012 by Samikshan Bairagya
6  email : samikshan@gmail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef OBS_CONDITIONS_H
19 #define OBS_CONDITIONS_H
20 
21 #include "kstarsdata.h"
22 
31 class ObsConditions
32 {
33 public:
38  enum Equipment { Telescope, Binoculars, Both, None };
39 
44  enum TelescopeType { Reflector = 0, Refractor, Invalid };
45 
53  ObsConditions(int bortle, double aperture, Equipment equip, TelescopeType telType);
54 
58  ~ObsConditions();
59 
63  inline void setEquipment(Equipment equip) { m_Equip = equip; }
64 
68  inline void setTelescopeType(TelescopeType telType) { m_TelType = telType; }
69 
73  void setLimMagnitude();
74 
78  void setObsConditions(int bortle, double aperture, Equipment equip, TelescopeType telType);
79 
84  double getOptimumMAG();
85 
90  double getTrueMagLim();
91 
99  bool isVisible(GeoLocation *geo, dms *lst, SkyObject *so);
100 
105  static QMap<int, double> setLMMap();
106 
107 private:
108  int m_BortleClass;
109  Equipment m_Equip;
110  TelescopeType m_TelType;
111  double m_Aperture;
112  double m_tParam;
113  double m_LM;
114  static const QMap<int, double> m_LMMap;
115 };
117 
118 #endif
ObsConditions::Binoculars
Definition: obsconditions.h:38
ObsConditions::Refractor
Definition: obsconditions.h:44
ObsConditions::setLimMagnitude
void setLimMagnitude()
Set limiting magnitude depending on Bortle dark-sky rating.
Definition: obsconditions.cpp:63
ObsConditions::None
Definition: obsconditions.h:38
ObsConditions::setLMMap
static QMap< int, double > setLMMap()
Create QMap to be initialised to static member variable m_LMMap.
Definition: obsconditions.cpp:45
ObsConditions::getOptimumMAG
double getOptimumMAG()
Get optimum magnification under current observing conditions.
Definition: obsconditions.cpp:68
ObsConditions::Telescope
Definition: obsconditions.h:38
ObsConditions::getTrueMagLim
double getTrueMagLim()
Get true limiting magnitude after taking equipment specifications into consideration.
Definition: obsconditions.cpp:74
ObsConditions::Equipment
Equipment
Equipment available to the user.
Definition: obsconditions.h:38
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
ObsConditions::ObsConditions
ObsConditions(int bortle, double aperture, Equipment equip, TelescopeType telType)
Constructor.
Definition: obsconditions.cpp:22
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
ObsConditions::setTelescopeType
void setTelescopeType(TelescopeType telType)
Inline method to set reflector/refractor type for telescope.
Definition: obsconditions.h:68
ObsConditions::setObsConditions
void setObsConditions(int bortle, double aperture, Equipment equip, TelescopeType telType)
Set new observing conditions.
Definition: obsconditions.cpp:107
ObsConditions::isVisible
bool isVisible(GeoLocation *geo, dms *lst, SkyObject *so)
Evaluate visibility of sky-object based on current observing conditions.
Definition: obsconditions.cpp:96
ObsConditions::Invalid
Definition: obsconditions.h:44
ObsConditions::Reflector
Definition: obsconditions.h:44
ObsConditions
This class deals with the observing conditions of the night sky.
Definition: obsconditions.h:31
kstarsdata.h
ObsConditions::Both
Definition: obsconditions.h:38
ObsConditions::~ObsConditions
~ObsConditions()
Destructor.
Definition: obsconditions.cpp:43
ObsConditions::setEquipment
void setEquipment(Equipment equip)
Inline method to set available equipment.
Definition: obsconditions.h:63
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
ObsConditions::TelescopeType
TelescopeType
Telescope Type (Reflector/Refractor)
Definition: obsconditions.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal