Kstars

constellationsart.cpp
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
11ConstellationsArt::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}
void loadImage()
Load the object's image.
double pa() const override
ConstellationsArt(dms &midpointra, dms &midpointdec, double pa, double w, double h, const QString &abbreviation, const QString &filename)
Constructor.
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
static const QImage & getImage(const QString &name)
Return texture image.
An angle, stored as degrees, but expressible in many ways.
Definition dms.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.