Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis Developer Reference
FindTool.h
Go to the documentation of this file.
1#ifndef FindTool_h
2#define FindTool_h
3
9
10/* SPDX-License-Identifier: CC0-1.0 */
11
12// The only includes allowed in this file are parents of classes defined here.
13#include <QWidget>
14#include "Tool.h"
15
16class QAction;
17class QCheckBox;
18class QComboBox;
19class QLineEdit;
20class QTabWidget;
21class QToolButton;
22
23namespace Isis {
24 class Distance;
25 class MdiCubeViewport;
26
32 class GroundTab : public QWidget {
33 Q_OBJECT
34
35 public:
36 GroundTab(QWidget *parent = 0);
37
38 QLineEdit *p_lonLineEdit;
39 QLineEdit *p_latLineEdit;
40 };
41
47 class ImageTab : public QWidget {
48 Q_OBJECT
49
50 public:
51 ImageTab(QWidget *parent = 0);
52
53 QLineEdit *p_sampLineEdit;
54 QLineEdit *p_lineLineEdit;
55 };
56
57
116 class FindTool : public Tool {
117 Q_OBJECT
118
119 public:
120 FindTool(QWidget *parent);
121 ~FindTool();
122 void addTo(QMenu *menu);
123 void paintViewport(MdiCubeViewport *vp, QPainter *painter);
124
131 QString menuName() const {
132 return "&Options";
133 }
134
135 signals:
136 void recordPoint(QPoint p);
137
138 protected:
139 QAction *toolPadAction(ToolPad *toolpad);
140 QWidget *createToolBarWidget(QStackedWidget *parent);
141 void updateTool();
142 void createDialog(QWidget *parent);
143
144 protected slots:
145 void mouseButtonRelease(QPoint p, Qt::MouseButton s);
146
147 private slots:
148 void handleOkClicked();
149 void handleLinkClicked();
150 void handleRecordClicked();
151 void togglePointVisible();
152 void setProjectionEngine(int index);
153
154 private: // methods
155 void centerLinkedViewports();
156 Distance distancePerPixel(MdiCubeViewport *viewport,
157 double lat, double lon);
158 void refresh();
159
160 private:
161 QDialog *p_dialog;
162 QAction *p_findPoint;
163 QToolButton *p_showDialogButton;
164 QToolButton *p_linkViewportsButton;
165 QToolButton *p_togglePointVisibleButton;
166 QCheckBox *p_syncScale;
167 QLineEdit *p_statusEdit;
168 QComboBox *p_groundEngine;
169 QTabWidget *p_tabWidget;
170 GroundTab *p_groundTab;
171 ImageTab *p_imageTab;
172
173
174 private:
175 double p_line;
176 double p_samp;
177
178 double p_lat;
179 double p_lon;
180
181 bool p_pointVisible;
182 };
183
184
185
186};
187
188#endif
Distance measurement, usually in meters.
Definition Distance.h:34
void recordPoint(QPoint p)
Emitted when point should be recorded.
void paintViewport(MdiCubeViewport *vp, QPainter *painter)
This method paints the viewport.
Definition FindTool.cpp:516
void addTo(QMenu *menu)
Adds the find tool to the menu.
Definition FindTool.cpp:199
void updateTool()
Overriden method to update this tool - Checks if cube is open and checks if the image has camera and/...
Definition FindTool.cpp:303
void createDialog(QWidget *parent)
Creates the dialog used by this tool.
Definition FindTool.cpp:90
~FindTool()
Definition FindTool.cpp:79
QString menuName() const
This method returns the menu name associated with this tool.
Definition FindTool.h:131
void mouseButtonRelease(QPoint p, Qt::MouseButton s)
Handles mouse clickes in the CubeViewport.
Definition FindTool.cpp:463
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the tool bar for the find tool.
Definition FindTool.cpp:211
FindTool(QWidget *parent)
Constructs a FindTool object.
Definition FindTool.cpp:39
QAction * toolPadAction(ToolPad *toolpad)
Adds the find tool to the toolpad.
Definition FindTool.cpp:181
Definition FindTool.h:32
QLineEdit * p_lonLineEdit
Input for longitude.
Definition FindTool.h:38
GroundTab(QWidget *parent=0)
The ground tab used by the dialog in the FindTool.
Definition FindTool.cpp:131
QLineEdit * p_latLineEdit
Input for latitude.
Definition FindTool.h:39
Definition FindTool.h:47
QLineEdit * p_sampLineEdit
Input for sample.
Definition FindTool.h:53
QLineEdit * p_lineLineEdit
Input for line.
Definition FindTool.h:54
ImageTab(QWidget *parent=0)
The image tab used by the dialog in the FindTool.
Definition FindTool.cpp:156
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Tool(QWidget *parent)
Tool constructor.
Definition Tool.cpp:27
Definition ToolPad.h:14
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16