21 #ifndef _SKYLABELMGR_HPP_ 22 #define _SKYLABELMGR_HPP_ 25 #include "StelFader.hpp" 26 #include "StelModule.hpp" 27 #include "StelObject.hpp" 29 #include "VecMath.hpp" 64 virtual void update(
double deltaTime);
85 const QString& objectName,
88 const QString& fontColor=
"#999999",
89 const QString& side=
"E",
90 double labelDistance=-1.0,
91 const QString& style=
"TextOnly");
105 const QString& fontColor=
"#999999");
119 const QString& fontColor=
"#999999");
135 QVector<class StelLabel*> allLabels;
138 #endif // _SKYLABELMGR_HPP_ int labelObject(const QString &text, const QString &objectName, bool visible=true, float fontSize=14, const QString &fontColor="#999999", const QString &side="E", double labelDistance=-1.0, const QString &style="TextOnly")
Create a label which is attached to a StelObject.
bool deleteLabel(int id)
Delete a label by the ID which was returned from addLabel...
virtual void update(double deltaTime)
Update time-dependent parts of the module.
void setLabelText(int id, const QString &newText)
set text of label identified by id to be newText
void setLabelShow(int id, bool show)
set a label identified by id to be shown or not
Main class for Stellarium core processing.
virtual double getCallOrder(StelModuleActionName actionName) const
Defines the order in which the various modules are drawn.
virtual void draw(StelCore *core)
Draw user labels.
Define the StelObjectP type.
Provides functions for performing openGL drawing operations.
bool getLabelShow(int id)
find out if a label identified by id is presently shown
int labelHorizon(const QString &text, float az, float alt, bool visible=true, float fontSize=14, const QString &fontColor="#999999")
Create a label in azimuthal coordinate system.
int deleteAllLabels(void)
Delete all labels.
StelModuleActionName
Define the possible action for which an order is defined.
LabelMgr()
Construct a LabelMgr object.
int labelScreen(const QString &text, int x, int y, bool visible=true, float fontSize=14, const QString &fontColor="#999999")
Create a label at fixed screen coordinates.
virtual void init()
Initialize the LabelMgr object.
Allows for creation of custom labels on objects or coordinates.
This is the common base class for all the main components of stellarium.