Isis 3 Programmer Reference
SpatialPlotTool.h
1 #ifndef SpatialPlotTool_h
2 #define SpatialPlotTool_h
3 
4 #include "AbstractPlotTool.h"
5 
6 #include <QMap>
7 
8 class QAction;
9 class QComboBox;
10 class QMainWindow;
11 
12 template <typename T> class QVector;
13 
14 namespace Isis {
15  class CubePlotCurve;
16  class PlotWindow;
17  class RubberBandComboBox;
18  class SurfacePoint;
19  class UniversalGroundMap;
20 
63  Q_OBJECT
64 
65  public:
66  SpatialPlotTool(QWidget *parent);
67 
68  public slots:
69  void refreshPlot();
70 
71  protected:
72  QWidget *createToolBarWidget(QStackedWidget *parent);
73  virtual PlotWindow *createWindow();
74  virtual void detachCurves();
75  void enableRubberBandTool();
77  void updateTool();
78 
79  protected slots:
80  virtual void rubberBandComplete();
81  void viewportSelected();
82 
83  private:
85  static SurfacePoint resultToSurfacePoint(UniversalGroundMap *);
86  void validatePlotCurves();
87 
88  private:
89  QPointer<QComboBox> m_xUnitsCombo;
90 
92  QPointer<QAction> m_toolPadAction;
93 
95  QPointer<QComboBox> m_interpolationCombo;
96 
98  QScopedPointer<
100 
102  QPointer<RubberBandComboBox> m_rubberBandCombo;
103  };
104 };
105 
106 #endif
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:148
Cube display widget for certain Isis MDI applications.
void validatePlotCurves()
This method sets up the names, line style, and color of the all the CubePlotCurves that will be used ...
Universal Ground Map.
virtual void detachCurves()
Forget about all existing spatial plot curves.
void updateTool()
Updates plot tool.
SpatialPlotTool(QWidget *parent)
Create a spatial plot tool.
QVector< QPointF > getSpatialStatistics(MdiCubeViewport *)
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed...
QPointer< QComboBox > m_interpolationCombo
Allows the user to choose the interpolation type.
QPointer< RubberBandComboBox > m_rubberBandCombo
Spatial plot rubber band combo box.
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
void viewportSelected()
This protected slot is called when user selects a viewport.
QPointer< QAction > m_toolPadAction
Plot tool&#39;s action.
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_spatialCurves
Spatial curve.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
Parent class for plotting tools which provides common functionality.