![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <LabelMgr.hpp>
Inherits StelLabel.
Public Types | |
enum | Style { TextOnly, Line } |
Public Member Functions | |
SkyLabel (const QString &text, StelObjectP bindObject, StelFont *font, Vec3f color, QString side="NE", double distance=-1.0, SkyLabel::Style style=TextOnly, double enclosureSize=0.0) | |
virtual bool | draw (StelCore *core, const StelPainter &sPainter) |
The object in question can be any existing StelObject or celestial coordinates.
enum SkyLabel::Style |
SkyLabel::SkyLabel | ( | const QString & | text, | |
StelObjectP | bindObject, | |||
StelFont * | font, | |||
Vec3f | color, | |||
QString | side = "NE" , |
|||
double | distance = -1.0 , |
|||
SkyLabel::Style | style = TextOnly , |
|||
double | enclosureSize = 0.0 | |||
) |
Constructor of a SkyLabel which is attached to an existing object.
text | the text which will be displayed | |
bindObject | a pointer to an existing object to which the label will be attached | |
font | a pointer the font to use for this label | |
color | choose a color for the label | |
side | which side of the object to draw the label, values N, S, E, W, NE, NW, SE, SW, C (C is centred on the object) | |
distance | the distance from the object to draw the label. If < 0.0, placement is automatic. | |
style | determines how the label is drawn | |
enclosureSize | determines the size of the enclosure for styles Box and Circle |
virtual bool SkyLabel::draw | ( | StelCore * | core, | |
const StelPainter & | sPainter | |||
) | [virtual] |
Draw the label on the sky.
core | the StelCore object | |
sPainter | the StelPainter to use for drawing operations |