1 /*
2     SPDX-FileCopyrightText: 2015 M.S.Adityan <msadityan@gmail.com>
3 
4     SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "constellationsart.h"
8 
9 #include "texturemanager.h"
10 
ConstellationsArt(dms & midpointra,dms & midpointdec,double pa,double w,double h,const QString & abbreviation,const QString & filename)11 ConstellationsArt::ConstellationsArt(dms &midpointra, dms &midpointdec, double pa, double w, double h,
12                                      const QString &abbreviation, const QString &filename)
13 {
14     positionAngle = pa;
15     abbrev        = abbreviation;
16     imageFileName = filename;
17 
18     width  = w;
19     height = h;
20 
21     //loadImage();
22 
23     //This sets both current and J2000 RA/DEC to the values ra and dec.
24     setRA(midpointra);
25     setDec(midpointdec);
26 }
27 
loadImage()28 void ConstellationsArt::loadImage()
29 {
30     constellationArtImage = TextureManager::getImage(imageFileName);
31     imageLoaded           = true;
32 }
33