File failed to load: https://isis.astrogeology.usgs.gov/3.9.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Developer Reference
ControlMeasureEditWidget.h
Go to the documentation of this file.
1 #ifndef ControlMeasureEditWidget_h
2 #define ControlMeasureEditWidget_h
3 
4 // This is the only include allowed in this file!
5 #include <QWidget>
6 
7 
8 class QCheckBox;
9 class QDial;
10 class QDoubleSpinBox;
11 class QHBoxLayout;
12 class QLabel;
13 class QLCDNumber;
14 class QListWidget;
15 class QPalette;
16 class QPushButton;
17 class QRadioButton;
18 class QScrollBar;
19 class QString;
20 class QTimer;
21 class QToolButton;
22 class QVBoxLayout;
23 
24 namespace Isis {
25  class AutoReg;
26  class Chip;
27  class ChipViewport;
28  class ControlMeasure;
29  class ControlNet;
30  class ControlPoint;
31  class Cube;
32  class CubeViewport;
33  class SerialNumberList;
34  class Stretch;
35  class Tool;
36  class UniversalGroundMap;
37 
167  Q_OBJECT
168 
169  public:
170  ControlMeasureEditWidget(QWidget *parent = 0, bool allowLeftMouse = false,
171  bool useGeometry = true);
178  QString templateFileName() {
179  return m_templateFileName;
180  };
181  void allowLeftMouse(bool allowMouse);
182 
183  void setLeftPosition(double sample, double line);
184  void setRightPosition(double sample, double line);
185 
186  signals:
187  void updateLeftView(double sample, double line);
188  void updateRightView(double sample, double line);
189  void measureSaved();
191  void setTemplateFailed(QString);
193 
194  public slots:
195  bool setTemplateFile(QString);
196  void setPoint(ControlPoint *editPoint, SerialNumberList *snList);
197  void setLeftMeasure(ControlMeasure *leftMeasure,
198  Cube *leftCube, QString pointId);
199  void setRightMeasure(ControlMeasure *rightMeasure,
200  Cube *rightCube, QString pointId);
201  void colorizeSaveButton();
202  void refreshChips();
203  void saveChips();
204 
205  protected slots:
206 
207  private slots:
208 
209  void setNoGeom();
210  void setGeom();
211  void setRotate();
212  void setCircle(bool);
213  void setZoomLink(bool);
214 
215  void findPoint();
216  void registerPoint();
217  void saveMeasure();
218  void updateLeftPositionLabel(double zoomFactor);
219  void updateRightGeom();
220  void updateRightPositionLabel(double zoomFactor);
221 
222  void blinkStart();
223  void blinkStop();
224  void changeBlinkTime(double interval);
225  void updateBlink();
226 
227  void showBlinkExtension();
228  void blinkStartRight();
229  void blinkStopRight();
230  void changeBlinkTimeRight(double interval);
231  void updateBlinkRight();
232 
233 
234  private:
235  void createMeasureEditor(QWidget *parent);
236 
237  bool m_allowLeftMouse;
238  bool m_useGeometry;
239 
240  QString m_templateFileName;
241  QLabel *m_leftZoomFactor;
242  QLabel *m_rightZoomFactor;
243  QLabel *m_leftSampLinePosition;
244  QLabel *m_rightSampLinePosition;
245  QLabel *m_leftLatLonPosition;
246  QLabel *m_rightLatLonPosition;
247  QRadioButton *m_nogeom;
248  QRadioButton *m_geom;
249  QToolButton *m_rightZoomIn;
250  QToolButton *m_rightZoomOut;
251  QToolButton *m_rightZoom1;
252 
253  bool m_timerOn;
254  QTimer *m_timer;
255  QList<ChipViewport *> m_blinkList;
256  unsigned char m_blinkIndex;
257 
258  QDial *m_dial;
259  QLCDNumber *m_dialNumber;
260  QDoubleSpinBox *m_blinkTimeBox;
261 
262  bool m_circle;
263  QScrollBar *m_slider;
264 
265  QPushButton *m_autoReg;
266  QWidget *m_autoRegExtension;
267  QLabel *m_oldPosition;
268  QLabel *m_goodFit;
269  bool m_autoRegShown;
270  bool m_autoRegAttempted;
271 
272  QPushButton *m_saveMeasure;
273  QPalette m_saveDefaultPalette;
274 
275  ChipViewport *m_leftView;
276  ChipViewport *m_rightView;
277 
278  Cube *m_leftCube;
279  Cube *m_rightCube;
280  ControlMeasure *m_leftMeasure;
281  ControlMeasure *m_rightMeasure;
282  Chip *m_leftChip;
283  Chip *m_rightChip;
284  UniversalGroundMap *m_leftGroundMap;
285  UniversalGroundMap *m_rightGroundMap;
286 
287  AutoReg *m_autoRegFact;
288  QString m_pointId;
289 
290  int m_rotation;
291  bool m_geomIt;
292  bool m_linkZoom;
293 
294 
295 
296  ControlPoint *m_editPoint;
297  SerialNumberList *m_serialNumberList;
298  QWidget *m_blinkExtension;
299  QListWidget *m_blinkListWidget;
300 
301 
302  QDoubleSpinBox *m_blinkTimeBoxRight;
303  bool m_timerOnRight;
304  QTimer *m_timerRight;
305  QList<ChipViewport *> m_blinkChipViewportListRight;
306  unsigned char m_blinkIndexRight;
307 
308  };
309 };
310 
311 #endif
void newControlNetwork(ControlNet *)
void setLeftPosition(double sample, double line)
Set the tack position of the measure in the left ChipViewport.
Definition: ControlMeasureEditWidget.cpp:766
void updateRightView(double sample, double line)
Universal Ground Map.
Definition: UniversalGroundMap.h:85
A small chip of data used for pattern matching.
Definition: Chip.h:102
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
ControlMeasureEditWidget(QWidget *parent=0, bool allowLeftMouse=false, bool useGeometry=true)
Constructs a ControlMeasureEditWidget widget.
Definition: ControlMeasureEditWidget.cpp:56
void colorizeSaveButton()
Turn "Save Measure" button text to red.
Definition: ControlMeasureEditWidget.cpp:959
void setPoint(ControlPoint *editPoint, SerialNumberList *snList)
Set the Control Point for this widget.
Definition: ControlMeasureEditWidget.cpp:1732
void saveChips()
Slot to save registration chips to files and fire off qview.
Definition: ControlMeasureEditWidget.cpp:1697
a control network
Definition: ControlNet.h:271
Pixel value mapper.
Definition: Stretch.h:72
void setRightPosition(double sample, double line)
Set the tack position of the measure in the right ChipViewport.
Definition: ControlMeasureEditWidget.cpp:780
Point Editor Widget.
Definition: ControlMeasureEditWidget.h:166
QString templateFileName()
Returns the template filename used for auto-registration.
Definition: ControlMeasureEditWidget.h:178
A single control point.
Definition: ControlPoint.h:369
void setLeftMeasure(ControlMeasure *leftMeasure, Cube *leftCube, QString pointId)
Set the measure displayed in the left ChipViewport.
Definition: ControlMeasureEditWidget.cpp:723
~ControlMeasureEditWidget()
Destructor.
Definition: ControlMeasureEditWidget.cpp:82
void setRightMeasure(ControlMeasure *rightMeasure, Cube *rightCube, QString pointId)
Set the measure displayed in the right ChipViewport.
Definition: ControlMeasureEditWidget.cpp:813
Auto Registration class.
Definition: AutoReg.h:183
void refreshChips()
Definition: ControlMeasureEditWidget.cpp:1682
Viewport for Isis Chips.
Definition: ChipViewport.h:85
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
Definition: ControlMeasure.h:189
void updateLeftView(double sample, double line)
Serial Number list generator.
Definition: SerialNumberList.h:80
void allowLeftMouse(bool allowMouse)
Set the option that allows mouse movements in the left ChipViewport.
Definition: ControlMeasureEditWidget.cpp:1660
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:1616
IO Handler for Isis Cubes.
Definition: Cube.h:170

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/12/2023 23:16:43