Loading [MathJax]/jax/output/NativeMML/config.js
Isis 3 Developer Reference
TrackTool.h
Go to the documentation of this file.
1 #ifndef Qisis_TrackTool_h
2 #define Qisis_TrackTool_h
3 
4 // This is the only include allowed in this file!
5 #include "Tool.h"
6 
7 
8 class QLabel;
9 class QStatusBar;
10 
11 namespace Isis {
12  class MdiCubeViewport;
13  class WarningWidget;
14 
42  class TrackTool : public Tool {
43  Q_OBJECT
44 
45  public:
46  TrackTool(QStatusBar *parent);
47  void displayWarning(std::string &pStr, const std::string &pExStr);
48  void resetStatusWarning(void);
49  QStatusBar *getStatusBar(void);
50 
51  public slots:
52  virtual void mouseMove(QPoint p);
53  virtual void mouseLeave();
54 
55  protected:
58 
59  private slots:
60  void locateCursor();
61 
62  private:
63  void updateLabels(QPoint p);
64  void clearLabels();
65 
66  QStatusBar *p_sbar;
67  QLabel *p_sampLabel;
68  QLabel *p_lineLabel;
69  QLabel *p_latLabel;
70  QLabel *p_lonLabel;
71  QLabel *p_grayLabel;
72  QLabel *p_redLabel;
73  QLabel *p_grnLabel;
74  QLabel *p_bluLabel;
75  WarningWidget *mWarningWidget;
76  };
77 };
78 
79 #endif
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:53
void displayWarning(std::string &pStr, const std::string &pExStr)
Display the Warning icon in case of an exception, sent from the tool where the exception occured...
Definition: TrackTool.cpp:97
QStatusBar * getStatusBar(void)
Definition: TrackTool.cpp:376
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition: TrackTool.h:42
virtual void mouseMove(QPoint p)
Updates the labels anytime the mouse moves.
Definition: TrackTool.cpp:116
virtual void mouseLeave()
Clears the labels if the mouse leaves the application.
Definition: TrackTool.cpp:131
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
Definition: WarningWidget.h:51
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the given viewport.
Definition: TrackTool.cpp:358
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
void resetStatusWarning(void)
Resets the warning status on the status bar to default.
Definition: TrackTool.cpp:104
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the given viewport.
Definition: TrackTool.cpp:370
TrackTool(QStatusBar *parent)
TrackTool constructor.
Definition: TrackTool.cpp:26

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:31:49