File indexing completed on 2024-03-24 15:16:55

0001 /*
0002     SPDX-FileCopyrightText: 2004 Jasem Mutlaq
0003     SPDX-FileCopyrightText: 2020 Eric Dejouhanet <eric.dejouhanet@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 
0007     Some code fragments were adapted from Peter Kirchgessner's FITS plugin
0008     SPDX-FileCopyrightText: Peter Kirchgessner <http://members.aol.com/pkirchg>
0009 */
0010 
0011 #include "fitsskyobject.h"
0012 
0013 FITSSkyObject::FITSSkyObject(SkyObject /*const*/ * object, int xPos, int yPos) : QObject()
0014 {
0015     skyObjectStored = object;
0016     xLoc            = xPos;
0017     yLoc            = yPos;
0018 }
0019 
0020 SkyObject /*const*/ * FITSSkyObject::skyObject()
0021 {
0022     return skyObjectStored;
0023 }
0024 
0025 int FITSSkyObject::x() const
0026 {
0027     return xLoc;
0028 }
0029 
0030 int FITSSkyObject::y() const
0031 {
0032     return yLoc;
0033 }
0034 
0035 void FITSSkyObject::setX(int xPos)
0036 {
0037     xLoc = xPos;
0038 }
0039 
0040 void FITSSkyObject::setY(int yPos)
0041 {
0042     yLoc = yPos;
0043 }