Kstars
skyqpainter.cpp
604 // FIXME: onScreen here should use canvas size rather than SkyMap size, especially while printing in portrait mode!
621 // Draw stars as bitmaps, either because we were asked to, or because we're painting real colors
636 // Note: This is not efficient, but we use vector stars only when plotting SVG, not when drawing the skymap, so speed is not very important.
950 case SkyObject::SUPERNOVA_REMNANT: //Supernova remnant // FIXME: Why is SNR drawn different from a gaseous nebula?
Antialiasing
void setColorAt(qreal position, const QColor &color)
QPoint map(const QPoint &point) const const
AlignCenter
int width() const const
static constexpr double PI
PI is a const static member; it's public so that it can be used anywhere, as long as dms....
Definition: dms.h:385
void setPen(const QColor &color)
void getHsvF(qreal *h, qreal *s, qreal *v, qreal *a) const const
void drawConvexPolygon(const QPointF *points, int pointCount)
Definition: linelist.h:24
Format_ARGB32_Premultiplied
int height() const const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
T & last()
void rotate(qreal angle)
void drawEllipse(const QRectF &rectangle)
QTransform & rotate(qreal angle, Qt::Axis axis)
int width(const QString &text, int len) const const
double findPA(const SkyObject *o, float x, float y) const
Determine the on-screen position angle of a SkyObject.
Definition: projector.cpp:267
void clear()
const T value(const Key &key, const T &defaultValue) const const
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
void drawSkyPolyline(LineList *list, SkipHashList *skipList=nullptr, LineListLabel *label=nullptr) override
Draw a polyline in the sky.
Definition: skyqpainter.cpp:297
bool drawPointSource(const SkyPoint *loc, float mag, char sp='A') override
Draw a point source (e.g., a star).
Definition: skyqpainter.cpp:596
int horizontalAdvance(const QString &text, int len) const const
QString name() const const
Definition: kstarsdata.h:70
float starWidth(float mag) const
Get the width of a star of magnitude mag.
Definition: skypainter.cpp:30
void fill(const QColor &color)
int width() const const
QPointF clipLine(SkyPoint *p1, SkyPoint *p2) const
ASSUMES *p1 did not clip but *p2 did.
Definition: projector.cpp:108
int width() const const
const QPen & pen() const const
void drawSkyPolygon(LineList *list, bool forceClip=true) override
Draw a polygon in the sky.
Definition: skyqpainter.cpp:351
T & first()
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
void drawText(const QPointF &position, const QString &text)
void fillRect(const QRectF &rectangle, const QBrush &brush)
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, Qt::ImageConversionFlags flags)
int height() const const
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
Definition: supernova.h:33
A class that manages the calculation of the earths shadow (in moon distance) as a 'virtual' skyobject...
Definition: ksearthshadow.h:27
bool begin(QPaintDevice *device)
bool onScreen(const QPointF &p) const
Check whether the projected point is on-screen.
Definition: projector.cpp:98
QMap::iterator insert(const Key &key, const T &value)
bool drawEarthShadow(KSEarthShadow *shadow) override
Draw the earths shadow on the moon (red-ish)
Definition: skyqpainter.cpp:478
T * data() const const
bool end()
KeepAspectRatio
QString i18n(const char *text, const TYPE &arg...)
bool drawTerrain(bool useCache=false) override
drawHips Draw the Terrain
Definition: skyqpainter.cpp:734
int height() const const
QTransform & translate(qreal dx, qreal dy)
void drawObservingList(const QList< SkyObject * > &obs) override
Draw the symbols for the observing list.
Definition: skyqpainter.cpp:1042
const T & at(int i) const const
bool isNull() const const
const T & at(int i) const const
QFontMetrics fontMetrics() const const
void drawPolyline(const QPointF *points, int pointCount)
Bold
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:237
const QBrush & brush() const const
QColor fromRgb(QRgb rgb)
void setBrush(const QBrush &brush)
void point(int index, int *x, int *y) const const
SkyQPainter(QPaintDevice *pd, const QSize &canvasSize)
Creates a SkyQPainter with the given QPaintDevice and uses the dimensions of the paint device as canv...
Definition: skyqpainter.cpp:115
void setOpacity(qreal opacity)
void drawSkyLine(SkyPoint *a, SkyPoint *b) override
Draw a line between points in the sky.
Definition: skyqpainter.cpp:271
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
virtual QVector< Eigen::Vector2f > groundPoly(SkyPoint *labelpoint=nullptr, bool *drawLabel=nullptr) const
Get the ground polygon.
Definition: projector.cpp:305
int height() const const
void drawPoint(const QPointF &position)
bool drawConstellationArtImage(ConstellationsArt *obj) override
Draw a ConstellationsArt object.
Definition: skyqpainter.cpp:652
qreal x() const const
qreal y() const const
QList< Key > keys() const const
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
bool drawAsteroid(KSAsteroid *ast) override
Draw an asteroid in the sky.
Definition: skyqpainter.cpp:572
void drawLine(const QLineF &line)
QRect viewport() const const
const QFont & font() const const
QPoint toPoint() const const
QColor color() const const
void translate(const QPointF &offset)
void restore()
int size() const const
void save()
void setHsvF(qreal h, qreal s, qreal v, qreal a)
void setStyle(Qt::PenStyle style)
void setRenderHint(QPainter::RenderHint hint, bool on)
bool drawCatalogObject(const CatalogObject &obj) override
Draw a deep sky object (loaded from the new implementation)
Definition: skyqpainter.cpp:769
DashLine
void setFont(const QFont &font)
void reset(T *other)
SmoothTransformation
Information about a ConstellationsArt object. This class represents a constellation image.
Definition: constellationsart.h:28
A simple container object to hold the minimum information for a Deep Sky Object to be drawn on the sk...
Definition: catalogobject.h:40
size
std::pair< bool, const QImage & > image() const
Get the image for this object.
Definition: catalogobject.h:233
bool drawHips(bool useCache=false) override
drawMosaicPanel Draws mosaic panel in planning or operation mode.
Definition: skyqpainter.cpp:714
void drawArc(const QRectF &rectangle, int startAngle, int spanAngle)
void setBrush(const QBrush &brush) override
Set the brush of the painter.
Definition: skyqpainter.cpp:163
red
bool checkVisibility(const SkyPoint *p) const
Determine if the skypoint p is likely to be visible in the display window.
Definition: projector.cpp:183
int width() const const
Definition: satellite.h:22
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
bool isEmpty() const const
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jun 4 2023 03:57:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jun 4 2023 03:57:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.