Isis 3.0
Back | Home
AdvancedTrackTool.h
Go to the documentation of this file.
1 #ifndef Qisis_AdvancedTrackTool_h
2 #define Qisis_AdvancedTrackTool_h
3 
25 // The only includes allowed in this file are the direct parents of this class!
26 #include "Tool.h"
27 
28 class QAction;
29 
30 namespace Isis {
31  class TableMainWindow;
32  class MdiCubeViewport;
33 
82  class AdvancedTrackTool : public Tool {
83  Q_OBJECT
84 
85  public:
86  AdvancedTrackTool(QWidget *parent);
87  void addTo(QMenu *menu);
88  void addToPermanent(QToolBar *perm);
89  bool eventFilter(QObject *o, QEvent *e);
90 
91  public slots:
92  virtual void mouseMove(QPoint p);
93  virtual void mouseLeave();
94  void record(QPoint p);
95 
96  protected:
103  QString menuName() const {
104  return "&Options";
105  };
106 
107  private slots:
108  void updateRow(QPoint p);
109  void updateRow(MdiCubeViewport *cvp, QPoint p, int row);
110  void record();
111  void updateID();
112  void TrackMosaicOrigin(MdiCubeViewport *cvp, int piLine, int piSample,
113  int &piOrigin, QString &psSrcFileName,
114  QString &psSrcSerialNum);
115  void helpDialog();
116 
117  private:
118  void readSettings();
119  void writeSettings();
120  QString settingsFilePath() const;
121 
125  enum {
126  ID,
127  SAMPLE,
128  LINE,
129  BAND,
130  PIXEL,
131  PLANETOCENTRIC_LAT,
132  PLANETOGRAPHIC_LAT,
133  EAST_LON_360,
134  WEST_LON_360,
135  EAST_LON_180,
136  WEST_LON_180,
137  PROJECTED_X,
138  PROJECTED_Y,
139  RADIUS,
140  POINT_X,
141  POINT_Y,
142  POINT_Z,
143  RIGHT_ASCENSION,
144  DECLINATION,
145  RESOLUTION,
146  PHASE,
147  INCIDENCE,
148  EMISSION,
149  LOCAL_INCIDENCE,
150  LOCAL_EMISSION,
151  NORTH_AZIMUTH,
152  SUN_AZIMUTH,
153  SOLAR_LON,
154  SPACECRAFT_X,
155  SPACECRAFT_Y,
156  SPACECRAFT_Z,
157  SPACECRAFT_AZIMUTH,
158  SLANT,
159  DISTORTED_FOCAL_X,
160  DISTORTED_FOCAL_Y,
161  UNDISTORTED_FOCAL_X,
162  UNDISTORTED_FOCAL_Y,
163  UNDISTORTED_FOCAL_Z,
164  EPHEMERIS_TIME,
165  SOLAR_TIME,
166  UTC,
167  PATH,
168  FILENAME,
169  SERIAL_NUMBER,
170  TRACK_MOSAIC_INDEX,
171  TRACK_MOSAIC_FILENAME,
172  TRACK_MOSAIC_SERIAL_NUM,
173  NOTES
174  };
175  QAction *p_action;
176  int p_numRows;
177  int p_id;
178  TableMainWindow *p_tableWin;
179  bool m_showHelpOnStart;
180 
181  };
182 
183 };
184 
185 #endif
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:53
AdvancedTrackTool(QWidget *parent)
Constructs an AdvancedTrackTool object.
Definition: AdvancedTrackTool.cpp:44
void addTo(QMenu *menu)
This method adds the action to bring up the track tool to the menu.
Definition: AdvancedTrackTool.cpp:174
Creates sequential IDs.
Definition: ID.h:44
QString menuName() const
This method returns the menu name associated with this tool.
Definition: AdvancedTrackTool.h:103
void record(QPoint p)
This slot updates the row with data from the point given and records data to the current row...
Definition: AdvancedTrackTool.cpp:721
bool eventFilter(QObject *o, QEvent *e)
An event filter that calls methods on certain events.
Definition: AdvancedTrackTool.cpp:153
virtual void mouseMove(QPoint p)
This method is called when the mouse has moved across the viewport and updates the row accordingly...
Definition: AdvancedTrackTool.cpp:194
virtual void mouseLeave()
This method is called when the mouse leaves the viewport and clears any rows accordingly.
Definition: AdvancedTrackTool.cpp:203
Base class for the Qisis tools.
Definition: Tool.h:81
Tool to display info for a point on a cube.
Definition: AdvancedTrackTool.h:82
void addToPermanent(QToolBar *perm)
This method adds the action to bring up the track tool to the permanent tool bar. ...
Definition: AdvancedTrackTool.cpp:184

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 ISIS Support Center
File Modified: 07/12/2023 23:14:09