Kstars
constellationnamescomponent.cpp
21 ConstellationNamesComponent::ConstellationNamesComponent(SkyComposite *parent, CultureList *cultures)
96 return Options::showCNames() && !(Options::hideOnSlew() && Options::hideCNames() && SkyMap::IsSlewing());
Definition: ksfilereader.h:53
int toInt(bool *ok, int base) const const
Definition: skylabeler.h:98
QFuture< T > run(Function function,...)
QStringRef midRef(int position, int n) const const
bool open(const QString &fname)
opens the file fname from the QStandardPaths::AppLocalDataLocation directory and uses that file for t...
Definition: ksfilereader.cpp:31
QString trimmed() const const
Definition: kstarsdata.h:71
void resetFont()
sets the font in SkyLabeler and in psky back to the zoom dependent value that was set in reset().
Definition: skylabeler.cpp:222
Definition: skycomposite.h:29
void setPen(const QPen &pen)
sets the pen used for drawing labels on the sky.
Definition: skylabeler.cpp:197
void EquatorialToHorizontal(const CachingDms *LST, const CachingDms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates,...
Definition: skypoint.cpp:77
virtual void emitProgressText(const QString &message)
Emit signal about progress.
Definition: skycomponent.cpp:18
bool onScreen(const QPointF &p) const
Check whether the projected point is on-screen.
Definition: projector.cpp:98
virtual void setH(const double &x)
Sets floating-point value of angle, in hours.
Definition: dms.h:210
QString i18n(const char *text, const TYPE &arg...)
void setX(qreal x)
Definition: culturelist.h:16
bool drawGuideLabel(QPointF &o, const QString &text, double angle)
Tries to draw the text at the position and angle specified.
Definition: skylabeler.cpp:112
void appendListObject(SkyObject *object)
Add an object to the Object list.
Definition: listcomponent.cpp:37
int length() const const
void update(KSNumbers *num) override
we need a custom routine (for now) so we don't precess the locations of the names.
Definition: constellationnamescomponent.cpp:103
Definition: projector.h:56
void draw(SkyPainter *skyp) override
Draw constellation names on the sky map.
Definition: constellationnamescomponent.cpp:112
GeoCoordinates geo(const QVariant &location)
void setFont(const QFont &font)
tells the labeler the font you will be using so it can figure out the height and width of the labels.
Definition: skylabeler.cpp:187
ConstellationNamesComponent(SkyComposite *parent, CultureList *cultures)
Constructor parent Pointer to the parent SkyComposite object.
Definition: constellationnamescomponent.cpp:21
qreal x() const const
QString name(StandardShortcut id)
Definition: listcomponent.h:23
QString readLine()
increments the line number and returns the next line from the file as a QString.
Definition: ksfilereader.h:105
QPointF toScreen(const SkyPoint *o, bool oRefract=true, bool *onVisibleHemisphere=nullptr) const
This is exactly the same as toScreenVec but it returns a QPointF.
Definition: projector.cpp:93
const QChar at(int position) const const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QByteArray toLocal8Bit() const const
bool selected() override
Definition: constellationnamescomponent.cpp:93
QString mid(int position, int n) const const
bool checkVisibility(const SkyPoint *p) const
Determine if the skypoint p is likely to be visible in the display window.
Definition: projector.cpp:183
char * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:58:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:58:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.