Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Base class for any polygon with a fixed position in the sky. More...
#include <StelSkyPolygon.hpp>
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< SphericalConvexPolygon > | skyConvexPolygons |
Direction of the vertices of the convex hull in ICRS frame. |
Base class for any polygon with a fixed position in the sky.
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.
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.
DataSetCredits StelSkyPolygon::dataSetCredits [protected] |
The credits for the data set.
float StelSkyPolygon::minResolution [protected] |
Minimum resolution at which the next level needs to be loaded in degree/pixel.
ServerCredits StelSkyPolygon::serverCredits [protected] |
The credits of the server where this data come from.
QList<SphericalConvexPolygon> StelSkyPolygon::skyConvexPolygons [protected] |
Direction of the vertices of the convex hull in ICRS frame.