19 #ifndef _STELSKYLAYERMGR_HPP_
20 #define _STELSKYLAYERMGR_HPP_
22 #include "StelModule.hpp"
23 #include "StelSkyLayer.hpp"
26 #include <QStringList>
63 QString
insertSkyLayer(StelSkyLayerP l,
const QString& keyHint=QString(),
bool show=
true);
71 StelSkyLayerP getSkyLayer(
const QString& key)
const;
98 bool loadSkyImage(
const QString&
id,
const QString& filename,
99 double ra0,
double dec0,
100 double ra1,
double dec1,
101 double ra2,
double dec2,
102 double ra3,
double dec3,
103 double minRes,
double maxBright,
bool visible);
123 double alt0,
double azi0,
124 double alt1,
double azi1,
125 double alt2,
double azi2,
126 double alt3,
double azi3,
127 double minRes,
double maxBright,
bool visible);
136 void showLayer(
const QString&
id,
bool b);
153 QString
insertSkyImage(
const QString& uri,
const QString& keyHint=QString(),
bool show=
true);
168 void loadingStateChanged(
bool b);
172 void percentLoadedChanged(
int percentage);
180 SkyLayerElem(StelSkyLayerP t,
bool show=
true);
187 SkyLayerElem* skyLayerElemForLayer(
const StelSkyLayer*);
192 QMap<QString, SkyLayerElem*> allSkyLayers;
198 #endif // _STELSKYLAYERMGR_HPP_
Manage the sky background images, including DSS and deep sky objects images.
QStringList getAllKeys() const
Return the list of all the layer currently loaded.
QString insertSkyLayer(StelSkyLayerP l, const QString &keyHint=QString(), bool show=true)
Add a new layer.
bool getShowLayer(const QString &id) const
Get the current shown status of a specified image.
virtual void update(double)
Update state which is time dependent.
bool getFlagShow() const
Get whether Sky Background should be displayed.
QMap< QString, StelSkyLayerP > getAllSkyLayers() const
Get the list of all the currently loaded layers.
void setFlagShow(bool b)
Set whether Sky Background should be displayed.
virtual void init()
Initialize.
Main class for Stellarium core processing.
void removeSkyLayer(StelSkyLayerP l)
Remove a layer.
virtual void draw(StelCore *core)
Draws sky background.
void showLayer(const QString &id, bool b)
Decide to show or not to show a layer by it's ID.
bool loadSkyImageAltAz(const QString &id, const QString &filename, double alt0, double azi0, double alt1, double azi1, double alt2, double azi2, double alt3, double azi3, double minRes, double maxBright, bool visible)
Load an image from a file.
QString insertSkyImage(const QString &uri, const QString &keyHint=QString(), bool show=true)
Add a new SkyImage from its URI (URL or local file name).
StelModuleActionName
Define the possible action for which an order is defined.
Maintain the state of a progress bar.
Abstract class defining the API to implement for all sky layer.
Base class for any astro image with a fixed position.
bool loadSkyImage(const QString &id, const QString &filename, double ra0, double dec0, double ra1, double dec1, double ra2, double dec2, double ra3, double dec3, double minRes, double maxBright, bool visible)
Load an image from a file.
virtual double getCallOrder(StelModuleActionName actionName) const
Determines the order in which the various modules are drawn.
This is the common base class for all the main components of stellarium.