Isis 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
8class QLabel;
9class QStatusBar;
10
11namespace Isis {
12 class MdiCubeViewport;
13 class WarningWidget;
14 class ViewportBuffer;
15
43 class TrackTool : public Tool {
44 Q_OBJECT
45
46 public:
47 TrackTool(QStatusBar *parent);
48 void displayWarning(std::string &pStr, const std::string &pExStr);
49 void resetStatusWarning(void);
50 QStatusBar *getStatusBar(void);
51
52 public slots:
53 virtual void mouseMove(QPoint p);
54 virtual void mouseLeave();
55
56 protected:
59
60 private slots:
61 void locateCursor();
62
63 private:
64 void updateLabels(QPoint p);
65 QString updateColorLabel(QPoint p, ViewportBuffer *buf, QLabel *label);
66 void clearLabels();
67
68 QStatusBar *p_sbar;
69 QLabel *p_sampLabel;
70 QLabel *p_lineLabel;
71 QLabel *p_latLabel;
72 QLabel *p_lonLabel;
73 QLabel *p_grayLabel;
74 QLabel *p_redLabel;
75 QLabel *p_grnLabel;
76 QLabel *p_bluLabel;
77 WarningWidget *mWarningWidget;
78 };
79};
80
81#endif
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Base class for the Qisis tools.
Definition Tool.h:67
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition TrackTool.h:43
void resetStatusWarning(void)
Resets the warning status on the status bar to default.
Definition TrackTool.cpp:104
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the given viewport.
Definition TrackTool.cpp:335
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the given viewport.
Definition TrackTool.cpp:347
virtual void mouseMove(QPoint p)
Updates the labels anytime the mouse moves.
Definition TrackTool.cpp:116
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
TrackTool(QStatusBar *parent)
TrackTool constructor.
Definition TrackTool.cpp:26
QStatusBar * getStatusBar(void)
Definition TrackTool.cpp:353
virtual void mouseLeave()
Clears the labels if the mouse leaves the application.
Definition TrackTool.cpp:131
Reads and stores visible DN values.
Definition ViewportBuffer.h:63
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
Definition WarningWidget.h:38
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16