StelSkyLayerMgr.hpp   StelSkyLayerMgr.hpp 
skipping to change at line 32 skipping to change at line 32
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelSkyLayer.hpp" #include "StelSkyLayer.hpp"
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QMap> #include <QMap>
class StelCore; class StelCore;
class StelSkyImageTile; class StelSkyImageTile;
//! Manage the sky background images, including DSS and deep sky objects im //! Manage the sky background images, including DSS and deep sky objects im
ages ages.
//! Drawn after Milky Way, but before Zodiacal Light.
//! It is not intended to be used to "overdraw" images into the foreground
without a concept of surface magnitude.
class StelSkyLayerMgr : public StelModule class StelSkyLayerMgr : public StelModule
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool flagShow READ getFlagShow WRITE setFlagShow NOTIFY f lagShowChanged) Q_PROPERTY(bool flagShow READ getFlagShow WRITE setFlagShow NOTIFY f lagShowChanged)
public: public:
StelSkyLayerMgr(); StelSkyLayerMgr();
~StelSkyLayerMgr(); ~StelSkyLayerMgr();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
skipping to change at line 81 skipping to change at line 84
StelSkyLayerP getSkyLayer(const QString& key) const; StelSkyLayerP getSkyLayer(const QString& key) const;
//! Get whether Sky Background should be displayed //! Get whether Sky Background should be displayed
bool getFlagShow() const {return flagShow;} bool getFlagShow() const {return flagShow;}
public slots: public slots:
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Properties setters and getters // Properties setters and getters
//! Set whether Sky Background should be displayed //! Set whether Sky Background should be displayed
void setFlagShow(bool b) {if (flagShow !=b) { flagShow = b; emit fla gShowChanged(b);}} void setFlagShow(bool b) {if (flagShow !=b) { flagShow = b; emit fla gShowChanged(b);}}
//! Load an image from a file. This should not be called directly fr //! Load an image from a file into a quad described with 4 corner co
om ordinates.
//! scripts because it is not thread safe. Instead use the simiarly //! The corners are always given in counterclockwise from top-left,
//! named function in the core scripting object. also for azaltimuthal images.
//! This should not be called directly from scripts because it is no
t thread safe.
//! Instead use the similarly named function in the core scripting o
bject.
//! @param id a string identifier for the image //! @param id a string identifier for the image
//! @param filename the name of the image file to load. Will be //! @param filename the name of the image file to load. Will be
//! searched for using StelFileMgr, so partial names are fine. //! searched for using StelFileMgr, so partial names are fine.
//! @param ra0 right ascention of corner 0 in degrees //! @param lon0 right ascension/longitude/azimuth of top-left corner
//! @param dec0 declination of corner 0 in degrees 0 in degrees
//! @param ra1 right ascention of corner 1 in degrees //! @param lat0 declination/latitude/altitude of corner 0 in degrees
//! @param dec1 declination of corner 1 in degrees //! @param lon1 right ascension/longitude/azimuth of bottom-left cor
//! @param ra2 right ascention of corner 2 in degrees ner 1 in degrees
//! @param dec2 declination of corner 2 in degrees //! @param lat1 declination/latitude/altitude of corner 1 in degrees
//! @param ra3 right ascention of corner 3 in degrees //! @param lon2 right ascension/longitude/azimuth of bottom-right co
//! @param dec3 declination of corner 3 in degrees rner 2 in degrees
//! @param lat2 declination/latitude/altitude of corner 2 in degrees
//! @param lon3 right ascension/longitude/azimuth of top-right corne
r 3 in degrees
//! @param lat3 declination/latitude/altitude of corner 3 in degrees
//! @param minRes the minimum resolution setting for the image //! @param minRes the minimum resolution setting for the image
//! @param maxBright the maximum brightness setting for the image //! @param maxBright the maximum brightness setting for the image
//! @param visible initial visibility setting //! @param visible initial visibility setting
//! @param frameType Coordinate frame type
//! @note Last argument has been added 2017-03. Use loadSkyImage(...
, StelCore::FrameJ2000) for the previous behaviour!
//! @note For frameType=AzAlt, azimuth currently is counted from Sou
th towards East.
//! @bug Some image are not visible close to screen center, only whe
n in the corners.
bool loadSkyImage(const QString& id, const QString& filename, bool loadSkyImage(const QString& id, const QString& filename,
double ra0, double dec0, double long0, double lat0,
double ra1, double dec1, double long1, double lat1,
double ra2, double dec2, double long2, double lat2,
double ra3, double dec3, double long3, double lat3,
double minRes, double maxBright, b double minRes, double maxBright, b
ool visible); ool visible, StelCore::FrameType frameType=StelCore::FrameJ2000);
//! Load an image from a file. This should not be called directly fr om //! Load an image from a file into AzAltimuthal coordinates. This sh ould not be called directly from
//! scripts because it is not thread safe. Instead use the similarl y //! scripts because it is not thread safe. Instead use the similarl y
//! named function in the core scripting object. //! named function in the core scripting object.
//! @param id a string identifier for the image //! @param id a string identifier for the image
//! @param filename the name of the image file to load. Will be //! @param filename the name of the image file to load. Will be
//! searched for using StelFileMgr, so partial names are fine. //! searched for using StelFileMgr, so partial names are fine.
//! @param alt0 altitude angle of corner 0 in degrees //! @param alt0 altitude angle of corner 0 in degrees
//! @param azi0 azimuth angle of corner 0 in degrees //! @param azi0 azimuth angle of corner 0 in degrees
//! @param alt1 altitude angle of corner 1 in degrees //! @param alt1 altitude angle of corner 1 in degrees
//! @param azi1 azimuth angle of corner 1 in degrees //! @param azi1 azimuth angle of corner 1 in degrees
//! @param alt2 altitude angle of corner 2 in degrees //! @param alt2 altitude angle of corner 2 in degrees
//! @param azi2 azimuth angle of corner 2 in degrees //! @param azi2 azimuth angle of corner 2 in degrees
//! @param alt3 altitude angle of corner 3 in degrees //! @param alt3 altitude angle of corner 3 in degrees
//! @param azi3 azimuth angle of corner 3 in degrees //! @param azi3 azimuth angle of corner 3 in degrees
//! @param minRes the minimum resolution setting for the image //! @param minRes the minimum resolution setting for the image
//! @param maxBright the maximum brightness setting for the image //! @param maxBright the maximum brightness setting for the image
//! @param visible initial visibility setting //! @param visible initial visibility setting
//! @deprecated since 2017-03 (inconsistent parameter order)! Use lo
adSkyImage(...., StelCore::FrameAzAlt) instead!
//! @todo remove before 0.16
bool loadSkyImageAltAz(const QString& id, const QString& filename, bool loadSkyImageAltAz(const QString& id, const QString& filename,
double alt0, double azi0, double alt0, double azi0,
double alt1, double azi1, double alt1, double azi1,
double alt2, double azi2, double alt2, double azi2,
double alt3, double azi3, double alt3, double azi3,
double minRes, double maxBright, b ool visible); double minRes, double maxBright, b ool visible);
//! Decide to show or not to show a layer by it's ID. //! Decide to show or not to show a layer by its ID.
//! @param id the id of the layer whose status is to be changed. //! @param id the id of the layer whose status is to be changed.
//! @param b the new shown value: //! @param b the new shown value:
//! - true means the specified image will be shown. //! - true means the specified image will be shown.
//! - false means the specified image will not be shown. //! - false means the specified image will not be shown.
void showLayer(const QString& id, bool b); void showLayer(const QString& id, bool b);
//! Get the current shown status of a specified image. //! Get the current shown status of a specified image.
//! @param id the ID of the image whose status is desired. //! @param id the ID of the image whose status is desired.
//! @return the current shown status of the specified image: //! @return the current shown status of the specified image:
//! - true means the specified image is currently shown. //! - true means the specified image is currently shown.
//! - false means the specified image is currently not shown. //! - false means the specified image is currently not shown.
 End of changes. 8 change blocks. 
22 lines changed or deleted 44 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/