• 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
site.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  site.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/site.h"
20 
21 void OAL::Site::setSite(const QString &_id, const QString& _name, double _lat, const QString& _latUnit, double _lon, const QString& _lonUnit ){
22  m_Id = _id;
23  m_Name = _name;
24  m_Lat = _lat;
25  m_Lon = _lon;
26  m_LatUnit = _latUnit;
27  m_LonUnit = _lonUnit;
28 }
29 void OAL::Site::setSite( GeoLocation *geo, const QString& id ) {
30  m_Id = id;
31  m_Name = geo->name();
32  m_Lat = geo->lat()->radians();
33  m_Lon = geo->lng()->radians();
34  m_LatUnit = m_LonUnit = "rad";
35 }
site.h
GeoLocation::lng
const dms * lng() const
Definition: geolocation.h:76
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
GeoLocation::name
QString name() const
Definition: geolocation.h:97
GeoLocation::lat
const dms * lat() const
Definition: geolocation.h:79
OAL::Site::setSite
void setSite(const QString &_id, const QString &_name, double _lat, const QString &_latUnit, double _lon, const QString &_lonUnit)
Definition: site.cpp:21
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