Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · 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, class StelRenderer *renderer, StelProjectorP projector, 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.

Definition at line 31 of file StelSkyPolygon.hpp.


Constructor & Destructor Documentation

StelSkyPolygon::StelSkyPolygon (  )  [inline]

Default constructor.

Definition at line 37 of file StelSkyPolygon.hpp.

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,
class StelRenderer renderer,
StelProjectorP  projector,
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.

Definition at line 51 of file StelSkyPolygon.hpp.

ServerCredits StelSkyPolygon::getServerCredits (  )  const [inline]

Return the server credits to use in the progress bar.

Definition at line 54 of file StelSkyPolygon.hpp.

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.

Definition at line 68 of file StelSkyPolygon.hpp.

float StelSkyPolygon::minResolution [protected]

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

Definition at line 62 of file StelSkyPolygon.hpp.

The credits of the server where this data come from.

Definition at line 65 of file StelSkyPolygon.hpp.

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

Definition at line 71 of file StelSkyPolygon.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3