Kstars

constellationsart.cpp
1 /*
2  SPDX-FileCopyrightText: 2015 M.S.Adityan <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "constellationsart.h"
8 
9 #include "texturemanager.h"
10 
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 
29 {
30  constellationArtImage = TextureManager::getImage(imageFileName);
31  imageLoaded = true;
32 }
ConstellationsArt(dms &midpointra, dms &midpointdec, double pa, double w, double h, const QString &abbreviation, const QString &filename)
Constructor.
void loadImage()
Load the object's image.
double pa() const override
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:37
static const QImage & getImage(const QString &name)
Return texture image.
void setDec(dms d)
Sets Dec, the current Declination.
Definition: skypoint.h:169
void setRA(dms &r)
Sets RA, the current Right Ascension.
Definition: skypoint.h:144
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.