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

StelSkyPolygon Class Reference

Base class for any polygon with a fixed position in the sky. More...

#include <StelSkyPolygon.hpp>

List of all members.

Public Member Functions

 StelSkyPolygon ()
 Default constructor.
 StelSkyPolygon (const QString &url, StelSkyPolygon *parent=NULL)
 Constructor.
 StelSkyPolygon (const QVariantMap &map, StelSkyPolygon *parent)
 Constructor.
 ~StelSkyPolygon ()
 Destructor.
void draw (StelCore *core, StelPainter &sPainter, 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.
QVariantMap toQVariantMap () const
 Convert the polygon informations to a map following the JSON structure.

Protected Member Functions

virtual void loadFromQVariantMap (const QVariantMap &map)
 Load the polygon from a valid QVariantMap.

Protected Attributes

float minResolution
 Minimum resolution at which the next level needs to be loaded in degree/pixel.
ServerCredits serverCredits
 The credits of the server where this data come from.
DataSetCredits dataSetCredits
 The credits for the data set.
QList< SphericalConvexPolygonskyConvexPolygons
 Direction of the vertices of the convex hull in ICRS frame.

Detailed Description

Base class for any polygon with a fixed position in the sky.


Constructor & Destructor Documentation

StelSkyPolygon::StelSkyPolygon (  )  [inline]

Default constructor.

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

Constructor.

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

Constructor.

StelSkyPolygon::~StelSkyPolygon (  ) 

Destructor.


Member Function Documentation

void StelSkyPolygon::draw ( StelCore core,
StelPainter sPainter,
float  opacity = 1. 
) [virtual]

Draw the image on the screen.

Implements StelSkyLayer.

DataSetCredits StelSkyPolygon::getDataSetCredits (  )  const [inline]

Return the dataset credits to use in the progress bar.

ServerCredits StelSkyPolygon::getServerCredits (  )  const [inline]

Return the server credits to use in the progress bar.

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

Load the polygon from a valid QVariantMap.

Implements MultiLevelJsonBase.

QVariantMap StelSkyPolygon::toQVariantMap (  )  const

Convert the polygon informations to a map following the JSON structure.

It can be saved as JSON using the StelJsonParser methods.

Reimplemented from MultiLevelJsonBase.


Member Data Documentation

The credits for the data set.

float StelSkyPolygon::minResolution [protected]

Minimum resolution at which the next level needs to be loaded in degree/pixel.

The credits of the server where this data come from.

Direction of the vertices of the convex hull in ICRS frame.

Generated on Sat Aug 25 22:13:33 2012 for Stellarium by  doxygen 1.6.3