SkyMap

Search for usage in LXR

#include <skymap.h>

Inheritance diagram for SkyMap:

Public Types

enum  Cursor { NoCursor , Cross , Circle }
 
enum  Projection {
  Lambert , AzimuthalEquidistant , Orthographic , Equirectangular ,
  Stereographic , Gnomonic , UnknownProjection
}
 
- Public Types inherited from QGraphicsView
typedef  CacheMode
 
enum  CacheModeFlag
 
enum  DragMode
 
enum  OptimizationFlag
 
typedef  OptimizationFlags
 
enum  ViewportAnchor
 
enum  ViewportUpdateMode
 
- Public Types inherited from QAbstractScrollArea
enum  SizeAdjustPolicy
 
- Public Types inherited from QFrame
enum  Shadow
 
enum  Shape
 
enum  StyleMask
 
- Public Types inherited from QWidget
enum  RenderFlag
 
typedef  RenderFlags
 
- Public Types inherited from QObject
typedef  QObjectList
 
- Public Types inherited from QPaintDevice
enum  PaintDeviceMetric
 

Signals

void destinationChanged ()
 
void mosaicCenterChanged (dms dRA, dms dDE)
 
void mousePointChanged (SkyPoint *)
 
void objectChanged (SkyObject *)
 
void objectClicked (SkyObject *)
 
void positionChanged (SkyPoint *)
 
void positionClicked (SkyPoint *)
 
void removeSkyObject (SkyObject *object)
 
void updateQueued ()
 
void zoomChanged ()
 

Public Slots

void forceUpdate (bool now=false)
 
void forceUpdateNow ()
 
void slewFocus ()
 
void slotAddFlag ()
 
void slotAddFlagRaw ()
 
void slotAddObjectLabel ()
 
void slotAddPlanetTrail ()
 
void slotBeginAngularDistance ()
 
void slotBeginStarHop ()
 
void slotCancelLegendPreviewMode ()
 
void slotCancelRulerMode ()
 
void slotCaptureFov ()
 
void slotCenter ()
 
void slotClockSlewing ()
 
void slotCopyCoordinates ()
 
void slotCopyTLE ()
 
void slotDeleteFlag (int flagIdx)
 
void slotDetail ()
 
void slotDisplayFadingText (const QString &text)
 
void slotDSS ()
 
void slotEditFlag (int flagIdx)
 
void slotEndRulerMode ()
 
void slotFinishFovCaptureMode ()
 
void slotImage ()
 
void slotInfo ()
 
void slotObjectSelected ()
 
void slotRemoveCustomObject ()
 
void slotRemoveObjectLabel ()
 
void slotRemovePlanetTrail ()
 
void slotSDSS ()
 
void slotSetSkyRotation (double angle)
 
void slotStartXplanetViewer ()
 
void slotToggleFocusBox (bool)
 
void slotToggleGeoBox (bool)
 
void slotToggleInfoboxes (bool)
 
void slotToggleTimeBox (bool)
 
void slotUpdateSky (bool now)
 
void slotZoomDefault ()
 
void slotZoomIn ()
 
void slotZoomOut ()
 

Public Member Functions

 ~SkyMap () override
 
SkyObjectclickedObject () const
 
SkyPointclickedPoint ()
 
SkyPointdestination ()
 
void drawObjectLabels (QList< SkyObject * > &labelObjects)
 
void exportSkyImage (QPaintDevice *pd, bool scale=false)
 
void exportSkyImage (SkyQPainter *painter, bool scale=false)
 
SkyPointfocus ()
 
SkyObjectfocusObject () const
 
SkyPointfocusPoint ()
 
float fov ()
 
SkyPoint getCenterPoint ()
 
SkyMapDrawAbstractgetSkyMapDrawAbstract ()
 
bool isInFovCaptureMode () const
 
bool isInObjectPointingMode () const
 
bool isObjectLabeled (SkyObject *o)
 
bool isSlewing () const
 
SkyPointmousePoint ()
 
const Projectorprojector () const
 
void setClickedObject (SkyObject *o)
 
void setClickedPoint (const SkyPoint *f)
 
void setDestination (const dms &ra, const dms &dec)
 
void setDestination (const SkyPoint &f)
 
void setDestinationAltAz (const dms &alt, const dms &az, bool altIsRefracted)
 
void setFocus (const dms &ra, const dms &dec)
 
void setFocus (SkyPoint *f)
 
void setFocusAltAz (const dms &alt, const dms &az)
 
void setFocusObject (SkyObject *o)
 
void setFocusPoint (SkyPoint *f)
 
void setFovCaptureMode (bool enabled)
 
void setLegend (const Legend &legend)
 
void setMouseCursorShape (Cursor type)
 
void setObjectPointingMode (bool enabled)
 
void setPreviewLegend (bool preview)
 
void setupProjector ()
 
void setZoomFactor (double factor)
 
void showFocusCoords ()
 
void stopTracking ()
 
void updateAngleRuler ()
 
void updateFocus ()
 
void updateInfoBoxes ()
 
- Public Member Functions inherited from QGraphicsView
 QGraphicsView (QGraphicsScene *scene, QWidget *parent)
 
 QGraphicsView (QWidget *parent)
 
Qt::Alignment alignment () const const
 
QBrush backgroundBrush () const const
 
CacheMode cacheMode () const const
 
void centerOn (const QGraphicsItem *item)
 
void centerOn (const QPointF &pos)
 
void centerOn (qreal x, qreal y)
 
DragMode dragMode () const const
 
void ensureVisible (const QGraphicsItem *item, int xmargin, int ymargin)
 
void ensureVisible (const QRectF &rect, int xmargin, int ymargin)
 
void ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin)
 
void fitInView (const QGraphicsItem *item, Qt::AspectRatioMode aspectRatioMode)
 
void fitInView (const QRectF &rect, Qt::AspectRatioMode aspectRatioMode)
 
void fitInView (qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRatioMode)
 
QBrush foregroundBrush () const const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const const override
 
void invalidateScene (const QRectF &rect, QGraphicsScene::SceneLayers layers)
 
bool isInteractive () const const
 
bool isTransformed () const const
 
QGraphicsItemitemAt (const QPoint &pos) const const
 
QGraphicsItemitemAt (int x, int y) const const
 
