Kstars
avtplotwidget.cpp
71void drawMoon(QPainter &p, int rise, int set, int fade, const QColor &color, int width, int height, double leftPadding)
115// All the int coordinates (rise, set, da, du) need to be converted from hours relative to midnight
117void drawSun(QPainter &p, int rise, int set, double minAlt, double maxAlt, int da, int du, bool noDawn,
265 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.
287 else drawSun(p, rise, set, SunMinAlt, SunMaxAlt, dawn, int(dusk), Dawn < 0.0, SkyColor, pW, pH);
329 QLocale().toString(t, QLocale::ShortFormat)); // short format necessary to avoid false time-zone labeling
356 QLocale().toString(t, QLocale::ShortFormat)); // short format necessary to avoid false time-zone labeling
void plot(const GeoLocation *geo, KSAlmanac *ksal, const QVector< double > ×, const QVector< double > &alts, bool overlay)
Higher level method to plot.
Definition avtplotwidget.cpp:403
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:377
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:384
void setPlotExtent(double noonOffset, double plotDuration)
This is needed when not plotting from noon to noon.
Definition avtplotwidget.cpp:397
void mouseDoubleClickEvent(QMouseEvent *e) override
Reset the MousePoint to a null value, to erase the crosshairs.
Definition avtplotwidget.cpp:38
void mousePressEvent(QMouseEvent *e) override
Simply calls mouseMoveEvent().
Definition avtplotwidget.cpp:33
void mouseMoveEvent(QMouseEvent *e) override
Handle mouse move events.
Definition avtplotwidget.cpp:44
void setAltitudeAxis(double min, double max)
Sets the Y-axis min and max values.
Definition avtplotwidget.cpp:442
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
void setTickLabelFormat(char format='g', int fieldWidth=0, int precision=-1)
void setTickLabelsShown(bool b)
void draw(QPainter *p, KPlotWidget *pw)
void addPoint(const QPointF &p, const QString &label=QString(), double barWidth=0.0)
void setLinePen(const QPen &p)
QList< KPlotPoint * > points() const
Lines
QList< KPlotObject * > plotObjects() const
void setPixRect()
void setSecondaryLimits(double x1, double x2, double y1, double y2)
int leftPadding() const
int topPadding() const
KPlotAxis * axis(Axis type)
virtual void drawAxes(QPainter *p)
void setLimits(double x1, double x2, double y1, double y2)
void addPlotObject(KPlotObject *object)
QRect pixRect() const
QColor backgroundColor() const
BottomAxis
TopAxis
bool antialiasing() const
void removeAllPlotObjects()
A class that implements methods to find sun rise, sun set, twilight begin / end times,...
Definition ksalmanac.h:27
double getSunMaxAlt() const
These functions return the max and min altitude of the sun during the course of the day in degrees.
Definition ksalmanac.h:75
double getSunRise() const
All the functions returns the fraction of the day given by getDate() as their return value.
Definition ksalmanac.h:65
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)
T & last()
qsizetype size() const const
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)
void setColor(const QColor &color)
void setWidth(int width)
int x() 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)
Dense5Pattern
transparent
DotLine
int hour() const const
int minute() const const
int second() const const
height
rect
size
void update()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.