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>

Inherits MultiLevelJsonBase.

List of all members.

Public Member Functions

 StelSkyPolygon ()
 StelSkyPolygon (const QString &url, StelSkyPolygon *parent=NULL)
 StelSkyPolygon (const QVariantMap &map, StelSkyPolygon *parent)
 ~StelSkyPolygon ()
void draw (StelCore *core, StelPainter &sPainter, float opacity=1.)
DataSetCredits getDataSetCredits () const
ServerCredits getServerCredits () const
QVariantMap toQVariantMap () const

Protected Member Functions

virtual void loadFromQVariantMap (const QVariantMap &map)

Protected Attributes

float minResolution
ServerCredits serverCredits
DataSetCredits dataSetCredits
QList< SphericalConvexPolygonskyConvexPolygons


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.

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.

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

Load the polygon from a valid QVariantMap.

Implements MultiLevelJsonBase.


Member Data Documentation

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.

The credits for the data set.

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


Generated on Wed Jun 2 13:11:14 2010 for Stellarium by  doxygen 1.5.5