Kstars
skymapdrawabstract.cpp
50SkyMapDrawAbstract::SkyMapDrawAbstract(SkyMap *sm) : m_KStarsData(KStarsData::Instance()), m_SkyMap(sm)
71 SkyPoint centerSkyPoint = SkyMap::Instance()->projector()->fromScreen(p.viewport().center(), KStarsData::Instance()->lst(),
74 double northRotation = SkyMap::Instance()->projector()->findNorthPA(¢erSkyPoint, screenSkyPoint.x(),
112 0)), // FIXME: More ugliness. m_proj should probably be a single-instance class, or we should have our own instance etc.
132 auto drawArrow = [&](double angle, const QString & marker, const float labelRadius, const bool primary)
156 arrowhead.addText(QPointF(-1.1 * fontMetrics.averageCharWidth() * marker.size(), radius / 7.5f + 1.2f * fontMetrics.ascent()),
164 QRectF angleMarkerRect(centerScreenPoint.x() - labelRadius, centerScreenPoint.y() - labelRadius,
208 (m_SkyMap->slewing || (m_SkyMap->clockSlewing && m_KStarsData->clock()->isActive())) && Options::hideOnSlew();
220 bool drawOther = Options::showDeepSky() && Options::showOther() && !(checkSlewing && Options::hideOther());
228 m_SkyMap->m_proj->toScreen(m_SkyMap->focusObject()); // FIXME: Same thing. m_proj should be accessible here.
307 oneFOV->setColor(KStars::Instance()->data()->colorScheme()->colorNamed("SensorFOVColor").name());
311 double northRotation = SkyMap::Instance()->projector()->findNorthPA(¢erSkyPoint, screenSkyPoint.x(),
A simple container object to hold the minimum information for a Deep Sky Object to be drawn on the sk...
Definition catalogobject.h:41
virtual SkyPoint fromScreen(const QPointF &p, dms *LST, const dms *lat, bool onlyAltAz=false) const
Determine RA, Dec coordinates of the pixel at (dx, dy), which are the screen pixel coordinate offsets...
Definition projector.cpp:460
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
double findZenithPA(const SkyPoint *o, float x, float y) const
Determine the on-screen angle of a SkyPoint with respect to Zenith.
Definition projector.cpp:276
bool onScreen(const QPointF &p) const
Check whether the projected point is on-screen.
Definition projector.cpp:98
double findNorthPA(const SkyPoint *o, float x, float y) const
Determine the on-screen position angle of a SkyPont with recept with NCP.
Definition projector.cpp:236
bool checkVisibility(const SkyPoint *p) const
Determine if the skypoint p is likely to be visible in the display window.
Definition projector.cpp:183
The purpose of this class is to prevent labels from overlapping.
Definition skylabeler.h:99
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
void setPen(const QPen &pen)
sets the pen used for drawing labels on the sky.
Definition skylabeler.cpp:197
void useStdFont()
sets the font in SkyLabeler and in psky to the font psky had originally when reset() was called.
Definition skylabeler.cpp:217
bool drawNameLabel(SkyObject *obj, const QPointF &_p, const qreal padding_factor=1)
Tries to draw a label for an object.
Definition skylabeler.cpp:161
void draw(SkyPainter *skyp) override
Delegate draw requests to all sub components psky Reference to the QPainter on which to paint.
Definition skymapcomposite.cpp:244
static void setDrawLock(bool state)
Acquire / release a draw lock.
Definition skymapdrawabstract.cpp:466
void drawOrientationArrows(QPainter &p)
Draw north and zenith arrows to show the orientation while rotating the sky map.
Definition skymapdrawabstract.cpp:117
void drawZoomBox(QPainter &psky)
Draw a dotted-line rectangle which traces the potential new field-of-view in ZoomBox mode.
Definition skymapdrawabstract.cpp:194
void drawTelescopeSymbols(QPainter &psky)
Draw symbols at the position of each Telescope currently being controlled by KStars.
Definition skymapdrawabstract.cpp:334
void drawAngleRuler(QPainter &psky)
Draw a dashed line from the Angular-Ruler start point to the current mouse cursor,...
Definition skymapdrawabstract.cpp:106
void drawSolverFOV(QPainter &psky)
Draw FOV of solved image in Ekos Alignment Module.
Definition skymapdrawabstract.cpp:293
void drawObjectLabels(QList< SkyObject * > &labelObjects)
Draw "user labels".
Definition skymapdrawabstract.cpp:205
void exportSkyImage(QPaintDevice *pd, bool scale=false)
Draw the current Sky map to a pixmap which is to be printed or exported to a file.
Definition skymapdrawabstract.cpp:418
void drawOverlays(QPainter &p, bool drawFov=true)
Draw the overlays on top of the sky map.
Definition skymapdrawabstract.cpp:56
SkyMapDrawAbstract(SkyMap *sm)
Constructor that sets data and m_SkyMap, and initializes the FPS counters.
Definition skymapdrawabstract.cpp:50
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition skymap.h:262
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
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
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void setAlphaF(float alpha)
int height() const const
int width() const const
SmoothPixmapTransform
QPaintDevice * device() const const
void drawArc(const QRect &rectangle, int startAngle, int spanAngle)
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawLine(const QLine &line)
void drawRect(const QRect &rectangle)
void drawText(const QPoint &position, const QString &text)
void fillPath(const QPainterPath &path, const QBrush &brush)
void scale(qreal sx, qreal sy)
void setBrush(Qt::BrushStyle style)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void strokePath(const QPainterPath &path, const QPen &pen)
QRect viewport() const const
void addText(const QPointF &point, const QFont &font, const QString &text)
void lineTo(const QPointF &endPoint)
void moveTo(const QPointF &point)
int x() const const
int y() const const
qreal x() const const
qreal y() const const
QPoint center() const const
int height() const const
bool isValid() const const
int width() const const
int x() const const
int y() const const
QString number(double n, char format, int precision)
qsizetype size() const const
NoBrush
white
DotLine
bool isNull() const const
bool toBool() const const
height
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.