Kstars
skyqpainter.cpp
608 // FIXME: onScreen here should use canvas size rather than SkyMap size, especially while printing in portrait mode!
625 // Draw stars as bitmaps, either because we were asked to, or because we're painting real colors
640 // 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.
781 // Note that I have mirrored the image above, so east-to-the-right=false is now east-to-the-right=true
788 coord.EquatorialToHorizontal(KStarsData::Instance()->lst(), KStarsData::Instance()->geo()->lat());
791 const double a = origWidth * scale / 60.0; // This is the width of the image in arcmin--not the major axis
1022 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:301
bool drawPointSource(const SkyPoint *loc, float mag, char sp='A') override
Draw a point source (e.g., a star).
Definition: skyqpainter.cpp:600
int horizontalAdvance(const QString &text, int len) const const
QString name() const const
Definition: kstarsdata.h:71
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
bool intersects(const QPointF ¢er, int width, int height, double rotationDegrees=0.0) const
Check if the input rectangle overlaps the reference rectangle.
Definition: rectangleoverlap.cpp:92
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:355
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:482
T * data() const const
bool end()
KeepAspectRatio
QString i18n(const char *text, const TYPE &arg...)
bool drawTerrain(bool useCache=false) override
drawTerrain Draw the Terrain
Definition: skyqpainter.cpp:738
int height() const const
void scale(qreal sx, qreal sy)
QTransform & translate(qreal dx, qreal dy)
void drawObservingList(const QList< SkyObject * > &obs) override
Draw the symbols for the observing list.
Definition: skyqpainter.cpp:1114
const T & at(int i) const const
bool isNull() const const
const T & at(int i) const const
bool drawImageOverlay(const QList< ImageOverlay > *imageOverlays, bool useCache=false) override
drawImageOverlay Draws a user-supplied image onto the skymap
Definition: skyqpainter.cpp:754
QFontMetrics fontMetrics() const const
This is just a container that holds information needed to do projections.
Definition: projector.h:36
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:119
void setOpacity(qreal opacity)
void drawSkyLine(SkyPoint *a, SkyPoint *b) override
Draw a line between points in the sky.
Definition: skyqpainter.cpp:275
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:656
qreal x() const const
qreal y() const const
QList< Key > keys() const const
void apparentCoord(long double jd0, long double jdf)
Computes the apparent coordinates for this SkyPoint for any epoch, accounting for the effects of prec...
Definition: skypoint.cpp:700
Checks if two potentially rotated rectangles intersect.
Definition: rectangleoverlap.h:26
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:576
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:841
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:718
void drawArc(const QRectF &rectangle, int startAngle, int spanAngle)
void setBrush(const QBrush &brush) override
Set the brush of the painter.
Definition: skyqpainter.cpp:167
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 Tue Dec 5 2023 03:58:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:58:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.