QList< QGraphicsItem * > items () const const
 
QList< QGraphicsItem * > items (const QPainterPath &path, Qt::ItemSelectionMode mode) const const
 
QList< QGraphicsItem * > items (const QPoint &pos) const const
 
QList< QGraphicsItem * > items (const QPolygon &polygon, Qt::ItemSelectionMode mode) const const
 
QList< QGraphicsItem * > items (const QRect &rect, Qt::ItemSelectionMode mode) const const
 
QList< QGraphicsItem * > items (int x, int y) const const
 
QList< QGraphicsItem * > items (int x, int y, int w, int h, Qt::ItemSelectionMode mode) const const
 
QPainterPath mapFromScene (const QPainterPath &path) const const
 
QPoint mapFromScene (const QPointF &point) const const
 
QPolygon mapFromScene (const QPolygonF &polygon) const const
 
QPolygon mapFromScene (const QRectF &rect) const const
 
QPoint mapFromScene (qreal x, qreal y) const const
 
QPolygon mapFromScene (qreal x, qreal y, qreal w, qreal h) const const
 
QPainterPath mapToScene (const QPainterPath &path) const const
 
QPointF mapToScene (const QPoint &point) const const
 
QPolygonF mapToScene (const QPolygon &polygon) const const
 
QPolygonF mapToScene (const QRect &rect) const const
 
QPointF mapToScene (int x, int y) const const
 
QPolygonF mapToScene (int x, int y, int w, int h) const const
 
OptimizationFlags optimizationFlags () const const
 
void render (QPainter *painter, const QRectF &target, const QRect &source, Qt::AspectRatioMode aspectRatioMode)
 
QPainter::RenderHints renderHints () const const
 
void resetCachedContent ()
 
void resetTransform ()
 
ViewportAnchor resizeAnchor () const const
 
void rotate (qreal angle)
 
void rubberBandChanged (QRect rubberBandRect, QPointF fromScenePoint, QPointF toScenePoint)
 
QRect rubberBandRect () const const
 
Qt::ItemSelectionMode rubberBandSelectionMode () const const
 
void scale (qreal sx, qreal sy)
 
QGraphicsScenescene () const const
 
QRectF sceneRect () const const
 
void setAlignment (Qt::Alignment alignment)
 
void setBackgroundBrush (const QBrush &brush)
 
void setCacheMode (CacheMode mode)
 
void setDragMode (DragMode mode)
 
void setForegroundBrush (const QBrush &brush)
 
void setInteractive (bool allowed)
 
void setOptimizationFlag (OptimizationFlag flag, bool enabled)
 
void setOptimizationFlags (OptimizationFlags flags)
 
void setRenderHint (QPainter::RenderHint hint, bool enabled)
 
void setRenderHints (QPainter::RenderHints hints)
 
void setResizeAnchor (ViewportAnchor anchor)
 
void setRubberBandSelectionMode (Qt::ItemSelectionMode mode)
 
void setScene (QGraphicsScene *scene)
 
void setSceneRect (const QRectF &rect)
 
void setSceneRect (qreal x, qreal y, qreal w, qreal h)
 
void setTransform (const QTransform &matrix, bool combine)
 
void setTransformationAnchor (ViewportAnchor anchor)
 
void setViewportUpdateMode (ViewportUpdateMode mode)
 
void shear (qreal sh, qreal sv)
 
virtual QSize sizeHint () const const override
 
QTransform transform () const const
 
ViewportAnchor transformationAnchor () const const
 
void translate (qreal dx, qreal dy)
 
void updateScene (const QList< QRectF > &rects)
 
void updateSceneRect (const QRectF &rect)
 
QTransform viewportTransform () const const
 
ViewportUpdateMode viewportUpdateMode () const const
 
- Public Member Functions inherited from QAbstractScrollArea
 QAbstractScrollArea (QWidget *parent)
 
void addScrollBarWidget (QWidget *widget, Qt::Alignment alignment)
 
QWidgetcornerWidget () const const
 
QScrollBarhorizontalScrollBar () const const
 
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const const
 
QSize maximumViewportSize () const const
 
virtual QSize minimumSizeHint () const const override
 
QWidgetList scrollBarWidgets (Qt::Alignment alignment)
 
void setCornerWidget (QWidget *widget)
 
void setHorizontalScrollBar (QScrollBar *scrollBar)
 
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setSizeAdjustPolicy (SizeAdjustPolicy policy)
 
void setVerticalScrollBar (QScrollBar *scrollBar)
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setViewport (QWidget *widget)
 
SizeAdjustPolicy sizeAdjustPolicy () const const
 
QScrollBarverticalScrollBar () const const
 
Qt::ScrollBarPolicy verticalScrollBarPolicy () const const
 
QWidgetviewport () const const
 
- Public Member Functions inherited from QFrame
 QFrame (QWidget *parent, Qt::WindowFlags f)
 
QRect frameRect () const const
 
Shadow frameShadow () const const
 
Shape frameShape () const const
 
int frameStyle () const const
 
int frameWidth () const const
 
int lineWidth () const const
 
int midLineWidth () const const
 
void setFrameRect (const QRect &)
 
void setFrameShadow (Shadow)
 
void setFrameShape (Shape)
 
void setFrameStyle (int style)
 
void setLineWidth (int)
 
void setMidLineWidth (int)
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, Qt::WindowFlags f)
 
bool acceptDrops () const const
 
QString accessibleDescription () const const
 
QString accessibleName () const const
 
QList< QAction * > actions () const const
 
void activateWindow ()
 
QActionaddAction (const QIcon &icon, const QString &text)
 
QActionaddAction (const QIcon &icon, const QString &text, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QIcon &icon, const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text)
 
QActionaddAction (const QString &text, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, Args &&... args)
 
