Kstars

fitsskyobject.cpp
1 /*
2  SPDX-FileCopyrightText: 2004 Jasem Mutlaq
3  SPDX-FileCopyrightText: 2020 Eric Dejouhanet <[email protected]>
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 
13 FITSSkyObject::FITSSkyObject(SkyObject /*const*/ * object, int xPos, int yPos) : QObject()
14 {
15  skyObjectStored = object;
16  xLoc = xPos;
17  yLoc = yPos;
18 }
19 
20 SkyObject /*const*/ * FITSSkyObject::skyObject()
21 {
22  return skyObjectStored;
23 }
24 
25 int FITSSkyObject::x() const
26 {
27  return xLoc;
28 }
29 
30 int FITSSkyObject::y() const
31 {
32  return yLoc;
33 }
34 
35 void FITSSkyObject::setX(int xPos)
36 {
37  xLoc = xPos;
38 }
39 
40 void FITSSkyObject::setY(int yPos)
41 {
42  yLoc = yPos;
43 }
Information about an object in the sky.
Definition: skyobject.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.