Stellarium  HEAD
Signals | Public Member Functions
StelSkyLayer Class Referenceabstract

Abstract class defining the API to implement for all sky layers. More...

#include <StelSkyLayer.hpp>

Signals

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...
 

Public Member Functions

 StelSkyLayer (QObject *parent=Q_NULLPTR)
 
virtual void draw (StelCore *core, StelPainter &sPainter, float opacity=1.)=0
 Draws the content of the layer.
 
virtual QString getShortName () const =0
 Return the short name to display in the loading bar.
 
virtual QString getShortServerCredits () const
 Return the short server name to display in the loading bar.
 
virtual QString getKeyHint () const
 Return a hint on which key to use for referencing this layer. More...
 
virtual QString getLayerDescriptionHtml () const
 Return a human readable description of the layer with e.g. More...
 
void setFrameType (StelCore::FrameType ft)
 Set the reference frame type.
 
StelCore::FrameType getFrameType ()
 Get the reference frame type.
 

Detailed Description

Abstract class defining the API to implement for all sky layers.

A sky layer is a graphical layer containing images or polygons displayed in the sky. The StelSkyLayerMgr allows to set the display order for layers, as well as opacity.

Member Function Documentation

◆ getKeyHint()

virtual QString StelSkyLayer::getKeyHint ( ) const
inlinevirtual

Return a hint on which key to use for referencing this layer.

Note that the key effectively used may be different.

◆ getLayerDescriptionHtml()

virtual QString StelSkyLayer::getLayerDescriptionHtml ( ) const
inlinevirtual

Return a human readable description of the layer with e.g.

links and copyrights.

Reimplemented in StelSkyImageTile.

◆ loadingStateChanged

void StelSkyLayer::loadingStateChanged ( bool  b)
signal

Emitted when loading of data started or stopped.

Parameters
btrue if data loading started, false if finished.

◆ percentLoadedChanged

void StelSkyLayer::percentLoadedChanged ( int  percentage)
signal

Emitted when the percentage of loading tiles/tiles to be displayed changed.

Parameters
percentagethe percentage of loaded data.