Isis 3 Programmer Reference
TrackTool.h
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;
78 };
79};
80
81#endif
Cube display widget for certain Isis MDI applications.
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
QLabel * p_lonLabel
Lon label.
Definition TrackTool.h:72
QLabel * p_grayLabel
Gray label.
Definition TrackTool.h:73
void resetStatusWarning(void)
Resets the warning status on the status bar to default.
void updateLabels(QPoint p)
Updates the tracking labels.
void locateCursor()
Finds the cursor position.
QLabel * p_grnLabel
Green label.
Definition TrackTool.h:75
QLabel * p_bluLabel
Blue label.
Definition TrackTool.h:76
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the given viewport.
QLabel * p_sampLabel
Sample label.
Definition TrackTool.h:69
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the given viewport.
virtual void mouseMove(QPoint p)
Updates the labels anytime the mouse moves.
void clearLabels()
Clears the labels.
WarningWidget * mWarningWidget
Warning Widget.
Definition TrackTool.h:77
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 * p_sbar
Status bar.
Definition TrackTool.h:68
QLabel * p_latLabel
Lat label.
Definition TrackTool.h:71
QLabel * p_redLabel
Red label.
Definition TrackTool.h:74
QLabel * p_lineLabel
Line label.
Definition TrackTool.h:70
virtual void mouseLeave()
Clears the labels if the mouse leaves the application.
Reads and stores visible DN values.
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16