19 #ifndef _STELSKYLAYERMGR_HPP_ 20 #define _STELSKYLAYERMGR_HPP_ 22 #include "StelModule.hpp" 23 #include "StelSkyLayer.hpp" 26 #include <QStringList> 66 QString
insertSkyLayer(StelSkyLayerP l,
const QString& keyHint=QString(),
bool show=
true);
74 StelSkyLayerP getSkyLayer(
const QString& key)
const;
83 void setFlagShow(
bool b) {
if (flagShow !=b) { flagShow = b; emit flagShowChanged(b);}}
106 bool loadSkyImage(
const QString&
id,
const QString& filename,
107 double long0,
double lat0,
108 double long1,
double lat1,
109 double long2,
double lat2,
110 double long3,
double lat3,
133 double alt0,
double azi0,
134 double alt1,
double azi1,
135 double alt2,
double azi2,
136 double alt3,
double azi3,
137 double minRes,
double maxBright,
bool visible);
144 void showLayer(
const QString&
id,
bool b);
161 QString
insertSkyImage(
const QString& uri,
const QString& keyHint=QString(),
bool show=
true);
174 void flagShowChanged(
bool b);
179 void loadingStateChanged(
bool b);
183 void percentLoadedChanged(
int percentage);
191 SkyLayerElem(StelSkyLayerP t,
bool show=
true);
198 SkyLayerElem* skyLayerElemForLayer(
const StelSkyLayer*);
203 QMap<QString, SkyLayerElem*> allSkyLayers;
209 #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.
bool loadSkyImage(const QString &id, const QString &filename, double long0, double lat0, double long1, double lat1, double long2, double lat2, double long3, double lat3, double minRes, double maxBright, bool visible, StelCore::FrameType frameType=StelCore::FrameJ2000)
Load an image from a file into a quad described with 4 corner coordinates.
QMap< QString, StelSkyLayerP > getAllSkyLayers() const
Get the list of all the currently loaded layers.
Equatorial reference frame at the J2000 equinox centered on the observer. This is also the ICRS refer...
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 its ID.
FrameType
Supported reference frame types.
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 into AzAltimuthal coordinates.
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.
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.