File indexing completed on 2024-03-24 03:47:24
0001 /* 0002 SPDX-FileCopyrightText: 2015 M.S.Adityan <msadityan@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "constellationsart.h" 0008 0009 #include "texturemanager.h" 0010 0011 ConstellationsArt::ConstellationsArt(dms &midpointra, dms &midpointdec, double pa, double w, double h, 0012 const QString &abbreviation, const QString &filename) 0013 { 0014 positionAngle = pa; 0015 abbrev = abbreviation; 0016 imageFileName = filename; 0017 0018 width = w; 0019 height = h; 0020 0021 //loadImage(); 0022 0023 //This sets both current and J2000 RA/DEC to the values ra and dec. 0024 setRA(midpointra); 0025 setDec(midpointdec); 0026 } 0027 0028 void ConstellationsArt::loadImage() 0029 { 0030 constellationArtImage = TextureManager::getImage(imageFileName); 0031 imageLoaded = true; 0032 }