QActionaddAction (const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
QActionaddAction (const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type)
 
void addAction (QAction *action)
 
void addActions (const QList< QAction * > &actions)
 
void adjustSize ()
 
bool autoFillBackground () const const
 
QPalette::ColorRole backgroundRole () const const
 
QBackingStorebackingStore () const const
 
QSize baseSize () const const
 
QWidgetchildAt (const QPoint &p) const const
 
QWidgetchildAt (int x, int y) const const
 
QRect childrenRect () const const
 
QRegion childrenRegion () const const
 
void clearFocus ()
 
void clearMask ()
 
bool close ()
 
QMargins contentsMargins () const const
 
QRect contentsRect () const const
 
Qt::ContextMenuPolicy contextMenuPolicy () const const
 
QCursor cursor () const const
 
void customContextMenuRequested (const QPoint &pos)
 
WId effectiveWinId () const const
 
void ensurePolished () const const
 
Qt::FocusPolicy focusPolicy () const const
 
QWidgetfocusProxy () const const
 
QWidgetfocusWidget () const const
 
const QFontfont () const const
 
QFontInfo fontInfo () const const
 
QFontMetrics fontMetrics () const const
 
QPalette::ColorRole foregroundRole () const const
 
QRect frameGeometry () const const
 
QSize frameSize () const const
 
const QRectgeometry () const const
 
QPixmap grab (const QRect &rectangle)
 
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffectgraphicsEffect () const const
 
QGraphicsProxyWidgetgraphicsProxyWidget () const const
 
bool hasEditFocus () const const
 
bool hasFocus () const const
 
virtual bool hasHeightForWidth () const const
 
bool hasMouseTracking () const const
 
bool hasTabletTracking () const const
 
int height () const const
 
virtual int heightForWidth (int w) const const
 
void hide ()
 
Qt::InputMethodHints inputMethodHints () const const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, const QList< QAction * > &actions)
 
bool isActiveWindow () const const
 
bool isAncestorOf (const QWidget *child) const const
 
bool isEnabled () const const
 
bool isEnabledTo (const QWidget *ancestor) const const
 
bool isFullScreen () const const
 
bool isHidden () const const
 
bool isMaximized () const const
 
bool isMinimized () const const
 
bool isModal () const const
 
bool isTopLevel () const const
 
bool isVisible () const const
 
bool isVisibleTo (const QWidget *ancestor) const const
 
bool isWindow () const const
 
bool isWindowModified () const const
 
QLayoutlayout () const const
 
Qt::LayoutDirection layoutDirection () const const
 
QLocale locale () const const
 
