Isis Developer Reference
ControlMeasureEditWidget.h
Go to the documentation of this file.
1#ifndef ControlMeasureEditWidget_h
2#define ControlMeasureEditWidget_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12// This is the only include allowed in this file!
13#include <QWidget>
14
15
16class QCheckBox;
17class QDial;
18class QDoubleSpinBox;
19class QHBoxLayout;
20class QLabel;
21class QLCDNumber;
22class QListWidget;
23class QPalette;
24class QPushButton;
25class QRadioButton;
26class QScrollBar;
27class QString;
28class QTimer;
29class QToolButton;
30class QVBoxLayout;
31
32namespace Isis {
33 class AutoReg;
34 class Chip;
35 class ChipViewport;
36 class ControlMeasure;
37 class ControlNet;
38 class ControlPoint;
39 class Cube;
40 class CubeViewport;
41 class SerialNumberList;
42 class Stretch;
43 class Tool;
44 class UniversalGroundMap;
45
175 Q_OBJECT
176
177 public:
178 ControlMeasureEditWidget(QWidget *parent = 0, bool allowLeftMouse = false,
179 bool useGeometry = true);
187 return m_templateFileName;
188 };
189 void allowLeftMouse(bool allowMouse);
190
191 void setLeftPosition(double sample, double line);
192 void setRightPosition(double sample, double line);
193
194 signals:
195 void updateLeftView(double sample, double line);
196 void updateRightView(double sample, double line);
199 void setTemplateFailed(QString);
201
202 public slots:
203 bool setTemplateFile(QString);
204 void setPoint(ControlPoint *editPoint, SerialNumberList *snList);
205 void setLeftMeasure(ControlMeasure *leftMeasure,
206 Cube *leftCube, QString pointId);
207 void setRightMeasure(ControlMeasure *rightMeasure,
208 Cube *rightCube, QString pointId);
209 void colorizeSaveButton();
210 void refreshChips();
211 void saveChips();
212
213 protected slots:
214
215 private slots:
216
217 void setNoGeom();
218 void setGeom();
219 void setRotate();
220 void setCircle(bool);
221 void setZoomLink(bool);
222
223 void findPoint();
224 void registerPoint();
225 void saveMeasure();
226 void updateLeftPositionLabel(double zoomFactor);
227 void updateRightGeom();
228 void updateRightPositionLabel(double zoomFactor);
229
230 void blinkStart();
231 void blinkStop();
232 void changeBlinkTime(double interval);
233 void updateBlink();
234
235 void showBlinkExtension();
236 void blinkStartRight();
237 void blinkStopRight();
238 void changeBlinkTimeRight(double interval);
239 void updateBlinkRight();
240
241
242 private:
243 void createMeasureEditor(QWidget *parent);
244
245 bool m_allowLeftMouse;
246 bool m_useGeometry;
247
248 QString m_templateFileName;
249 QLabel *m_leftZoomFactor;
250 QLabel *m_rightZoomFactor;
251 QLabel *m_leftSampLinePosition;
252 QLabel *m_rightSampLinePosition;
253 QLabel *m_leftLatLonPosition;
254 QLabel *m_rightLatLonPosition;
255 QRadioButton *m_nogeom;
256 QRadioButton *m_geom;
257 QToolButton *m_rightZoomIn;
258 QToolButton *m_rightZoomOut;
259 QToolButton *m_rightZoom1;
260
261 bool m_timerOn;
262 QTimer *m_timer;
263 QList<ChipViewport *> m_blinkList;
264 unsigned char m_blinkIndex;
265
266 QDial *m_dial;
267 QLCDNumber *m_dialNumber;
268 QDoubleSpinBox *m_blinkTimeBox;
269
270 bool m_circle;
271 QScrollBar *m_slider;
272
273 QPushButton *m_autoReg;
274 QWidget *m_autoRegExtension;
275 QLabel *m_oldPosition;
276 QLabel *m_goodFit;
277 bool m_autoRegShown;
278 bool m_autoRegAttempted;
279
280 QPushButton *m_saveMeasure;
281 QPalette m_saveDefaultPalette;
282
283 ChipViewport *m_leftView;
284 ChipViewport *m_rightView;
285
286 Cube *m_leftCube;
287 Cube *m_rightCube;
288 ControlMeasure *m_leftMeasure;
289 ControlMeasure *m_rightMeasure;
290 Chip *m_leftChip;
291 Chip *m_rightChip;
292 UniversalGroundMap *m_leftGroundMap;
293 UniversalGroundMap *m_rightGroundMap;
294
295 AutoReg *m_autoRegFact;
296 QString m_pointId;
297
298 int m_rotation;
299 bool m_geomIt;
300 bool m_linkZoom;
301
302
303
304 ControlPoint *m_editPoint;
305 SerialNumberList *m_serialNumberList;
306 QWidget *m_blinkExtension;
307 QListWidget *m_blinkListWidget;
308
309
310 QDoubleSpinBox *m_blinkTimeBoxRight;
311 bool m_timerOnRight;
312 QTimer *m_timerRight;
313 QList<ChipViewport *> m_blinkChipViewportListRight;
314 unsigned char m_blinkIndexRight;
315
316 };
317};
318
319#endif
Auto Registration class.
Definition AutoReg.h:167
A small chip of data used for pattern matching.
Definition Chip.h:86
Viewport for Isis Chips.
Definition ChipViewport.h:71
Point Editor Widget.
Definition ControlMeasureEditWidget.h:174
void saveChips()
Slot to save registration chips to files and fire off qview.
Definition ControlMeasureEditWidget.cpp:1705
void setRightPosition(double sample, double line)
Set the tack position of the measure in the right ChipViewport.
Definition ControlMeasureEditWidget.cpp:788
void setLeftMeasure(ControlMeasure *leftMeasure, Cube *leftCube, QString pointId)
Set the measure displayed in the left ChipViewport.
Definition ControlMeasureEditWidget.cpp:731
void colorizeSaveButton()
Turn "Save Measure" button text to red.
Definition ControlMeasureEditWidget.cpp:967
void updateLeftView(double sample, double line)
void allowLeftMouse(bool allowMouse)
Set the option that allows mouse movements in the left ChipViewport.
Definition ControlMeasureEditWidget.cpp:1668
~ControlMeasureEditWidget()
Destructor.
Definition ControlMeasureEditWidget.cpp:90
void setPoint(ControlPoint *editPoint, SerialNumberList *snList)
Set the Control Point for this widget.
Definition ControlMeasureEditWidget.cpp:1740
void updateRightView(double sample, double line)
ControlMeasureEditWidget(QWidget *parent=0, bool allowLeftMouse=false, bool useGeometry=true)
Constructs a ControlMeasureEditWidget widget.
Definition ControlMeasureEditWidget.cpp:64
void stretchChipViewport(Stretch *, CubeViewport *)
bool setTemplateFile(QString)
Allows user to choose a new template file by opening a window from which to select a filename.
Definition ControlMeasureEditWidget.cpp:1624
void newControlNetwork(ControlNet *)
void setLeftPosition(double sample, double line)
Set the tack position of the measure in the left ChipViewport.
Definition ControlMeasureEditWidget.cpp:774
void setRightMeasure(ControlMeasure *rightMeasure, Cube *rightCube, QString pointId)
Set the measure displayed in the right ChipViewport.
Definition ControlMeasureEditWidget.cpp:821
void refreshChips()
Definition ControlMeasureEditWidget.cpp:1690
QString templateFileName()
Returns the template filename used for auto-registration.
Definition ControlMeasureEditWidget.h:186
a control measurement
Definition ControlMeasure.h:175
a control network
Definition ControlNet.h:258
A single control point.
Definition ControlPoint.h:356
IO Handler for Isis Cubes.
Definition Cube.h:168
Widget to display Isis cubes for qt apps.
Definition CubeViewport.h:122
Serial Number list generator.
Definition SerialNumberList.h:64
Pixel value mapper.
Definition Stretch.h:58
Universal Ground Map.
Definition UniversalGroundMap.h:69
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16