Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

StelSkyImageTile Class Reference

Base class for any astro image with a fixed position. More...

#include <StelSkyImageTile.hpp>

List of all members.

Public Member Functions

 StelSkyImageTile ()
 Default constructor.
 StelSkyImageTile (const QString &url, StelSkyImageTile *parent=NULL)
 Constructor.
 StelSkyImageTile (const QVariantMap &map, StelSkyImageTile *parent)
 Constructor.
 ~StelSkyImageTile ()
 Destructor.
void draw (StelCore *core, class StelRenderer *renderer, StelProjectorP projector, float opacity=1.)
 Draw the image on the screen.
DataSetCredits getDataSetCredits () const
 Return the dataset credits to use in the progress bar.
ServerCredits getServerCredits () const
 Return the server credits to use in the progress bar.
bool isReadyToDisplay () const
 Return true if the tile is fully loaded and can be displayed.
QVariantMap toQVariantMap () const
 Convert the image informations to a map following the JSON structure.
QString getAbsoluteImageURI () const
 Return the absolute path/URL to the image file.
virtual QString getLayerDescriptionHtml () const
 Return an HTML description of the image to be displayed in the GUI.

Protected Member Functions

virtual void loadFromQVariantMap (const QVariantMap &map)
 Reimplement the abstract method.

Protected Attributes

ServerCredits serverCredits
 The credits of the server where this data come from.
DataSetCredits dataSetCredits
 The credits for the data set.
QString absoluteImageURI
 URL where the image is located.
float luminance
 The image luminance in cd/m^2.
bool alphaBlend
 Whether the texture must be blended.
bool noTexture
 True if the tile is just a list of other tiles without texture for itself.
QList< SphericalRegionPskyConvexPolygons
 list of all the polygons.
class StelTextureNewtex
 The texture of the tile.
float minResolution
 Minimum resolution of the data of the texture in degree/pixel.

Detailed Description

Base class for any astro image with a fixed position.

Definition at line 62 of file StelSkyImageTile.hpp.


Constructor & Destructor Documentation

StelSkyImageTile::StelSkyImageTile (  ) 

Default constructor.

StelSkyImageTile::StelSkyImageTile ( const QString &  url,
StelSkyImageTile parent = NULL 
)

Constructor.

StelSkyImageTile::StelSkyImageTile ( const QVariantMap &  map,
StelSkyImageTile parent 
)

Constructor.

StelSkyImageTile::~StelSkyImageTile (  ) 

Destructor.


Member Function Documentation

void StelSkyImageTile::draw ( StelCore core,
class StelRenderer renderer,
StelProjectorP  projector,
float  opacity = 1. 
) [virtual]

Draw the image on the screen.

Implements StelSkyLayer.

QString StelSkyImageTile::getAbsoluteImageURI (  )  const [inline]

Return the absolute path/URL to the image file.

Definition at line 97 of file StelSkyImageTile.hpp.

DataSetCredits StelSkyImageTile::getDataSetCredits (  )  const [inline]

Return the dataset credits to use in the progress bar.

Definition at line 84 of file StelSkyImageTile.hpp.

virtual QString StelSkyImageTile::getLayerDescriptionHtml (  )  const [inline, virtual]

Return an HTML description of the image to be displayed in the GUI.

Reimplemented from StelSkyLayer.

Definition at line 100 of file StelSkyImageTile.hpp.

ServerCredits StelSkyImageTile::getServerCredits (  )  const [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.

virtual void StelSkyImageTile::loadFromQVariantMap ( const QVariantMap &  map  )  [protected, virtual]

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.

Reimplemented from MultiLevelJsonBase.


Member Data Documentation

URL where the image is located.

Definition at line 114 of file StelSkyImageTile.hpp.

bool StelSkyImageTile::alphaBlend [protected]

Whether the texture must be blended.

Definition at line 120 of file StelSkyImageTile.hpp.

The credits for the data set.

Definition at line 111 of file StelSkyImageTile.hpp.

float StelSkyImageTile::luminance [protected]

The image luminance in cd/m^2.

Definition at line 117 of file StelSkyImageTile.hpp.

Minimum resolution of the data of the texture in degree/pixel.

Definition at line 132 of file StelSkyImageTile.hpp.

bool StelSkyImageTile::noTexture [protected]

True if the tile is just a list of other tiles without texture for itself.

Definition at line 123 of file StelSkyImageTile.hpp.

The credits of the server where this data come from.

Definition at line 108 of file StelSkyImageTile.hpp.

list of all the polygons.

Definition at line 126 of file StelSkyImageTile.hpp.

The texture of the tile.

Definition at line 129 of file StelSkyImageTile.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3