Kstars
avtplotwidget.cpp
67void drawMoon(QPainter &p, int rise, int set, int fade, const QColor &color, int width, int height)
95// All the int coordinates (rise, set, da, du) need to be converted from hours relative to midnight
97void drawSun(QPainter &p, int rise, int set, double minAlt, double maxAlt, int da, int du, bool noDawn,
213 0.01; // pW * fraction of day to fade the moon brightness over (0.01 corresponds to roughly 15 minutes, 0.007 to 10 minutes), both before and after actual set.
277 QLocale().toString(t, QLocale::ShortFormat)); // short format necessary to avoid false time-zone labeling
302 QLocale().toString(t, QLocale::ShortFormat)); // short format necessary to avoid false time-zone labeling
void setSunRiseSetTimes(double sr, double ss)
Set the fractional positions of the Sunrise and Sunset positions, in units where last midnight was 0....
Definition avtplotwidget.cpp:323
void setMoonRiseSetTimes(double mr, double ms)
Set the fractional positions of moonrise and moon set in units where last midnight was 0....
Definition avtplotwidget.cpp:330
void setPlotExtent(double noonOffset, double plotDuration)
This is needed when not plotting from noon to noon.
Definition avtplotwidget.cpp:343
void mouseDoubleClickEvent(QMouseEvent *e) override
Reset the MousePoint to a null value, to erase the crosshairs.
Definition avtplotwidget.cpp:34
void mousePressEvent(QMouseEvent *e) override
Simply calls mouseMoveEvent().
Definition avtplotwidget.cpp:29
void mouseMoveEvent(QMouseEvent *e) override
Handle mouse move events.
Definition avtplotwidget.cpp:40
void draw(QPainter *p, KPlotWidget *pw)
QList< KPlotObject * > plotObjects() const
void setPixRect()
int leftPadding() const
int topPadding() const
virtual void drawAxes(QPainter *p)
QRect pixRect() const
QColor backgroundColor() const
bool antialiasing() const
static KStarsDateTime currentDateTimeUtc()
Definition kstarsdatetime.cpp:82
void setAlpha(int alpha)
QTime time() const const
int pointSize() const const
void setPointSize(int pointSize)
void setColorAt(qreal position, const QColor &color)
void setFinalStop(const QPointF &stop)
void setStart(const QPointF &start)
ShortFormat
int x() const const
int y() const const
Antialiasing
bool begin(QPaintDevice *device)
void drawLine(const QLine &line)
void drawText(const QPoint &position, const QString &text)
bool end()
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QFont & font() const const
void restore()
void rotate(qreal angle)
void save()
void setClipRect(const QRect &rectangle, Qt::ClipOperation operation)
void setClipping(bool enable)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void translate(const QPoint &offset)
int x() const const
int y() const const
int bottom() const const
bool contains(const QPoint &point, bool proper) const const
int height() const const
int left() const const
int right() const const
int top() const const
int width() const const
QString number(double n, char format, int precision)
transparent
DotLine
int hour() const const
int minute() const const
int second() const const
height
rect
void update()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.