Kstars
skymaplite.cpp
342 qDebug() << "Centering on " << focusPoint()->ra().toHMSString() << " " << focusPoint()->dec().toDMSString();
352 if (Options::useAltAz() && Options::showGround() && focus()->alt().Degrees() > SkyPoint::altCrit &&
356 QString message = i18n("The requested position is below the horizon.\nWould you like to go there anyway?");
358 KGuiItem(i18n("Go Anyway")), KGuiItem(i18n("Keep Position")), "dag_focus_below_horiz" )==KMessageBox::Cancel ) {
910 QSGTexture *texture = window()->createTextureFromImage(label, QQuickWindow::TextureCanUseAtlas);
985 setFocusAltAz(SkyPoint::unrefract(dms(m_deviceOrientation->getAltitude())), dms(m_deviceOrientation->getAzimuth()));
Implememntation of Azimuthal equidistant projection
Definition azimuthalequidistantprojector.h:19
Definition clientmanagerlite.h:41
Implememntation of Equirectangular projection
Definition equirectangularprojector.h:19
void setSnapNextFocus(bool b=true)
Disable or re-enable the slewing animation for the next Focus change.
Definition kstarsdata.h:285
This class loads QML files and connects SkyMapLite and KStarsData Unlike KStars class it is not a mai...
Definition kstarslite.h:47
ClientManagerLite * clientManagerLite() const
Definition kstarslite.h:107
void updateTime(const bool automaticDSTchange=true)
Update time-dependent data and (possibly) repaint the sky map.
Definition kstarslite.cpp:234
Implememntation of Lambert azimuthal equal-area projection
Definition lambertprojector.h:19
Implememntation of Orthographic projection
Definition orthographicprojector.h:19
void setViewParams(const ViewParams &p)
Update cached values for projector.
Definition projector.cpp:46
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
void update(bool clearTextures=false)
update positions of all child SkyItems
Definition rootnode.cpp:216
Q_INVOKABLE bool isActive()
Whether the clock is active or not is a bit complicated by the introduction of "manual mode".
Definition simclock.cpp:128
void setManualMode(bool on=true)
Sets Manual Mode on/off according to the bool argument.
Definition simclock.cpp:66
bool isManualMode() const
Manual Mode is a new (04/2002) addition to the SimClock.
Definition simclock.h:69
Q_INVOKABLE void setAutomaticMode(bool automaticMode)
switch automatic mode on/off according to isOn parameter
Definition skymaplite.cpp:957
void setCenterLocked(bool centerLocked)
sets whether SkyMapLite is centered on an object and locked(olny pinch-to-zoom is available)
Definition skymaplite.cpp:951
static SkyMapLite * createInstance()
Creates instance of SkyMapLite (delete the old one if any)
Definition skymaplite.cpp:215
void updateFocus()
Update the focus position according to current options.
Definition skymaplite.cpp:690
QSGTexture * textToTexture(QString text, QColor color=QColor(255, 255, 255), bool zoomFont=false)
creates QImage from text and converts it to QSGTexture
Definition skymaplite.cpp:849
void symbolsFOVChanged(QStringList)
Emitted when FOVSymbols list was changed (new value appended)
int harvardToIndex(char c)
Returns index for a Harvard spectral classification.
Definition skymaplite.cpp:810
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition skymaplite.h:125
bool centerLocked
true if SkyMapLite is centered on an object and only pinch-to-zoom needs to be available
Definition skymaplite.h:74
void slotSelectObject(SkyObject *skyObj)
centres skyObj in SkyMap and opens context drawer with skyObj Used in FindDialogLite
Definition skymaplite.cpp:590
void setDestination(const SkyPoint &f)
sets the destination point of the sky map.
Definition skymaplite.cpp:278
void forceUpdate()
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition skymaplite.cpp:639
void destinationChanged()
Emitted by setDestination(), and connected to slewFocus().
QVector< QVector< QPixmap * > > getImageCache()
returns cache of star images
Definition skymaplite.cpp:844
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition skymaplite.cpp:312
QSGTexture * getCachedTexture(int size, char spType)
returns cached texture from textureCache.
Definition skymaplite.cpp:210
void initStarImages()
Initializes images of Stars and puts them in cache (copied from SkyQPainter)
Definition skymaplite.cpp:996
void slewingChanged(bool)
Emitted when SkyMapLite is being slewed or slewing is finished.
void slotClockSlewing()
Checks whether the timestep exceeds a threshold value.
Definition skymaplite.cpp:516
bool getSlewing() const
Proxy method for SkyMapDrawAbstract::drawObjectLabels()
Definition skymaplite.h:422
void setFocusPoint(SkyPoint *f)
set the FocusPoint; the position that is to be the next Destination.
Definition skymaplite.h:204
void mousePointChanged(SkyPoint *)
Emitted when position under mouse changed.
void slotUpdateSky(bool now)
Update the focus point and call forceUpdate()
Definition skymaplite.cpp:683
Q_INVOKABLE void addFOVSymbol(const QString &FOVName, bool initialState=false)
adds FOV symbol to m_FOVSymbols
Definition skymaplite.cpp:919
void setDestinationAltAz(const dms &alt, const dms &az, bool altIsRefracted)
sets the destination point of the sky map, using its alt/az coordinates.
Definition skymaplite.cpp:290
virtual QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) override
Updates SkyMapLite by calling RootNode::update(), which in turn initiates update of all child nodes.
Definition skymaplite.cpp:143
void skyRotationChanged(double skyRotation)
Emitted when skyRotation used to rotate coordinates of SkyPoints is changed.
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition skymaplite.cpp:306
void initialize(QQuickItem *parent)
Bind size to parent's size and initialize star images.
Definition skymaplite.cpp:222
void setFocusAltAz(const dms &alt, const dms &az)
sets the focus point of the sky map, using its alt/az coordinates
Definition skymaplite.cpp:266
void deleteSkyNode(SkyNode *skyNode)
skyNode will be deleted on the next call to updatePaintNode (currently used only in StarNode(struct i...
Definition skymaplite.cpp:205
void setFocusObject(SkyObject *o)
Set the FocusObject pointer to the argument.
Definition skymaplite.cpp:318
void setupProjector()
Call to set up the projector before update of SkyItems positions begins.
Definition skymaplite.cpp:735
void setSlewing(bool newSlewing)
sets whether SkyMapLite is being slewed
Definition skymaplite.cpp:942
Q_INVOKABLE void setFOVVisible(int index, bool visible)
updates visibility of FOV symbol according to visible
Definition skymaplite.cpp:933
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition skymaplite.h:252
void resizeItem()
Called whenever wrappers' width or height are changed.
Definition skymaplite.cpp:565
static double deleteLimit()
return limit of hides for the node to delete it
Definition skymaplite.cpp:199
void updateAutomaticMode()
updates focus of SkyMapLite according to data from DeviceOrientation (Smartphone's sensors)
Definition skymaplite.cpp:979
Provides an interface to the Hierarchical Triangular Mesh (HTM) library written by A.
Definition skymesh.h:74
static SkyMesh * Instance()
returns the default instance of SkyMesh or null if it has not yet been created.
Definition skymesh.cpp:39
void aperture(SkyPoint *center, double radius, MeshBufNum_t bufNum=DRAW_BUF)
finds the set of trixels that cover the circular aperture specified after first performing a reverse ...
Definition skymesh.cpp:56
Trixel index(const SkyPoint *p)
returns the index of the trixel containing p.
Definition skymesh.cpp:74
Provides virtual functions for update of coordinates and nodes hiding.
Definition skynode.h:28
Wrapper for SkyObject to allow access of some of its properties from QML.
Definition skyobjectlite.h:21
void setObject(SkyObject *object)
sets SkyObject that is needed to be wrapped
Definition skyobjectlite.cpp:11
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
Wrapper for SkyPoint to allow access of some of its properties from QML.
Definition skypointlite.h:22
void setPoint(SkyPoint *point)
sets SkyPoint that is needed to be wrapped
Definition skypointlite.cpp:12
static const double altCrit
Critical height for atmospheric refraction corrections.
Definition skypoint.h:727
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
static double unrefract(const double alt, bool conditional=true)
Remove refraction correction, depending on conditional.
Definition skypoint.cpp:1091
Implememntation of Stereographic projection
Definition stereographicprojector.h:19
void addTelescope(INDI::BaseDevice *bd)
Add telescope symbol for device bd.
Definition telescopesymbolsitem.cpp:25
void removeTelescope(INDI::BaseDevice *bd)
Remove telescope symbol of device bd.
Definition telescopesymbolsitem.cpp:36
This is just a container that holds information needed to do projections.
Definition projector.h:37
bool fillGround
If the ground is filled, then points below horizon are invisible.
Definition projector.h:44
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
QString i18n(const char *text, const TYPE &arg...)
QColor fromRgb(QRgb rgb)
void getHsvF(float *h, float *s, float *v, float *a) const const
void setHsvF(float h, float s, float v, float a)
int descent() const const
int height() const const
Format_ARGB32_Premultiplied
void append(QList< T > &&value)
iterator begin()
void clear()
qsizetype count() const const
iterator end()
qsizetype size() const const
T value(qsizetype i) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
Antialiasing
bool begin(QPaintDevice *device)
void drawEllipse(const QPoint ¢er, int rx, int ry)
void drawLine(const QLine &line)
void drawPoint(const QPoint &position)
void drawText(const QPoint &position, const QString &text)
bool end()
const QPen & pen() const const
void setBrush(Qt::BrushStyle style)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
QColor color() const const
void fill(const QColor &color)
QPixmap scaled(const QSize &size, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
QCursor cursor() const const
void heightChanged()
parent
void setCursor(const QCursor &cursor)
QSizeF size() const const
void update()
visible
void widthChanged()
QQuickWindow * window() const const
TextureCanUseAtlas
QSGTexture * createTextureFromImage(const QImage &image) const const
qreal effectiveDevicePixelRatio() const const
QString & fill(QChar ch, qsizetype size)
KeepAspectRatio
SizeAllCursor
color0
AllButtons
SmoothTransformation
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:47:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.