Isis 3 Programmer Reference
MosaicTrackTool.h
1 #ifndef MosaicTrackTool_h
2 #define MosaicTrackTool_h
3 
4 #include "MosaicTool.h"
5 
6 // required since it's in a slot
7 #include <QPointF>
8 
9 class QLabel;
10 class QStatusBar;
11 
12 namespace Isis {
18  class MosaicTrackTool : public MosaicTool {
19  Q_OBJECT
20 
21  public:
22  MosaicTrackTool(MosaicSceneWidget *, QStatusBar *);
23  virtual ~MosaicTrackTool();
24  void updateLabels(QPointF p);
25 
26  public slots:
27  virtual void mouseMove(QPointF p);
28  virtual void mouseLeave();
29 
30  private slots:
31  void labelDestroyed(QObject *);
32 
33  private:
34  virtual QAction *getPrimaryAction();
35 
36  void clearLabels();
37  QStatusBar *p_sbar;
38  QLabel *p_latLabel;
39  QLabel *p_lonLabel;
40  QLabel *p_xLabel;
41  QLabel *p_yLabel;
42  };
43 };
44 
45 #endif
46 
QStatusBar * p_sbar
Status bar.
This widget encompasses the entire mosaic scene.
void updateLabels(QPointF p)
Updates the tracking labels.
MosaicTrackTool(MosaicSceneWidget *, QStatusBar *)
MosaicTrackTool constructor.
Base class for the MosaicTools.
Definition: MosaicTool.h:37
QLabel * p_latLabel
Latitude label.
QLabel * p_xLabel
Latitude label.
virtual void mouseLeave()
Clears the labels if the mouse leaves the application.
QLabel * p_lonLabel
Longitude label.
virtual QAction * getPrimaryAction()
This method returns an action that is used to activate this tool.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QLabel * p_yLabel
Longitude label.
void clearLabels()
Clears the labels.