Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelSkyImageTile.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:36:09 2014 Кодировка: Поисковые слова: mercury surface |
![]() |
Stellarium 0.12.3
|
Base class for any astro image with a fixed position. More...
#include <StelSkyImageTile.hpp>
Public Member Functions | |
StelSkyImageTile () | |
Default constructor. More... | |
StelSkyImageTile (const QString &url, StelSkyImageTile *parent=NULL) | |
Constructor. More... | |
StelSkyImageTile (const QVariantMap &map, StelSkyImageTile *parent) | |
Constructor. More... | |
~StelSkyImageTile () | |
Destructor. More... | |
void | draw (StelCore *core, class StelRenderer *renderer, StelProjectorP projector, float opacity=1.) |
Draw the image on the screen. More... | |
DataSetCredits | getDataSetCredits () const |
Return the dataset credits to use in the progress bar. More... | |
ServerCredits | getServerCredits () const |
Return the server credits to use in the progress bar. More... | |
bool | isReadyToDisplay () const |
Return true if the tile is fully loaded and can be displayed. More... | |
QVariantMap | toQVariantMap () const |
Convert the image informations to a map following the JSON structure. More... | |
QString | getAbsoluteImageURI () const |
Return the absolute path/URL to the image file. More... | |
virtual QString | getLayerDescriptionHtml () const |
Return an HTML description of the image to be displayed in the GUI. More... | |
![]() | |
MultiLevelJsonBase (MultiLevelJsonBase *parent=NULL) | |
Default constructor. More... | |
void | initFromUrl (const QString &url) |
Init the element from a URL. More... | |
void | initFromQVariantMap (const QVariantMap &map) |
Init the element from a QVariantMap. More... | |
~MultiLevelJsonBase () | |
Destructor. More... | |
QString | getShortName () const |
Return the short name for this image to be used in the loading bar. More... | |
bool | hasErrorOccured () const |
Return true if an error occured while loading the data. More... | |
int | getLevel () const |
Get the depth level in the tree. More... | |
QVariantMap | toQVariantMap () const |
Convert the image informations to a map following the JSON structure. More... | |
void | scheduleChildsDeletion () |
Schedule a deletion for all the childs. More... | |
![]() | |
StelSkyLayer (QObject *parent=NULL) | |
virtual QString | getShortServerCredits () const |
Return the short server name to display in the loading bar. More... | |
virtual QString | getKeyHint () const |
Return a hint on which key to use for referencing this layer. More... | |
void | setFrameType (StelCore::FrameType ft) |
Set the reference frame type. More... | |
StelCore::FrameType | getFrameType () |
Get the reference frame type. More... | |
Protected Member Functions | |
virtual void | loadFromQVariantMap (const QVariantMap &map) |
Reimplement the abstract method. More... | |
![]() | |
bool | isDeletionScheduled () const |
Return true if a deletion is currently scheduled. More... | |
void | updatePercent (int tot, int numToBeLoaded) |
void | deleteUnusedSubTiles () |
Delete all the subtiles which were not displayed since more than lastDrawTrigger seconds. More... | |
void | cancelDeletion () |
If a deletion was scheduled, cancel it. More... | |
Protected Attributes | |
ServerCredits | serverCredits |
The credits of the server where this data come from. More... | |
DataSetCredits | dataSetCredits |
The credits for the data set. More... | |
QString | absoluteImageURI |
URL where the image is located. More... | |
float | luminance |
The image luminance in cd/m^2. More... | |
bool | alphaBlend |
Whether the texture must be blended. More... | |
bool | noTexture |
True if the tile is just a list of other tiles without texture for itself. More... | |
QList< SphericalRegionP > | skyConvexPolygons |
list of all the polygons. More... | |
class StelTextureNew * | tex |
The texture of the tile. More... | |
float | minResolution |
Minimum resolution of the data of the texture in degree/pixel. More... | |
![]() | |
QString | shortName |
The very short name for this image set to be used in loading bar. More... | |
QString | baseUrl |
Base URL to prefix to relative URL. More... | |
QString | contructorUrl |
The relative URL passed to the constructor. More... | |
QList< MultiLevelJsonBase * > | subTiles |
The list of all the created subtiles for this tile. More... | |
bool | errorOccured |
Set to true if an error occured with this tile and it should not be displayed. More... | |
bool | downloading |
true if the JSON descriptor file is currently downloading More... | |
Additional Inherited Members | |
![]() | |
void | loadingStateChanged (bool b) |
Emitted when loading of data started or stopped. More... | |
void | percentLoadedChanged (int percentage) |
Emitted when the percentage of loading tiles/tiles to be displayed changed. More... | |
![]() | |
static QVariantMap | loadFromJSON (QIODevice &input, bool qZcompressed=false, bool gzCompressed=false) |
Load the element information from a JSON file. More... | |
Base class for any astro image with a fixed position.
Definition at line 62 of file StelSkyImageTile.hpp.
StelSkyImageTile::StelSkyImageTile | ( | ) |
Default constructor.
StelSkyImageTile::StelSkyImageTile | ( | const QString & | url, |
StelSkyImageTile * | parent = NULL |
||
) |
Constructor.
StelSkyImageTile::StelSkyImageTile | ( | const QVariantMap & | map, |
StelSkyImageTile * | parent | ||
) |
Constructor.
StelSkyImageTile::~StelSkyImageTile | ( | ) |
Destructor.
|
virtual |
Draw the image on the screen.
Implements StelSkyLayer.
|
inline |
Return the absolute path/URL to the image file.
Definition at line 97 of file StelSkyImageTile.hpp.
|
inline |
Return the dataset credits to use in the progress bar.
Definition at line 84 of file StelSkyImageTile.hpp.
|
inlinevirtual |
Return an HTML description of the image to be displayed in the GUI.
Reimplemented from StelSkyLayer.
Definition at line 100 of file StelSkyImageTile.hpp.
|
inline |
Return the server credits to use in the progress bar.
Definition at line 87 of file StelSkyImageTile.hpp.
bool StelSkyImageTile::isReadyToDisplay | ( | ) | const |
Return true if the tile is fully loaded and can be displayed.
|
protectedvirtual |
Reimplement the abstract method.
Load the tile from a valid QVariantMap.
Implements MultiLevelJsonBase.
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.
|
protected |
URL where the image is located.
Definition at line 114 of file StelSkyImageTile.hpp.
|
protected |
Whether the texture must be blended.
Definition at line 120 of file StelSkyImageTile.hpp.
|
protected |
The credits for the data set.
Definition at line 111 of file StelSkyImageTile.hpp.
|
protected |
The image luminance in cd/m^2.
Definition at line 117 of file StelSkyImageTile.hpp.
|
protected |
Minimum resolution of the data of the texture in degree/pixel.
Definition at line 132 of file StelSkyImageTile.hpp.
|
protected |
True if the tile is just a list of other tiles without texture for itself.
Definition at line 123 of file StelSkyImageTile.hpp.
|
protected |
The credits of the server where this data come from.
Definition at line 108 of file StelSkyImageTile.hpp.
|
protected |
list of all the polygons.
Definition at line 126 of file StelSkyImageTile.hpp.
|
protected |
The texture of the tile.
Definition at line 129 of file StelSkyImageTile.hpp.