Kstars
skymaplite.h
48*to an object with objectName SkyMapLiteWrapper in main.qml. To display SkyItems they are reparanted
64 /** wrappers for clickedPoint and clickedObject. Used to set clicked object and point from QML **/
72 * @short true if SkyMapLite is centered on an object and only pinch-to-zoom needs to be available
74 Q_PROPERTY(bool centerLocked READ getCenterLocked WRITE setCenterLocked NOTIFY centerLockedChanged)
75 Q_PROPERTY(bool automaticMode READ getAutomaticMode WRITE setAutomaticMode NOTIFY automaticModeChanged)
76 Q_PROPERTY(double skyRotation READ getSkyRotation WRITE setSkyRotation NOTIFY skyRotationChanged)
89 /** Updates SkyMapLite by calling RootNode::update(), which in turn initiates update of all child nodes. **/
90 virtual QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) override;
285 * @note font size is set in SkyLabeler::SkyLabeler() by initializing m_stdFont with default font
287 QSGTexture *textToTexture(QString text, QColor color = QColor(255, 255, 255), bool zoomFont = false);
318 /** @short Convenience function for shutting off tracking mode. Just calls KStars::slotTrack() **/
417 //inline void drawObjectLabels( QList< SkyObject* >& labelObjects ) { dynamic_cast<SkyMapDrawAbstract *>(m_SkyMapDraw)->drawObjectLabels( labelObjects ); }
433 * @short sets whether SkyMapLite is centered on an object and locked(olny pinch-to-zoom is available)
437 /** True if automatic mode is on (SkyMapLite is controlled by smartphones accelerometer magnetometer) **/
Handles representation of HorizonComponent in SkyMapLite (lines, filled polygon and compass labels).
Definition horizonitem.h:23
Class that handles lines (Constellation lines and boundaries and both coordinate grids) in SkyMapLite...
Definition linesitem.h:38
The Projector class is the primary class that serves as an interface to handle projections.
Definition projector.h:58
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
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
void loadingFinished()
called when SkyMapComposite finished loading all SkyComponents
Definition skymaplite.h:301
SkyPointLite * clickedPointLite
wrappers for clickedPoint and clickedObject.
Definition skymaplite.h:65
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
virtual void mousePressEvent(QMouseEvent *e) override
Process keystrokes:
Definition skymapliteevents.cpp:21
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition skymaplite.cpp:312
virtual void mouseDoubleClickEvent(QMouseEvent *e) override
Center SkyMap at double-clicked location
Definition skymapliteevents.cpp:138
QSGTexture * getCachedTexture(int size, char spType)
returns cached texture from textureCache.
Definition skymaplite.cpp:210
Q_INVOKABLE QStringList getFOVSymbols()
this QList should be used as a model in QML to switch on/off FOV symbols
Definition skymaplite.h:382
SkyObject * clickedObject() const
Retrieve the object nearest to a mouse click event.
Definition skymaplite.h:234
virtual void touchEvent(QTouchEvent *e) override
this function handles zooming in and out using "pinch to zoom" gesture
Definition skymapliteevents.cpp:268
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
virtual void mouseReleaseEvent(QMouseEvent *e) override
set mouseButtonDown==false, slewing==false
Definition skymapliteevents.cpp:100
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 posClicked(QPointF pos)
Emitted when user clicks on SkyMapLite (analogous to positionClicked but sends QPoint)
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
virtual void mouseMoveEvent(QMouseEvent *e) override
This function does several different things depending on the state of the program:
Definition skymapliteevents.cpp:148
void setSizeMagLim(float sizeMagLim)
Set magnitude limit for size of stars.
Definition skymaplite.h:335
virtual void wheelEvent(QWheelEvent *e) override
Zoom in and out with the mouse wheel.
Definition skymapliteevents.cpp:254
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 stopTracking()
Convenience function for shutting off tracking mode.
Definition skymapliteevents.cpp:516
void setFocusObject(SkyObject *o)
Set the FocusObject pointer to the argument.
Definition skymaplite.cpp:318
bool getAutomaticMode() const
True if automatic mode is on (SkyMapLite is controlled by smartphones accelerometer magnetometer)
Definition skymaplite.h:438
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 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
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
This class encapsulates some methods which are shared between all single-object solar system componen...
Definition solarsystemsinglecomponent.h:29
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
parent
QSizeF size() const const
visible
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.