void lower ()
 
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapFrom (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapFromGlobal (const QPoint &pos) const const
 
QPointF mapFromGlobal (const QPointF &pos) const const
 
QPoint mapFromParent (const QPoint &pos) const const
 
QPointF mapFromParent (const QPointF &pos) const const
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const const
 
QPointF mapTo (const QWidget *parent, const QPointF &pos) const const
 
QPoint mapToGlobal (const QPoint &pos) const const
 
QPointF mapToGlobal (const QPointF &pos) const const
 
QPoint mapToParent (const QPoint &pos) const const
 
QPointF mapToParent (const QPointF &pos) const const
 
QRegion mask () const const
 
int maximumHeight () const const
 
QSize maximumSize () const const
 
int maximumWidth () const const
 
int minimumHeight () const const
 
QSize minimumSize () const const
 
int minimumWidth () const const
 
void move (const QPoint &)
 
void move (int x, int y)
 
QWidgetnativeParentWidget () const const
 
QWidgetnextInFocusChain () const const
 
QRect normalGeometry () const const
 
void overrideWindowFlags (Qt::WindowFlags flags)
 
virtual QPaintEnginepaintEngine () const const override
 
const QPalettepalette () const const
 
QWidgetparentWidget () const const
 
QPoint pos () const const
 
QWidgetpreviousInFocusChain () const const
 
 QWIDGETSIZE_MAX QWIDGETSIZE_MAX
 
void raise ()
 
QRect rect () const const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void repaint ()
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
void repaint (int x, int y, int w, int h)
 
void resize (const QSize &)
 
void resize (int w, int h)
 
bool restoreGeometry (const QByteArray &geometry)
 
QByteArray saveGeometry () const const
 
QScreenscreen () const const
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
void setContentsMargins (const QMargins &margins)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCursor (const QCursor &)
 
void setDisabled (bool disable)
 
void setEditFocus (bool enable)
 
void setEnabled (bool)
 
void setFixedHeight (int h)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFocus ()
 
void setFocus (Qt::FocusReason reason)
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setGeometry (const QRect &)
 
void setGeometry (int x, int y, int w, int h)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setHidden (bool hidden)
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumWidth (int maxw)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setPalette (const QPalette &)
 
void setParent (QWidget *parent)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
void setScreen (QScreen *screen)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
void setStyleSheet (const QString &styleSheet)
 
void setTabletTracking (bool enable)
 
void setToolTip (const QString &)
 
void setToolTipDuration (int msec)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
virtual void setVisible (bool visible)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlag (Qt::WindowType flag, bool on)
 
void setWindowFlags (Qt::WindowFlags type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (Qt::WindowStates windowState)
 
void setWindowTitle (const QString &)
 
void show ()
 
void showFullScreen ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
QSize size () const const
 
QSize sizeIncrement () const const
 
QSizePolicy sizePolicy () const const
 
void stackUnder (QWidget *w)
 
QString statusTip () const const
 
QStylestyle () const const
 
QString styleSheet () const const
 
bool testAttribute (Qt::WidgetAttribute attribute) const const
 
QString toolTip () const const
 
int toolTipDuration () const const
 
QWidgettopLevelWidget () const const
 
bool underMouse () const const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void update ()
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void update (int x, int y, int w, int h)
 
void updateGeometry ()
 
bool updatesEnabled () const const
 
QRegion visibleRegion () const const
 
QString whatsThis () const const
 
int width () const const
 
QWidgetwindow () const const
 
QString windowFilePath () const const
 
Qt::WindowFlags windowFlags () const const
 
QWindowwindowHandle () const const
 
QIcon windowIcon () const const
 
void windowIconChanged (const QIcon &icon)
 
QString windowIconText () const const
 
void windowIconTextChanged (const QString &iconText)
 
Qt::WindowModality windowModality () const const
 
qreal windowOpacity () const const
 
QString windowRole () const const
 
Qt::WindowStates windowState () const const
 
QString windowTitle () const const
 
void windowTitleChanged (const QString &title)
 
Qt::WindowType windowType () const const
 
WId winId () const const
 
int x () const const
 
int y () const const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Public Member Functions inherited from QPaintDevice
int colorCount () const const
 
int depth () const const
 
qreal devicePixelRatio () const const
 
qreal devicePixelRatioF () const const
 
int height () const const
 
int heightMM () const const
 
int logicalDpiX () const const
 
int logicalDpiY () const const
 
bool paintingActive () const const
 
int physicalDpiX () const const
 
int physicalDpiY () const const
 
int width () const const
 
int widthMM () const const
 

Static Public Member Functions

static SkyMapCreate ()
 
static SkyMapInstance ()
 
static bool IsFocused ()
 
static bool IsSlewing ()
 
- Static Public Member Functions inherited from QWidget
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
 
QWidgetfind (WId id)
 
QWidgetkeyboardGrabber ()
 
QWidgetmouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
void setTabOrder (std::initializer_list< QWidget * > widgets)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 

Protected Member Functions

 SkyMap ()
 
bool event (QEvent *event) override
 
void keyPressEvent (QKeyEvent *e) override
 
void keyReleaseEvent (QKeyEvent *e) override
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void resizeEvent (QResizeEvent *) override
 
void wheelEvent (QWheelEvent *e) override
 
- Protected Member Functions inherited from QGraphicsView
virtual void contextMenuEvent (QContextMenuEvent *event) override
 
virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dragLeaveEvent (QDragLeaveEvent *event) override
 
virtual void dragMoveEvent (QDragMoveEvent *event) override
 
virtual void drawBackground (QPainter *painter, const QRectF &rect)
 
virtual void drawForeground (QPainter *painter, const QRectF &rect)
 
virtual void drawItems (QPainter *painter, int numItems, QGraphicsItem *[] items, const QStyleOptionGraphicsItem[] options)
 
virtual void dropEvent (QDropEvent *event) override
 
virtual void focusInEvent (QFocusEvent *event) override
 
virtual bool focusNextPrevChild (bool next) override
 
virtual void focusOutEvent (QFocusEvent *event) override
 
virtual void inputMethodEvent (QInputMethodEvent *event) override
 
virtual void paintEvent (QPaintEvent *event) override
 
virtual void scrollContentsBy (int dx, int dy) override
 
virtual void setupViewport (QWidget *widget) override
 
virtual void showEvent (QShowEvent *event) override
 
virtual bool viewportEvent (QEvent *event) override
 
- Protected Member Functions inherited from QAbstractScrollArea
void setViewportMargins (const QMargins &margins)
 
void setViewportMargins (int left, int top, int right, int bottom)
 
QMargins viewportMargins () const const
 
virtual QSize viewportSizeHint () const const
 
- Protected Member Functions inherited from QFrame
virtual void changeEvent (QEvent *ev) override
 
virtual void initStyleOption (QStyleOptionFrame *option) const const
 
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
virtual void enterEvent (QEnterEvent *event)
 
bool focusNextChild ()
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual void initPainter (QPainter *painter) const const override
 
virtual void leaveEvent (QEvent *event)
 
virtual int metric (PaintDeviceMetric m) const const override
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, qintptr *result)
 
virtual void tabletEvent (QTabletEvent *event)
 
void updateMicroFocus (Qt::InputMethodQuery query)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 
- Protected Member Functions inherited from QPaintDevice

Additional Inherited Members

- Properties inherited from QGraphicsView
 alignment
 
 backgroundBrush
 
 cacheMode
 
 dragMode
 
 foregroundBrush
 
 interactive
 
 optimizationFlags
 
 renderHints
 
 resizeAnchor
 
 rubberBandSelectionMode
 
 sceneRect
 
 transformationAnchor
 
 viewportUpdateMode
 
- Properties inherited from QAbstractScrollArea
 horizontalScrollBarPolicy
 
 sizeAdjustPolicy
 
 verticalScrollBarPolicy
 
- Properties inherited from QFrame
 frameRect
 
 frameShadow
 
 frameShape
 
 frameWidth
 
 lineWidth
 
 midLineWidth
 
- Properties inherited from QWidget
 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 autoFillBackground
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cursor
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameSize
 
 fullScreen
 
 geometry
 
 height
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 palette
 
 pos
 
 rect
 
 size
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 statusTip
 
 styleSheet
 
 tabletTracking
 
 toolTip
 
 toolTipDuration
 
 updatesEnabled
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 x
 
 y
 
- Properties inherited from QObject
 objectName
 
- Public Attributes inherited from QGraphicsView
 AnchorUnderMouse
 
 AnchorViewCenter
 
 BoundingRectViewportUpdate
 
 CacheBackground
 
 CacheNone
 
 DontAdjustForAntialiasing
 
 DontSavePainterState
 
 FullViewportUpdate
 
 IndirectPainting
 
 MinimalViewportUpdate
 
 NoAnchor
 
 NoDrag
 
 NoViewportUpdate
 
 RubberBandDrag
 
 ScrollHandDrag
 
 SmartViewportUpdate
 
- Public Attributes inherited from QAbstractScrollArea
 AdjustIgnored
 
 AdjustToContents
 
 AdjustToContentsOnFirstShow
 
- Public Attributes inherited from QFrame
 Box
 
 HLine
 
 NoFrame
 
 Panel
 
 Plain
 
 Raised
 
 Shadow_Mask
 
 Shape_Mask
 
 StyledPanel
 
 Sunken
 
 VLine
 
 WinPanel
 
- Public Attributes inherited from QWidget
 DrawChildren
 
 DrawWindowBackground
 
 IgnoreMask
 
- Public Attributes inherited from QPaintDevice
 PdmDepth
 
 PdmDevicePixelRatio
 
 PdmDevicePixelRatioScaled
 
 PdmDpiX
 
 PdmDpiY
 
 PdmHeight
 
 PdmHeightMM
 
 PdmNumColors
 
 PdmPhysicalDpiX
 
 PdmPhysicalDpiY
 
 PdmWidth
 
 PdmWidthMM
 

Detailed Description

This is the canvas on which the sky is painted.

It's the main widget for KStars. Contains SkyPoint members for the map's Focus (current central position), Destination (requested central position), FocusPoint (next queued position to be focused), MousePoint (position of mouse cursor), and ClickedPoint (position of last mouse click). Also contains the InfoBoxes for on-screen data display.

SkyMap handles most user interaction events (both mouse and keyboard).

Canvas widget for displaying the sky bitmap; also handles user interaction events.

Author
Jason Harris
Version
1.0

Definition at line 53 of file skymap.h.

Member Enumeration Documentation

◆ Cursor

enum SkyMap::Cursor

Definition at line 97 of file skymap.h.

◆ Projection

enum SkyMap::Projection

Definition at line 86 of file skymap.h.

Constructor & Destructor Documentation

◆ SkyMap()

SkyMap::SkyMap ( )
protected

Constructor.

Read stored settings from KConfig object (focus position, zoom factor, sky color, etc.). Run initPopupMenus().

Definition at line 176 of file skymap.cpp.

◆ ~SkyMap()

SkyMap::~SkyMap ( )
override

Destructor (empty)

Definition at line 279 of file skymap.cpp.

Member Function Documentation

◆ clickedObject()

SkyObject * SkyMap::clickedObject ( ) const
inline

Retrieve the object nearest to a mouse click event.

 If the user clicks on the sky map, a pointer to the nearest SkyObject is stored in
 the private member ClickedObject.  This function returns the ClickedObject pointer,
 or nullptr if there is no CLickedObject.
 @return a pointer to the object nearest to a user mouse click.

Definition at line 244 of file skymap.h.

◆ clickedPoint()

SkyPoint * SkyMap::clickedPoint ( )
inline

Retrieve the ClickedPoint position.

 When the user clicks on a point in the sky map, the sky coordinates of the mouse
 cursor are stored in the private member ClickedPoint.  This function retrieves
 a pointer to ClickedPoint.
 @return a pointer to ClickedPoint, the sky coordinates where the user clicked.

Definition at line 217 of file skymap.h.

◆ Create()

SkyMap * SkyMap::Create ( )
static

Definition at line 164 of file skymap.cpp.

◆ destination()

SkyPoint * SkyMap::destination ( )
inline

retrieve the Destination position.

 The Destination is the point on the sky to which the focus will
 be moved.

 @return a pointer to the destination point of the sky map

Definition at line 135 of file skymap.h.

◆ destinationChanged

void SkyMap::destinationChanged ( )
signal

Emitted by setDestination(), and connected to slewFocus().

Whenever the Destination point is changed, slewFocus() will iteratively step the Focus toward Destination until it is reached.

See also
SkyMap::setDestination()
SkyMap::slewFocus()

◆ drawObjectLabels()

void SkyMap::drawObjectLabels ( QList< SkyObject * > & labelObjects)
inline

Proxy method for SkyMapDrawAbstract::drawObjectLabels()

Definition at line 327 of file skymap.h.

◆ event()

bool SkyMap::event ( QEvent * event)
overrideprotectedvirtual

Reimplemented from QGraphicsView.

Definition at line 413 of file skymapevents.cpp.

◆ exportSkyImage() [1/2]

void SkyMap::exportSkyImage ( QPaintDevice * pd,
bool scale = false )
inline

Proxy method for SkyMapDrawAbstract::exportSkyImage()

Definition at line 309 of file skymap.h.

◆ exportSkyImage() [2/2]

void SkyMap::exportSkyImage ( SkyQPainter * painter,
bool scale = false )
inline

Definition at line 314 of file skymap.h.

◆ focus()

SkyPoint * SkyMap::focus ( )
inline

Retrieve the Focus point; the position on the sky at the center of the skymap.

Returns
a pointer to the central focus point of the sky map

Definition at line 123 of file skymap.h.

◆ focusObject()

SkyObject * SkyMap::focusObject ( ) const
inline

Retrieve the object which is centered in the sky map.

 If the user centers the sky map on an object (by double-clicking or using the
 Find Object dialog), a pointer to the "focused" object is stored in
 the private member FocusObject.  This function returns a pointer to the
 FocusObject, or nullptr if there is not FocusObject.
 @return a pointer to the object at the center of the sky map.

Definition at line 262 of file skymap.h.

◆ focusPoint()

SkyPoint * SkyMap::focusPoint ( )
inline

retrieve the FocusPoint position.

 The FocusPoint stores the position on the sky that is to be
 focused next.  This is not exactly the same as the Destination
 point, because when the Destination is set, it will begin slewing
 immediately.

 @return a pointer to the sky point which is to be focused next.

Definition at line 149 of file skymap.h.

◆ forceUpdate

void SkyMap::forceUpdate ( bool now = false)
slot

Recalculates the positions of objects in the sky, and then repaints the sky map.

If the positions don't need to be recalculated, use update() instead of forceUpdate(). This saves a lot of CPU time.

Parameters
nowif true, paintEvent() is run immediately. Otherwise, it is added to the event queue

Definition at line 1186 of file skymap.cpp.

◆ forceUpdateNow

void SkyMap::forceUpdateNow ( )
inlineslot

Convenience function; simply calls forceUpdate(true).

See also
forceUpdate()

Definition at line 378 of file skymap.h.

◆ fov()

float SkyMap::fov ( )
Returns
the angular field of view of the sky map, in degrees.
Note
it must use either the height or the width of the window to calculate the FOV angle. It chooses whichever is larger.

Definition at line 1206 of file skymap.cpp.

◆ getCenterPoint()

SkyPoint SkyMap::getCenterPoint ( )

Definition at line 845 of file skymap.cpp.

◆ getSkyMapDrawAbstract()

SkyMapDrawAbstract * SkyMap::getSkyMapDrawAbstract ( )
inline

Definition at line 319 of file skymap.h.

◆ Instance()

SkyMap * SkyMap::Instance ( )
static

Definition at line 171 of file skymap.cpp.

◆ IsFocused()

static bool SkyMap::IsFocused ( )
inlinestatic

Definition at line 72 of file skymap.h.

◆ isInFovCaptureMode()

bool SkyMap::isInFovCaptureMode ( ) const
inline

Definition at line 357 of file skymap.h.

◆ isInObjectPointingMode()

bool SkyMap::isInObjectPointingMode ( ) const
inline

Definition at line 342 of file skymap.h.

◆ isObjectLabeled()

bool SkyMap::isObjectLabeled ( SkyObject * o)
Returns
true if the object currently has a user label attached.
Note
this function only checks for a label explicitly added to the object with the right-click popup menu; other kinds of labels are not detected by this function.
Parameters
opointer to the sky object to be tested for a User label.

Definition at line 840 of file skymap.cpp.

◆ IsSlewing()

static bool SkyMap::IsSlewing ( )
inlinestatic

Definition at line 78 of file skymap.h.

◆ isSlewing()

bool SkyMap::isSlewing ( ) const

Definition at line 1373 of file skymap.cpp.

◆ keyPressEvent()

void SkyMap::keyPressEvent ( QKeyEvent * e)
overrideprotectedvirtual

Process keystrokes:

  • arrow keys Slew the map
  • +/- keys Zoom in and out
  • Space Toggle between Horizontal and Equatorial coordinate systems
  • 0-9 Go to a major Solar System body (0=Sun; 1-9 are the major planets, except 3=Moon)
  • [ Place starting point for measuring an angular distance
  • ] End point for Angular Distance; display measurement.
  • Escape Cancel Angular measurement
  • ,/< Step backward one time step
  • ./> Step forward one time step

Reimplemented from QGraphicsView.

Definition at line 48 of file skymapevents.cpp.

◆ keyReleaseEvent()

void SkyMap::keyReleaseEvent ( QKeyEvent * e)
overrideprotectedvirtual

When keyRelease is triggered, just set the "slewing" flag to false, and update the display (to draw objects that are hidden when slewing==true).

Reimplemented from QGraphicsView.

Definition at line 477 of file skymapevents.cpp.

◆ mosaicCenterChanged

void SkyMap::mosaicCenterChanged ( dms dRA,
dms dDE )
signal

Emitter when mosaic center is dragged in the sky map.

◆ mouseDoubleClickEvent()

void SkyMap::mouseDoubleClickEvent ( QMouseEvent * e)
overrideprotectedvirtual

Center SkyMap at double-clicked location

Reimplemented from QGraphicsView.

Definition at line 861 of file skymapevents.cpp.

◆ mouseMoveEvent()

void SkyMap::mouseMoveEvent ( QMouseEvent * e)
overrideprotectedvirtual

This function does several different things depending on the state of the program:

  • If Angle-measurement mode is active, update the end-ruler point to the mouse cursor, and continue this function.
  • If we are defining a ZoomBox, update the ZoomBox rectangle, redraw the screen, and return.
  • If dragging the mouse in the map, update focus such that RA, Dec under the mouse cursor remains constant.
  • If just moving the mouse, simply update the curso coordinates in the status bar.

Reimplemented from QGraphicsView.

Definition at line 503 of file skymapevents.cpp.

◆ mousePoint()

SkyPoint * SkyMap::mousePoint ( )
inline

Retrieve the mouse pointer position.

Returns
The sky coordinates where the mouse pointer is over.

Definition at line 227 of file skymap.h.

◆ mousePointChanged

void SkyMap::mousePointChanged ( SkyPoint * )
signal

Emitted when position under mouse changed.

◆ mousePressEvent()

void SkyMap::mousePressEvent ( QMouseEvent * e)
overrideprotectedvirtual

Determine RA, Dec coordinates of clicked location.

Find the SkyObject which is nearest to the clicked location.

If left-clicked: Set set mouseButtonDown==true, slewing==true; display nearest object name in status bar. If right-clicked: display popup menu appropriate for nearest object.

Reimplemented from QGraphicsView.

Definition at line 760 of file skymapevents.cpp.

◆ mouseReleaseEvent()

void SkyMap::mouseReleaseEvent ( QMouseEvent * e)
overrideprotectedvirtual

set mouseButtonDown==false, slewing==false

Reimplemented from QGraphicsView.

Definition at line 697 of file skymapevents.cpp.

◆ objectChanged

void SkyMap::objectChanged ( SkyObject * )
signal

Emitted when current object changed.

◆ objectClicked

void SkyMap::objectClicked ( SkyObject * )
signal

Emitted when a position is clicked.

◆ positionChanged

void SkyMap::positionChanged ( SkyPoint * )
signal

Emitted when pointing changed.

(At least should)

◆ positionClicked

void SkyMap::positionClicked ( SkyPoint * )
signal

Emitted when a position is clicked.

◆ projector()

const Projector * SkyMap::projector ( ) const
inline

Get the current projector.

Returns
a pointer to the current projector.

Definition at line 300 of file skymap.h.

◆ removeSkyObject

void SkyMap::removeSkyObject ( SkyObject * object)
signal

Emitted when a sky object is removed from the database.

◆ resizeEvent()

void SkyMap::resizeEvent ( QResizeEvent * )
overrideprotectedvirtual

If the skymap will be resized, the sky must be new computed.

So this function calls explicitly new computing of the skymap.

Reimplemented from QGraphicsView.

Definition at line 32 of file skymapevents.cpp.

◆ setClickedObject()

void SkyMap::setClickedObject ( SkyObject * o)

Set the ClickedObject pointer to the argument.

Parameters
opointer to the SkyObject to be assigned as the ClickedObject

Definition at line 366 of file skymap.cpp.

◆ setClickedPoint()

void SkyMap::setClickedPoint ( const SkyPoint * f)

Set the ClickedPoint to the skypoint given as an argument.

Parameters
fpointer to the new ClickedPoint.

Definition at line 1021 of file skymap.cpp.

◆ setDestination() [1/2]

void SkyMap::setDestination ( const dms & ra,
const dms & dec )

sets the destination point of the skymap, using ra/dec coordinates.

 @note This function behaves essentially like the above function.
 It differs only in the data types of its arguments.

 @param ra the new right ascension
 @param dec the new declination

Definition at line 998 of file skymap.cpp.

◆ setDestination() [2/2]

void SkyMap::setDestination ( const SkyPoint & f)

sets the destination point of the sky map.

Note
setDestination() emits the destinationChanged() SIGNAL, which triggers the SLOT function SkyMap::slewFocus(). This function iteratively steps the Focus point toward Destination, repainting the sky at each step (if Options::useAnimatedSlewing()==true).
Parameters
fa pointer to the SkyPoint the map should slew to

Definition at line 993 of file skymap.cpp.

◆ setDestinationAltAz()

void SkyMap::setDestinationAltAz ( const dms & alt,
const dms & az,
bool altIsRefracted )

sets the destination point of the sky map, using its alt/az coordinates.

Parameters
altthe new altitude
azthe new azimuth
altIsRefractedset to true if the altitude supplied is apparent

Definition at line 1005 of file skymap.cpp.

◆ setFocus() [1/2]

void SkyMap::setFocus ( const dms & ra,
const dms & dec )

sets the focus point of the skymap, using ra/dec coordinates

 @note This function behaves essentially like the above function.
 It differs only in the data types of its arguments.

 @param ra the new right ascension
 @param dec the new declination

Definition at line 972 of file skymap.cpp.

◆ setFocus() [2/2]

void SkyMap::setFocus ( SkyPoint * f)

sets the central focus point of the sky map.

Parameters
fa pointer to the SkyPoint the map should be centered on

Definition at line 967 of file skymap.cpp.

◆ setFocusAltAz()

void SkyMap::setFocusAltAz ( const dms & alt,
const dms & az )

sets the focus point of the sky map, using its alt/az coordinates

Parameters
altthe new altitude (actual, without refraction correction)
azthe new azimuth

Definition at line 981 of file skymap.cpp.

◆ setFocusObject()

void SkyMap::setFocusObject ( SkyObject * o)

Set the FocusObject pointer to the argument.

Parameters
opointer to the SkyObject to be assigned as the FocusObject

Definition at line 371 of file skymap.cpp.

◆ setFocusPoint()

void SkyMap::setFocusPoint ( SkyPoint * f)
inline

set the FocusPoint; the position that is to be the next Destination.

Parameters
fa pointer to the FocusPoint SkyPoint.

Definition at line 204 of file skymap.h.

◆ setFovCaptureMode()

void SkyMap::setFovCaptureMode ( bool enabled)
inline

Definition at line 352 of file skymap.h.

◆ setLegend()

void SkyMap::setLegend ( const Legend & legend)
inline

Definition at line 337 of file skymap.h.

◆ setMouseCursorShape()

void SkyMap::setMouseCursorShape ( Cursor type)

Sets the shape of the default mouse cursor.

Definition at line 1318 of file skymap.cpp.

◆ setObjectPointingMode()

void SkyMap::setObjectPointingMode ( bool enabled)
inline

Definition at line 347 of file skymap.h.

◆ setPreviewLegend()

void SkyMap::setPreviewLegend ( bool preview)
inline

Definition at line 332 of file skymap.h.

◆ setupProjector()

void SkyMap::setupProjector ( )

Call to set up the projector before a draw cycle.

Definition at line 1255 of file skymap.cpp.

◆ setZoomFactor()

void SkyMap::setZoomFactor ( double factor)

@ Set zoom factor.

Parameters
factorzoom factor

Definition at line 1176 of file skymap.cpp.

◆ showFocusCoords()

void SkyMap::showFocusCoords ( )

Update object name and coordinates in the Focus InfoBox.

Definition at line 327 of file skymap.cpp.

◆ slewFocus

void SkyMap::slewFocus ( )
slot

Step the Focus point toward the Destination point.

Do this iteratively, redrawing the Sky Map after each step, until the Focus point is within 1 step of the Destination point. For the final step, snap directly to Destination, and redraw the map.

Definition at line 1046 of file skymap.cpp.

◆ slotAddFlag

void SkyMap::slotAddFlag ( )
slot

Open Flag Manager window with clickedObject() RA and Dec entered.

Definition at line 755 of file skymap.cpp.

◆ slotAddFlagRaw

void SkyMap::slotAddFlagRaw ( )
slot

Open Flag Manager window with RA and Dec entered.

Definition at line 785 of file skymap.cpp.

◆ slotAddObjectLabel

void SkyMap::slotAddObjectLabel ( )
slot

Add ClickedObject to KStarsData::ObjLabelList, which stores pointers to SkyObjects which have User Labels attached.

Definition at line 881 of file skymap.cpp.

◆ slotAddPlanetTrail

void SkyMap::slotAddPlanetTrail ( )
slot

Add a Planet Trail to ClickedObject.

Note
Trails are added simply by calling KSPlanetBase::addToTrail() to add the first point. as long as the trail is not empty, new points will be automatically appended to it.
if ClickedObject is not a Solar System body, this function does nothing.
See also
KSPlanetBase::addToTrail()

Definition at line 897 of file skymap.cpp.

◆ slotBeginAngularDistance

void SkyMap::slotBeginAngularDistance ( )
slot

Enables the angular distance measuring mode.

It saves the first position of the ruler in a SkyPoint. It makes difference between having clicked on the skymap and not having done so

Note
This method is draw-backend independent.

Definition at line 607 of file skymap.cpp.

◆ slotBeginStarHop

void SkyMap::slotBeginStarHop ( )
slot

Definition at line 612 of file skymap.cpp.

◆ slotCancelLegendPreviewMode

void SkyMap::slotCancelLegendPreviewMode ( )
slot

Definition at line 929 of file skymap.cpp.

◆ slotCancelRulerMode

void SkyMap::slotCancelRulerMode ( void )
slot

Disables the angular distance measuring mode.

Nothing is printed in the status bar

Definition at line 749 of file skymap.cpp.

◆ slotCaptureFov

void SkyMap::slotCaptureFov ( )
slot

Definition at line 945 of file skymap.cpp.

◆ slotCenter

void SkyMap::slotCenter ( )
slot

Center the display at the point ClickedPoint.

The essential part of the function is to simply set the Destination point, which will emit the destinationChanged() SIGNAL, which triggers the slewFocus() SLOT. Additionally, this function performs some bookkeeping tasks, such updating whether we are tracking the new object/position, adding a Planet Trail if required, etc.

See also
destinationChanged()
slewFocus()

Definition at line 380 of file skymap.cpp.

◆ slotClockSlewing

void SkyMap::slotClockSlewing ( )
slot

Checks whether the timestep exceeds a threshold value.

If so, sets ClockSlewing=true and sets the SimClock to ManualMode.

Definition at line 953 of file skymap.cpp.

◆ slotCopyCoordinates

void SkyMap::slotCopyCoordinates ( )
slot

slotCopyCoordinates Copies J2000 and JNow equatorial coordinates to the clipboard in addition to horizontal coords.

Definition at line 504 of file skymap.cpp.

◆ slotCopyTLE

void SkyMap::slotCopyTLE ( )
slot

slotCopyTLE Copy satellite TLE to clipboard.

Definition at line 546 of file skymap.cpp.

◆ slotDeleteFlag

void SkyMap::slotDeleteFlag ( int flagIdx)
slot

Delete selected flag.

Parameters
flagIdxindex of flag to be deleted.

Definition at line 807 of file skymap.cpp.

◆ slotDetail

void SkyMap::slotDetail ( )
slot

Popup menu function: Show the Detailed Information window for ClickedObject.

Definition at line 907 of file skymap.cpp.

◆ slotDisplayFadingText

void SkyMap::slotDisplayFadingText ( const QString & text)
slot

Render a fading text label on the screen to flash information.

Definition at line 1386 of file skymap.cpp.

◆ slotDSS

void SkyMap::slotDSS ( )
slot

Popup menu function: Display 1st-Generation DSS image with the Image Viewer.

Note
the URL is generated using the coordinates of ClickedPoint.

Definition at line 472 of file skymap.cpp.

◆ slotEditFlag

void SkyMap::slotEditFlag ( int flagIdx)
slot

Open Flag Manager window with selected flag focused and ready to edit.

Parameters
flagIdxindex of flag to be edited.

Definition at line 798 of file skymap.cpp.

◆ slotEndRulerMode

void SkyMap::slotEndRulerMode ( )
slot

Computes the angular distance, prints the result in the status bar and disables the angular distance measuring mode If the user has clicked on the map the status bar shows the name of the clicked object plus the angular distance.

If the user did not clicked on the map, just pressed ], only the angular distance is printed

