Kstars
altvstime.cpp
56 // Layers for setting up the plot's priority: the current curve should be above the other curves.
59 avtUI->View->addLayer("markersLayer", avtUI->View->layer("currentCurveLayer"), QCustomPlot::limAbove);
180 connect(avtUI->View->yAxis, SIGNAL(rangeChanged(QCPRange)), this, SLOT(onYRangeChanged(QCPRange)));
440 background->topLeft->setCoords(avtUI->View->xAxis->range().lower, avtUI->View->yAxis->range().upper);
550void AltVsTime::plotMousePress(QCPAbstractPlottable *abstractPlottable, int dataIndex, QMouseEvent *event)
677 qCWarning(KSTARS) << "slotComputeAltitudeByTime: Unable to find" << avtUI->PlotList->currentItem()->text();
686 KStarsDateTime lt = KStarsDateTime(avtUI->DateWidget->date(), avtUI->timeSpin->time(), Qt::LocalTime);
713 qCWarning(KSTARS) << "Mark Rise Time: Unable to find" << avtUI->PlotList->currentItem()->text();
810 qCWarning(KSTARS) << "Mark Transit Time: Unable to find" << avtUI->PlotList->currentItem()->text();
911 p.drawText( 5, 5, QLocale().toString( localTime, QLocale::ShortFormat ) ); // short format necessary to avoid false time-zone labeling
1043 background->topLeft->setCoords(avtUI->View->xAxis->range().lower, avtUI->View->yAxis->range().upper);
1044 background->bottomRight->setCoords(avtUI->View->xAxis->range().upper, avtUI->View->yAxis->range().lower);
1095 background->topLeft->setCoords(avtUI->View->xAxis->range().lower, avtUI->View->yAxis->range().upper);
1212 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.
1231 p.fillRect(QRectF(moonrise + fadewidth, 0.0, moonset - moonrise - 2 * fadewidth, pH), MoonColor);
1313 Qt::transparent); // FIXME?: The sky appears black well before the actual end of twilight if the gradient is too slow (eg: latitudes above arctic circle)
1322 p.fillRect(0, int(0.5 * pH), pW, int(0.5 * pH), KStarsData::Instance()->colorScheme()->colorNamed("HorzColor"));
1381 avtUI->View->setDawnDuskTimes(almanac.getDawnAstronomicalTwilight(), almanac.getDuskAstronomicalTwilight());
void slotAddSource()
Add an object to the list of displayed objects, according to the data entered in the edit boxes.
Definition altvstime.cpp:252
void slotHighlight(int)
Update the plot to highlight the altitude curve of the objects which is highlighted in the listbox.
Definition altvstime.cpp:478
double findAltitude(SkyPoint *p, double hour)
Determine the altitude coordinate of a SkyPoint, given an hour of the day.
Definition altvstime.cpp:466
void showCurrentDate()
Set the AltVsTime Date according to the current Date in the KStars main window.
Definition altvstime.cpp:1147
void setLSTLimits()
Determine the limits for the sideral time axis, using the sidereal time at midnight for the current d...
Definition altvstime.cpp:1132
void plotMousePress(QCPAbstractPlottable *abstractPlottable, int dataIndex, QMouseEvent *event)
Show information from the curve as a tooltip.
Definition altvstime.cpp:550
void slotBrowseObject()
Launch the Find Object window to select a new object for the list of displayed objects.
Definition altvstime.cpp:348
void slotChooseCity()
Launch the Location dialog to choose a new location.
Definition altvstime.cpp:1115
double getEpoch(const QString &eName)
Parse a string as an epoch number.
Definition altvstime.cpp:1361
void mouseOverLine(QMouseEvent *event)
Draw the white vertical line on click.
Definition altvstime.cpp:925
void onXRangeChanged(const QCPRange &range)
Update the X axis on Zoom and Drag.
Definition altvstime.cpp:526
void computeSunRiseSetTimes()
Determine the time of sunset and sunrise for the current date and location settings.
Definition altvstime.cpp:849
void slotUpdateDateLoc()
Update the plot to reflec new Date and Location settings.
Definition altvstime.cpp:979
void processObject(SkyObject *o, bool forceAdd=false)
Add a SkyObject to the display.
Definition altvstime.cpp:360
void onYRangeChanged(const QCPRange &range)
Update the Y axis on Zoom and Drag.
Definition altvstime.cpp:544
void slotAdvanceFocus()
Move input keyboard focus to the next logical widget.
Definition altvstime.cpp:607
void slotComputeAltitudeByTime()
Compute the altitude for a certain time.
Definition altvstime.cpp:668
QString getObjectName(const SkyObject *o, bool translated=true)
get object name.
Definition altvstime.cpp:1459
a dms subclass that caches its sine and cosine values every time the angle is changed.
Definition cachingdms.h:19
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
A class that implements methods to find sun rise, sun set, twilight begin / end times,...
Definition ksalmanac.h:27
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition ksnumbers.h:43
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
KStarsDateTime addDays(int nd) const
Modify the Date/Time by adding a number of days.
Definition kstarsdatetime.h:110
bool setFromEpoch(double e, EpochType type)
Set the Date/Time from an epoch value, represented as a double.
Definition kstarsdatetime.cpp:236
static KStarsDateTime currentDateTimeUtc()
Definition kstarsdatetime.cpp:82
static KStarsDateTime currentDateTime()
Definition kstarsdatetime.cpp:73
Dialog for changing the geographic location of the observer.
Definition locationdialog.h:61
The abstract base class for all data representing objects in a plot.
Definition qcustomplot.h:3437
Specialized axis ticker for time spans in units of milliseconds to days.
Definition qcustomplot.h:1790
@ tssReadability
A nicely readable tick step is prioritized over matching the requested number of ticks (see setTickCo...
Definition qcustomplot.h:1686
void setScaled(bool scaled, Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio, Qt::TransformationMode transformationMode=Qt::SmoothTransformation)
Definition qcustomplot.cpp:30177
@ ptPlotCoords
Dynamic positioning at a plot coordinate defined by two axes (see setAxes).
Definition qcustomplot.h:3601
QCPRange bounded(double lowerBound, double upperBound) const
Definition qcustomplot.cpp:2012
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
QTime transitTime(const KStarsDateTime &dt, const GeoLocation *geo) const
The same iteration technique described in riseSetTime() is used here.
Definition skyobject.cpp:239
QTime riseSetTime(const KStarsDateTime &dt, const GeoLocation *geo, bool rst, bool exact=true) const
Determine the time at which the point will rise or set.
Definition skyobject.cpp:93
virtual void updateCoordsNow(const KSNumbers *num)
updateCoordsNow Shortcut for updateCoords( const KSNumbers *num, false, nullptr, nullptr,...
Definition skypoint.h:382
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
virtual void updateCoords(const KSNumbers *num, bool includePlanets=true, const CachingDms *lat=nullptr, const CachingDms *LST=nullptr, bool forceRecompute=false)
Determine the current coordinates (RA, Dec) from the catalog coordinates (RA0, Dec0),...
Definition skypoint.cpp:582
const QString toDMSString(const bool forceSign=false, const bool machineReadable=false, const bool highPrecision=false) const
Definition dms.cpp:287
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
char * toString(const EngineQuery &query)
@ iRangeDrag
0x001 Axis ranges are draggable (see QCPAxisRect::setRangeDrag, QCPAxisRect::setRangeDragAxes)
Definition qcustomplot.h:251
@ iRangeZoom
0x002 Axis ranges are zoomable with the mouse wheel (see QCPAxisRect::setRangeZoom,...
Definition qcustomplot.h:252
QDate date() const const
QTime time() const const
Accepted
virtual int exec()
void setModal(bool modal)
virtual void reject()
void rejected()
ActionRole
QPushButton * addButton(StandardButton button)
void restoreOverrideCursor()
void setOverrideCursor(const QCursor &cursor)
QIcon fromTheme(const QString &name)
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
void clear()
qsizetype count() const const
bool isEmpty() const const
void replace(qsizetype i, parameter_type value)
qsizetype size() const const
value_type takeFirst()
ShortFormat
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
objectName
QObject * sender() const const
int height() const const
int width() const const
Antialiasing
bool begin(QPaintDevice *device)
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawLine(const QLine &line)
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void drawText(const QPoint &position, const QString &text)
bool end()
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QFont & font() const const
qreal opacity() const const
void restore()
void rotate(qreal angle)
void save()
void setBrush(Qt::BrushStyle style)
void setClipRect(const QRect &rectangle, Qt::ClipOperation operation)
void setClipping(bool enable)
void setFont(const QFont &font)
void setOpacity(qreal opacity)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void translate(const QPoint &offset)
QRect rect() const const
virtual int exec() override
void setResolution(int dpi)
int height() const const
int width() const const
QString arg(Args &&... args) const const
bool isEmpty() const const
QString number(double n, char format, int precision)
AlignLeft
IgnoreAspectRatio
WaitCursor
white
RightButton
DotLine
UTC
Tool
int hour() const const
int minute() const const
int second() const const
void hideText()
void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect, int msecDisplayTime)
void setEnabled(bool)
virtual bool event(QEvent *event) override
font
void lower()
void setMouseTracking(bool enable)
rect
void render(QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
void setFocus()
void setLayout(QLayout *layout)
void show()
size
void update()
virtual void setVisible(bool visible)
void setWindowFlags(Qt::WindowFlags type)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.