kstars
#include <skypainter.h>

| Public Member Functions | |
| SkyPainter () | |
| virtual | ~SkyPainter () | 
| virtual void | begin ()=0 | 
| virtual bool | drawDeepSkyObject (DeepSkyObject *obj, bool drawImage=false)=0 | 
| virtual void | drawFlags ()=0 | 
| virtual void | drawHorizon (bool filled, SkyPoint *labelPoint=0, bool *drawLabel=0)=0 | 
| virtual void | drawObservingList (const QList< SkyObject * > &obs)=0 | 
| virtual bool | drawPlanet (KSPlanetBase *planet)=0 | 
| virtual bool | drawPointSource (SkyPoint *loc, float mag, char sp= 'A')=0 | 
| virtual void | drawSatellite (Satellite *sat)=0 | 
| virtual void | drawSkyBackground ()=0 | 
| virtual void | drawSkyLine (SkyPoint *a, SkyPoint *b)=0 | 
| virtual void | drawSkyPolygon (LineList *list)=0 | 
| virtual void | drawSkyPolyline (LineList *list, SkipList *skipList=0, LineListLabel *label=0)=0 | 
| virtual bool | drawSupernova (Supernova *sup)=0 | 
| virtual void | end ()=0 | 
| virtual void | setBrush (const QBrush &brush)=0 | 
| virtual void | setPen (const QPen &pen)=0 | 
| void | setSizeMagLimit (float sizeMagLim) | 
| float | starWidth (float mag) const | 
| Protected Attributes | |
| SkyMap * | m_sm | 
Detailed Description
Draws things on the sky, without regard to backend.
This class serves as an interface to draw objects onto the sky without worrying about whether we are using a QPainter or OpenGL.
Definition at line 47 of file skypainter.h.
Constructor & Destructor Documentation
| SkyPainter::SkyPainter | ( | ) | 
Constructor.
Definition at line 34 of file skypainter.cpp.
| 
 | virtual | 
Destructor.
Definition at line 40 of file skypainter.cpp.
Member Function Documentation
| 
 | pure virtual | 
Begin painting.
- Note
- this function must be called before painting anything.
- See also
- end()
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a deep sky object.
- Parameters
- 
  obj the object to draw drawImage if true, try to draw the image of the object 
- Returns
- true if it was drawn
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw flags.
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Implemented in SkyQPainter, and SkyGLPainter.
Draw the symbols for the observing list.
- Parameters
- 
  obs the oberving list 
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a planet.
- Parameters
- 
  planet the planet to draw 
- Returns
- true if it was drawn
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a point source (e.g., a star).
- Parameters
- 
  loc the location of the source in the sky mag the magnitude of the source sp the spectral class of the source 
- Returns
- true if a source was drawn
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a satellite.
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw the sky background.
Implemented in SkyQPainter, and SkyGLPainter.
Draw a line between points in the sky.
- Parameters
- 
  a the first point b the second point 
- Note
- this function will skip lines not on screen and clip lines that are only partially visible.
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a polygon in the sky.
- Parameters
- 
  list a list of points in the sky 
- See also
- drawSkyPolyline()
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a polyline in the sky.
- Parameters
- 
  list a list of points in the sky skipList a SkipList object used to control skipping line segments label a pointer to the label for this line 
- Note
- it's more efficient to use this than repeated calls to drawSkyLine(), because it avoids an extra points->size() -2 projections.
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Draw a Supernova.
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
End and finalize painting.
- Note
- this function must be called after painting anything.
- it is not guaranteed that anything will actually be drawn until end() is called.
- See also
- begin();
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Set the brush of the painter.
Implemented in SkyQPainter, and SkyGLPainter.
| 
 | pure virtual | 
Set the pen of the painter.
Implemented in SkyQPainter, and SkyGLPainter.
| void SkyPainter::setSizeMagLimit | ( | float | sizeMagLim | ) | 
Definition at line 45 of file skypainter.cpp.
| float SkyPainter::starWidth | ( | float | mag | ) | const | 
Get the width of a star of magnitude mag.
Definition at line 50 of file skypainter.cpp.
Member Data Documentation
| 
 | protected | 
Definition at line 158 of file skypainter.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference