Kstars

site.cpp
1/*
2 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "oal/site.h"
8
9void OAL::Site::setSite(const QString &_id, const QString &_name, double _lat, const QString &_latUnit, double _lon,
10 const QString &_lonUnit)
11{
12 m_Id = _id;
13 m_Name = _name;
14 m_Lat = _lat;
15 m_Lon = _lon;
16 m_LatUnit = _latUnit;
17 m_LonUnit = _lonUnit;
18}
19void OAL::Site::setSite(GeoLocation *geo, const QString &id)
20{
21 m_Id = id;
22 m_Name = geo->name();
23 m_Lat = geo->lat()->radians();
24 m_Lon = geo->lng()->radians();
25 m_LatUnit = m_LonUnit = "rad";
26}
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
GeoCoordinates geo(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.