kstars
#include <skyglpainter.h>

Public Member Functions | |
SkyGLPainter (QGLWidget *widget) | |
virtual void | begin () |
virtual bool | drawDeepSkyObject (DeepSkyObject *obj, bool drawImage=false) |
virtual void | drawFlags () |
virtual void | drawHorizon (bool filled, SkyPoint *labelPoint=0, bool *drawLabel=0) |
virtual void | drawObservingList (const QList< SkyObject * > &obs) |
virtual bool | drawPlanet (KSPlanetBase *planet) |
virtual bool | drawPointSource (SkyPoint *loc, float mag, char sp= 'A') |
virtual void | drawSatellite (Satellite *sat) |
virtual void | drawSkyBackground () |
virtual void | drawSkyLine (SkyPoint *a, SkyPoint *b) |
virtual void | drawSkyPolygon (LineList *list) |
virtual void | drawSkyPolyline (LineList *list, SkipList *skipList=0, LineListLabel *label=0) |
virtual bool | drawSupernova (Supernova *sup) |
void | drawText (int x, int y, const QString text, QFont font, QColor color) |
virtual void | end () |
virtual void | setBrush (const QBrush &brush) |
virtual void | setPen (const QPen &pen) |
![]() | |
SkyPainter () | |
virtual | ~SkyPainter () |
void | setSizeMagLimit (float sizeMagLim) |
float | starWidth (float mag) const |
Additional Inherited Members | |
![]() | |
SkyMap * | m_sm |
Detailed Description
Definition at line 33 of file skyglpainter.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 63 of file skyglpainter.cpp.
Member Function Documentation
|
virtual |
Begin painting.
- Note
- this function must be called before painting anything.
- See also
- end()
Implements SkyPainter.
Definition at line 645 of file skyglpainter.cpp.
|
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
Implements SkyPainter.
Definition at line 276 of file skyglpainter.cpp.
|
virtual |
|
virtual |
Implements SkyPainter.
Definition at line 432 of file skyglpainter.cpp.
Draw the symbols for the observing list.
- Parameters
-
obs the oberving list
Implements SkyPainter.
Definition at line 508 of file skyglpainter.cpp.
|
virtual |
Draw a planet.
- Parameters
-
planet the planet to draw
- Returns
- true if it was drawn
Implements SkyPainter.
Definition at line 232 of file skyglpainter.cpp.
|
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
Implements SkyPainter.
Definition at line 340 of file skyglpainter.cpp.
|
virtual |
|
virtual |
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.
Implements SkyPainter.
Definition at line 602 of file skyglpainter.cpp.
|
virtual |
Draw a polygon in the sky.
- Parameters
-
list a list of points in the sky
- See also
- drawSkyPolyline()
Implements SkyPainter.
Definition at line 347 of file skyglpainter.cpp.
|
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.
Implements SkyPainter.
Definition at line 452 of file skyglpainter.cpp.
|
virtual |
void SkyGLPainter::drawText | ( | int | x, |
int | y, | ||
const QString | text, | ||
QFont | font, | ||
QColor | color | ||
) |
Definition at line 563 of file skyglpainter.cpp.
|
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();
Implements SkyPainter.
Definition at line 638 of file skyglpainter.cpp.
|
virtual |
Set the brush of the painter.
Implements SkyPainter.
Definition at line 675 of file skyglpainter.cpp.
|
virtual |
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.