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 
FITSSkyObject(SkyObject * object,int xPos,int yPos)13 FITSSkyObject::FITSSkyObject(SkyObject /*const*/ * object, int xPos, int yPos) : QObject()
14 {
15     skyObjectStored = object;
16     xLoc            = xPos;
17     yLoc            = yPos;
18 }
19 
skyObject()20 SkyObject /*const*/ * FITSSkyObject::skyObject()
21 {
22     return skyObjectStored;
23 }
24 
x() const25 int FITSSkyObject::x() const
26 {
27     return xLoc;
28 }
29 
y() const30 int FITSSkyObject::y() const
31 {
32     return yLoc;
33 }
34 
setX(int xPos)35 void FITSSkyObject::setX(int xPos)
36 {
37     xLoc = xPos;
38 }
39 
setY(int yPos)40 void FITSSkyObject::setY(int yPos)
41 {
42     yLoc = yPos;
43 }
44