Note
This method is draw-backend independent.

Definition at line 643 of file skymap.cpp.

◆ slotFinishFovCaptureMode

void SkyMap::slotFinishFovCaptureMode ( )
slot

Definition at line 936 of file skymap.cpp.

◆ slotImage

void SkyMap::slotImage ( )
slot

Popup menu function: Show image of ClickedObject (only available for some objects).

Definition at line 821 of file skymap.cpp.

◆ slotInfo

void SkyMap::slotInfo ( )
slot

Popup menu function: Show webpage about ClickedObject (only available for some objects).

Definition at line 831 of file skymap.cpp.

◆ slotObjectSelected

void SkyMap::slotObjectSelected ( )
slot

Object pointing for Printing Wizard done.

Definition at line 920 of file skymap.cpp.

◆ slotRemoveCustomObject

void SkyMap::slotRemoveCustomObject ( )
slot

Remove custom object from internet search in the local catalog.

Definition at line 861 of file skymap.cpp.

◆ slotRemoveObjectLabel

void SkyMap::slotRemoveObjectLabel ( )
slot

Remove ClickedObject from KStarsData::ObjLabelList, which stores pointers to SkyObjects which have User Labels attached.

Definition at line 855 of file skymap.cpp.

◆ slotRemovePlanetTrail

