![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
#include <StelSkyImageTile.hpp>
Inherits MultiLevelJsonBase.
Public Member Functions | |
StelSkyImageTile () | |
StelSkyImageTile (const QString &url, StelSkyImageTile *parent=NULL) | |
StelSkyImageTile (const QVariantMap &map, StelSkyImageTile *parent) | |
~StelSkyImageTile () | |
void | draw (StelCore *core, StelPainter &sPainter, float opacity=1.) |
DataSetCredits | getDataSetCredits () const |
ServerCredits | getServerCredits () const |
bool | isReadyToDisplay () const |
QVariantMap | toQVariantMap () const |
QString | getAbsoluteImageURI () const |
virtual QString | getLayerDescriptionHtml () const |
Protected Member Functions | |
virtual void | loadFromQVariantMap (const QVariantMap &map) |
Protected Attributes | |
ServerCredits | serverCredits |
DataSetCredits | dataSetCredits |
QString | absoluteImageURI |
float | luminance |
bool | alphaBlend |
bool | noTexture |
QList< SphericalRegionP > | skyConvexPolygons |
StelTextureSP | tex |
float | minResolution |
StelSkyImageTile::StelSkyImageTile | ( | ) |
Default constructor.
StelSkyImageTile::StelSkyImageTile | ( | const QString & | url, | |
StelSkyImageTile * | parent = NULL | |||
) |
Constructor.
StelSkyImageTile::StelSkyImageTile | ( | const QVariantMap & | map, | |
StelSkyImageTile * | parent | |||
) |
Constructor.
StelSkyImageTile::~StelSkyImageTile | ( | ) |
Destructor.
void StelSkyImageTile::draw | ( | StelCore * | core, | |
StelPainter & | sPainter, | |||
float | opacity = 1. | |||
) | [virtual] |
DataSetCredits StelSkyImageTile::getDataSetCredits | ( | ) | const [inline] |
Return the dataset credits to use in the progress bar.
ServerCredits StelSkyImageTile::getServerCredits | ( | ) | const [inline] |
Return the server credits to use in the progress bar.
bool StelSkyImageTile::isReadyToDisplay | ( | ) | const |
Return true if the tile is fully loaded and can be displayed.
QVariantMap StelSkyImageTile::toQVariantMap | ( | ) | const |
Convert the image informations to a map following the JSON structure.
It can be saved as JSON using the StelJsonParser methods.
Reimplemented from MultiLevelJsonBase.
QString StelSkyImageTile::getAbsoluteImageURI | ( | ) | const [inline] |
Return the absolute path/URL to the image file.
virtual QString StelSkyImageTile::getLayerDescriptionHtml | ( | ) | const [inline, virtual] |
Return an HTML description of the image to be displayed in the GUI.
Reimplemented from StelSkyLayer.
virtual void StelSkyImageTile::loadFromQVariantMap | ( | const QVariantMap & | map | ) | [protected, virtual] |
Reimplement the abstract method.
Load the tile from a valid QVariantMap.
Implements MultiLevelJsonBase.
ServerCredits StelSkyImageTile::serverCredits [protected] |
The credits of the server where this data come from.
DataSetCredits StelSkyImageTile::dataSetCredits [protected] |
The credits for the data set.
QString StelSkyImageTile::absoluteImageURI [protected] |
URL where the image is located.
float StelSkyImageTile::luminance [protected] |
The image luminance in cd/m^2.
bool StelSkyImageTile::alphaBlend [protected] |
Whether the texture must be blended.
bool StelSkyImageTile::noTexture [protected] |
True if the tile is just a list of other tiles without texture for itself.
QList<SphericalRegionP> StelSkyImageTile::skyConvexPolygons [protected] |
list of all the polygons.
StelTextureSP StelSkyImageTile::tex [protected] |
The texture of the tile.
float StelSkyImageTile::minResolution [protected] |
Minimum resolution of the data of the texture in degree/pixel.