Changeset View
Changeset View
Standalone View
Standalone View
kstars/fitsviewer/fitsview.h
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
121 | void drawStarCentroid(QPainter *); | 121 | void drawStarCentroid(QPainter *); | ||
122 | void drawTrackingBox(QPainter *); | 122 | void drawTrackingBox(QPainter *); | ||
123 | void drawMarker(QPainter *); | 123 | void drawMarker(QPainter *); | ||
124 | void drawCrosshair(QPainter *); | 124 | void drawCrosshair(QPainter *); | ||
125 | void drawEQGrid(QPainter *); | 125 | void drawEQGrid(QPainter *); | ||
126 | void drawObjectNames(QPainter *painter); | 126 | void drawObjectNames(QPainter *painter); | ||
127 | void drawPixelGrid(QPainter *painter); | 127 | void drawPixelGrid(QPainter *painter); | ||
128 | 128 | | |||
129 | bool isImageStretched(); | ||||
129 | bool isCrosshairShown(); | 130 | bool isCrosshairShown(); | ||
130 | bool areObjectsShown(); | 131 | bool areObjectsShown(); | ||
131 | bool isEQGridShown(); | 132 | bool isEQGridShown(); | ||
132 | bool isPixelGridShown(); | 133 | bool isPixelGridShown(); | ||
133 | bool imageHasWCS(); | 134 | bool imageHasWCS(); | ||
134 | 135 | | |||
136 | // Setup the graphics. | ||||
135 | void updateFrame(); | 137 | void updateFrame(); | ||
136 | 138 | | |||
137 | bool isTelescopeActive(); | 139 | bool isTelescopeActive(); | ||
138 | 140 | | |||
139 | void enterEvent(QEvent *event) override; | 141 | void enterEvent(QEvent *event) override; | ||
140 | void leaveEvent(QEvent *event) override; | 142 | void leaveEvent(QEvent *event) override; | ||
141 | CursorMode getCursorMode(); | 143 | CursorMode getCursorMode(); | ||
142 | void setCursorMode(CursorMode mode); | 144 | void setCursorMode(CursorMode mode); | ||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 206 | public slots: | |||
217 | 219 | | |||
218 | // Stars | 220 | // Stars | ||
219 | void toggleStars(); | 221 | void toggleStars(); | ||
220 | void toggleStarProfile(); | 222 | void toggleStarProfile(); | ||
221 | void viewStarProfile(); | 223 | void viewStarProfile(); | ||
222 | 224 | | |||
223 | void centerTelescope(); | 225 | void centerTelescope(); | ||
224 | 226 | | |||
227 | void toggleStretch(); | ||||
228 | | ||||
225 | virtual void processPointSelection(int x, int y); | 229 | virtual void processPointSelection(int x, int y); | ||
226 | virtual void processMarkerSelection(int x, int y); | 230 | virtual void processMarkerSelection(int x, int y); | ||
227 | void move3DTrackingBox(int x, int y); | 231 | void move3DTrackingBox(int x, int y); | ||
228 | void resizeTrackingBox(int newSize); | 232 | void resizeTrackingBox(int newSize); | ||
229 | 233 | | |||
230 | protected slots: | 234 | protected slots: | ||
231 | /** | 235 | /** | ||
232 | * @brief syncWCSState Update toolbar and actions depending on whether WCS is available or not | 236 | * @brief syncWCSState Update toolbar and actions depending on whether WCS is available or not | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 269 | private: | |||
295 | bool markStars { false }; | 299 | bool markStars { false }; | ||
296 | bool showStarProfile { false }; | 300 | bool showStarProfile { false }; | ||
297 | bool showCrosshair { false }; | 301 | bool showCrosshair { false }; | ||
298 | bool showObjects { false }; | 302 | bool showObjects { false }; | ||
299 | bool showEQGrid { false }; | 303 | bool showEQGrid { false }; | ||
300 | bool showPixelGrid { false }; | 304 | bool showPixelGrid { false }; | ||
301 | bool showStarsHFR { false }; | 305 | bool showStarsHFR { false }; | ||
302 | 306 | | |||
307 | bool stretchImage { false }; | ||||
308 | | ||||
303 | struct | 309 | struct | ||
304 | { | 310 | { | ||
305 | bool used() const | 311 | bool used() const | ||
306 | { | 312 | { | ||
307 | return innerRadius != 0.0f || outerRadius != 1.0f; | 313 | return innerRadius != 0.0f || outerRadius != 1.0f; | ||
308 | } | 314 | } | ||
309 | float innerRadius { 0.0f }; | 315 | float innerRadius { 0.0f }; | ||
310 | float outerRadius { 1.0f }; | 316 | float outerRadius { 1.0f }; | ||
Show All 23 Lines | |||||
334 | 340 | | |||
335 | // Floating toolbar | 341 | // Floating toolbar | ||
336 | QToolBar *floatingToolBar { nullptr }; | 342 | QToolBar *floatingToolBar { nullptr }; | ||
337 | QAction *centerTelescopeAction { nullptr }; | 343 | QAction *centerTelescopeAction { nullptr }; | ||
338 | QAction *toggleEQGridAction { nullptr }; | 344 | QAction *toggleEQGridAction { nullptr }; | ||
339 | QAction *toggleObjectsAction { nullptr }; | 345 | QAction *toggleObjectsAction { nullptr }; | ||
340 | QAction *toggleStarsAction { nullptr }; | 346 | QAction *toggleStarsAction { nullptr }; | ||
341 | QAction *toggleProfileAction { nullptr }; | 347 | QAction *toggleProfileAction { nullptr }; | ||
348 | QAction *toggleStretchAction { nullptr }; | ||||
349 | | ||||
342 | 350 | | |||
343 | //Star Profile Viewer | 351 | //Star Profile Viewer | ||
344 | #ifdef HAVE_DATAVISUALIZATION | 352 | #ifdef HAVE_DATAVISUALIZATION | ||
345 | QPointer<StarProfileViewer> starProfileWidget; | 353 | QPointer<StarProfileViewer> starProfileWidget; | ||
346 | #endif | 354 | #endif | ||
347 | 355 | | |||
348 | signals: | 356 | signals: | ||
349 | void newStatus(const QString &msg, FITSBar id); | 357 | void newStatus(const QString &msg, FITSBar id); | ||
Show All 10 Lines |