void SkyMap::slotRemovePlanetTrail ( )
slot

Remove the PlanetTrail from ClickedObject.

Note
The Trail is removed by simply calling KSPlanetBase::clearTrail(). As long as the trail is empty, no new points will be automatically appended.
See also
KSPlanetBase::clearTrail()

Definition at line 887 of file skymap.cpp.

◆ slotSDSS

void SkyMap::slotSDSS ( )
slot

Popup menu function: Display Sloan Digital Sky Survey image with the Image Viewer.

Note
the URL is generated using the coordinates of ClickedPoint.

Definition at line 563 of file skymap.cpp.

◆ slotSetSkyRotation

void SkyMap::slotSetSkyRotation ( double angle)
slot

Sets the base sky rotation (before correction) to the given angle.

Definition at line 1231 of file skymap.cpp.

◆ slotStartXplanetViewer

void SkyMap::slotStartXplanetViewer ( )
slot

Run Xplanet Viewer to display images of the planets.

Definition at line 1378 of file skymap.cpp.

◆ slotToggleFocusBox

void SkyMap::slotToggleFocusBox ( bool flag)
slot

Toggle visibility of focus infobox.

Definition at line 263 of file skymap.cpp.

◆ slotToggleGeoBox

void SkyMap::slotToggleGeoBox ( bool flag)
slot

