Stellarium  0.19.0
Public Types | Signals | Public Member Functions | Static Public Member Functions | Properties | Friends
HipsSurvey Class Reference

Public Types

typedef std::function< void(const QVector< Vec3d > &verts, const QVector< Vec2f > &tex, const QVector< uint16_t > &indices)> DrawCallback
 

Signals

void propertiesChanged (void)
 
void statusChanged (void)
 
void visibleChanged (bool)
 

Public Member Functions

 HipsSurvey (const QString &url, double releaseDate=0.0)
 Create a new HipsSurvey from its url. More...
 
bool isVisible () const
 Get whether the survey is visible.
 
void setVisible (bool value)
 Define whether the survey should be visible.
 
float getInterstate () const
 
void draw (StelPainter *sPainter, double angle=2.0 *M_PI, DrawCallback callback=Q_NULLPTR)
 Render the survey. More...
 
const QString & getUrl () const
 Return the source URL of the survey.
 
const QString getFrame () const
 Return the frame name of the survey.
 
bool isLoading (void) const
 Get whether the survey is still loading.
 
bool isPlanetarySurvey (void) const
 

Static Public Member Functions

static QList< HipsSurveyP > parseHipslist (const QString &data)
 Parse a hipslist file into a list of surveys.
 

Properties

QString url
 
QJsonObject properties
 
bool isLoading
 
bool visible
 
QString planet
 The name of the planet the survey is attached to, or empty if this is a skysurvey.
 

Friends

class HipsMgr
 

Constructor & Destructor Documentation

◆ HipsSurvey()

HipsSurvey::HipsSurvey ( const QString &  url,
double  releaseDate = 0.0 
)
Parameters
urlThe location of the survey.
releaseDateIf known the UTC JD release date of the survey. Used for cache busting.

Member Function Documentation

◆ draw()

void HipsSurvey::draw ( StelPainter sPainter,
double  angle = 2.0 *M_PI,
DrawCallback  callback = Q_NULLPTR 
)
Parameters
sPainterthe painter to use.
angletotal visible angle of the survey in radians. This is used to optimize the rendering of planet surveys. Should be set to 2 pi for sky surveys.
callbackif set this will be called for each visible tile, and the callback should do it rendering itself. If set to Q_NULLPTR, the function will draw the tiles using the default shader.