• 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
  • oal
observation.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  observation.cpp - description
3 
4  -------------------
5  begin : Wednesday July 8, 2009
6  copyright : (C) 2009 by Prakash Mohan
7  email : prakash.mohan@kdemail.net
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #include "oal/observation.h"
20 
21 void OAL::Observation::setObservation( QString _id, QString _observer, QString _site, QString _session, QString _target, KStarsDateTime _begin, double _faintestStar, double _seeing, QString _scope, QString _eyepiece, QString _lens, QString _filter, QString _result, QString _lang ) {
22  m_Name = _id;
23  m_Observer = _observer;
24  m_Site = _site;
25  m_Session = _session;
26  m_Target = _target;
27  m_Begin = _begin;
28  m_FaintestStar = _faintestStar;
29  m_Seeing = _seeing;
30  m_Scope = _scope;
31  m_Eyepiece = _eyepiece;
32  m_Lens = _lens;
33  m_Filter = _filter;
34  m_Result = _result;
35  m_Lang = _lang;
36 }
37 
38 Observation::Observation( QString id, Observer* observer, Session* session, SkyObject* target, KStarsDateTime begin, double faintestStar, double seeing, Scope* scope, Eyepiece* eyepiece, Lens *lens, Filter* filter, QString result, QString lang ) {
39  if( observer )
40  m_Observer = observer->id();
41  if( target )
42  m_Target = target->name();
43  if( session ) {
44  m_Session = session->id();
45  m_Site = session->site();
46  }
47  if( scope )
48  m_Scope = scope->id();
49  if( lens )
50  m_Lens = lens->id();
51  if( filter )
52  m_Filter = filter->id();
53  if( eyepiece )
54  m_Eyepiece = eyepiece->id();
55  m_Name = id;
56  m_Begin = begin;
57  m_FaintestStar = faintestStar;
58  m_Seeing = seeing;
59  m_Result = result;
60  m_Lang = lang;
61 }
OAL::Eyepiece
Definition: eyepiece.h:25
OAL::Filter::id
QString id() const
Definition: filter.h:28
OAL::Eyepiece::id
QString id() const
Definition: eyepiece.h:28
OAL::Observation::faintestStar
double faintestStar() const
Definition: observation.h:54
OAL::Observation::setObservation
void setObservation(QString _id, QString _observer, QString _site, QString _session, QString _target, KStarsDateTime _begin, double _faintestStar, double _seeing, QString _scope, QString _eyepiece, QString _lens, QString _filter, QString _result, QString _lang="en")
Definition: observation.cpp:21
OAL::Scope
Definition: scope.h:25
OAL::Observation::Observation
Observation(QString id, QString observer, QString site, QString session, QString target, KStarsDateTime begin, double faintestStar, double seeing, QString scope, QString eyepiece, QString lens, QString filter, QString result, QString lang)
Definition: observation.h:38
OAL::Session::id
QString id() const
Definition: session.h:29
OAL::Observation::seeing
double seeing() const
Definition: observation.h:53
OAL::Observer::id
QString id()
Definition: observer.h:27
OAL::Observation::result
QString result() const
Definition: observation.h:52
OAL::Scope::id
QString id() const
Definition: scope.h:28
OAL::Filter
Definition: filter.h:25
OAL::Observation::begin
KStarsDateTime begin() const
Definition: observation.h:55
KStarsDateTime
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
OAL::Session
Definition: session.h:26
observation.h
OAL::Lens::id
QString id() const
Definition: lens.h:28
OAL::Observation::id
QString id() const
Definition: observation.h:42
OAL::Observer
Definition: observer.h:25
SkyObject::name
virtual QString name(void) const
Definition: skyobject.h:124
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
OAL::Lens
Definition: lens.h:25
OAL::Observation::lang
QString lang() const
Definition: observation.h:51
OAL::Session::site
QString site() const
Definition: session.h:30
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