• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
SkyGLPainter Class Reference

#include <skyglpainter.h>

Inheritance diagram for SkyGLPainter:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from SkyPainter
 SkyPainter ()
 
virtual ~SkyPainter ()
 
void setSizeMagLimit (float sizeMagLim)
 
float starWidth (float mag) const
 

Additional Inherited Members

- Protected Attributes inherited from SkyPainter
SkyMap * m_sm
 

Detailed Description

Definition at line 33 of file skyglpainter.h.

Constructor & Destructor Documentation

SkyGLPainter::SkyGLPainter ( QGLWidget *  widget)
explicit

Definition at line 63 of file skyglpainter.cpp.

Member Function Documentation

void SkyGLPainter::begin ( )
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.

bool SkyGLPainter::drawDeepSkyObject ( DeepSkyObject *  obj,
bool  drawImage = false 
)
virtual

Draw a deep sky object.

Parameters
objthe object to draw
drawImageif 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.

void SkyGLPainter::drawFlags ( )
virtual

Draw flags.

Implements SkyPainter.

Definition at line 527 of file skyglpainter.cpp.

void SkyGLPainter::drawHorizon ( bool  filled,
SkyPoint *  labelPoint = 0,
bool *  drawLabel = 0 
)
virtual

Implements SkyPainter.

Definition at line 432 of file skyglpainter.cpp.

void SkyGLPainter::drawObservingList ( const QList< SkyObject * > &  obs)
virtual

Draw the symbols for the observing list.

Parameters
obsthe oberving list

Implements SkyPainter.

Definition at line 508 of file skyglpainter.cpp.

bool SkyGLPainter::drawPlanet ( KSPlanetBase *  planet)
virtual

Draw a planet.

Parameters
planetthe planet to draw
Returns
true if it was drawn

Implements SkyPainter.

Definition at line 232 of file skyglpainter.cpp.

bool SkyGLPainter::drawPointSource ( SkyPoint *  loc,
float  mag,
char  sp = 'A' 
)
virtual

Draw a point source (e.g., a star).

Parameters
locthe location of the source in the sky
magthe magnitude of the source
spthe spectral class of the source
Returns
true if a source was drawn

Implements SkyPainter.

Definition at line 340 of file skyglpainter.cpp.

void SkyGLPainter::drawSatellite ( Satellite *  sat)
virtual

Draw a satellite.

Implements SkyPainter.

Definition at line 699 of file skyglpainter.cpp.

void SkyGLPainter::drawSkyBackground ( )
virtual

Draw the sky background.

Implements SkyPainter.

Definition at line 630 of file skyglpainter.cpp.

void SkyGLPainter::drawSkyLine ( SkyPoint *  a,
SkyPoint *  b 
)
virtual

Draw a line between points in the sky.

Parameters
athe first point
bthe 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.

void SkyGLPainter::drawSkyPolygon ( LineList *  list)
virtual

Draw a polygon in the sky.

Parameters
lista list of points in the sky
See also
drawSkyPolyline()

Implements SkyPainter.

Definition at line 347 of file skyglpainter.cpp.

void SkyGLPainter::drawSkyPolyline ( LineList *  list,
SkipList *  skipList = 0,
LineListLabel *  label = 0 
)
virtual

Draw a polyline in the sky.

Parameters
lista list of points in the sky
skipLista SkipList object used to control skipping line segments
labela 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.

bool SkyGLPainter::drawSupernova ( Supernova *  sup)
virtual

Draw a Supernova.

Implements SkyPainter.

Definition at line 739 of file skyglpainter.cpp.

void SkyGLPainter::drawText ( int  x,
int  y,
const QString  text,
QFont  font,
QColor  color 
)

Definition at line 563 of file skyglpainter.cpp.

void SkyGLPainter::end ( )
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.

void SkyGLPainter::setBrush ( const QBrush &  brush)
virtual

Set the brush of the painter.

Implements SkyPainter.

Definition at line 675 of file skyglpainter.cpp.

void SkyGLPainter::setPen ( const QPen &  pen)
virtual

Set the pen of the painter.

Implements SkyPainter.

Definition at line 685 of file skyglpainter.cpp.


The documentation for this class was generated from the following files:
  • skyglpainter.h
  • skyglpainter.cpp
This file is part of the KDE documentation.
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.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal