Kstars

fitsskyobject.cpp
1/*
2 SPDX-FileCopyrightText: 2004 Jasem Mutlaq
3 SPDX-FileCopyrightText: 2020 Eric Dejouhanet <eric.dejouhanet@gmail.com>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6
7 Some code fragments were adapted from Peter Kirchgessner's FITS plugin
8 SPDX-FileCopyrightText: Peter Kirchgessner <http://members.aol.com/pkirchg>
9*/
10
11#include "fitsskyobject.h"
12
13FITSSkyObject::FITSSkyObject(SkyObject /*const*/ * object, int xPos, int yPos) : QObject()
14{
15 skyObjectStored = object;
16 xLoc = xPos;
17 yLoc = yPos;
18}
19
20SkyObject /*const*/ * FITSSkyObject::skyObject()
21{
22 return skyObjectStored;
23}
24
25int FITSSkyObject::x() const
26{
27 return xLoc;
28}
29
30int FITSSkyObject::y() const
31{
32 return yLoc;
33}
34
35void FITSSkyObject::setX(int xPos)
36{
37 xLoc = xPos;
38}
39
40void FITSSkyObject::setY(int yPos)
41{
42 yLoc = yPos;
43}
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.