Toggle visibility of geo infobox.

Definition at line 258 of file skymap.cpp.

◆ slotToggleInfoboxes

void SkyMap::slotToggleInfoboxes ( bool flag)
slot

Toggle visibility of all infoboxes.

Definition at line 273 of file skymap.cpp.

◆ slotToggleTimeBox

void SkyMap::slotToggleTimeBox ( bool flag)
slot

Toggle visibility of time infobox.

Definition at line 268 of file skymap.cpp.

◆ slotUpdateSky

void SkyMap::slotUpdateSky ( bool now)
slot

Update the focus point and call forceUpdate()

Parameters
nowis passed on to forceUpdate()

Definition at line 458 of file skymap.cpp.

◆ slotZoomDefault

void SkyMap::slotZoomDefault ( )
slot

Set default zoom.

Definition at line 1171 of file skymap.cpp.

◆ slotZoomIn

void SkyMap::slotZoomIn ( )
slot

Zoom in one step.

Definition at line 1161 of file skymap.cpp.

◆ slotZoomOut

void SkyMap::slotZoomOut ( )
slot

Zoom out one step.

Definition at line 1166 of file skymap.cpp.

◆ stopTracking()

void SkyMap::stopTracking ( )

Definition at line 404 of file skymapevents.cpp.

◆ updateAngleRuler()

void SkyMap::updateAngleRuler ( )

update the geometry of the angle ruler.

Definition at line 1366 of file skymap.cpp.

◆ updateFocus()

void SkyMap::updateFocus ( )

Update the focus position according to current options.

Definition at line 1026 of file skymap.cpp.

◆ updateInfoBoxes()

void SkyMap::updateInfoBoxes ( )

Update info boxes coordinates.

Definition at line 335 of file skymap.cpp.

◆ wheelEvent()

void SkyMap::wheelEvent ( QWheelEvent * e)
overrideprotectedvirtual

Zoom in and out with the mouse wheel.

Reimplemented from QGraphicsView.

Definition at line 689 of file skymapevents.cpp.

◆ zoomChanged

void SkyMap::zoomChanged ( )
signal

Emitted when zoom level is changed.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.