Isis 3.0
Back | Home
SpatialPlotTool.h
Go to the documentation of this file.
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 
59  Q_OBJECT
60 
61  public:
62  SpatialPlotTool(QWidget *parent);
63 
64  public slots:
65  void refreshPlot();
66 
67  protected:
68  QWidget *createToolBarWidget(QStackedWidget *parent);
69  virtual PlotWindow *createWindow();
70  virtual void detachCurves();
71  void enableRubberBandTool();
73  void updateTool();
74 
75  protected slots:
76  virtual void rubberBandComplete();
77  void viewportSelected();
78 
79  private:
80  QVector<QPointF> getSpatialStatistics(MdiCubeViewport *);
81  static SurfacePoint resultToSurfacePoint(UniversalGroundMap *);
82  void validatePlotCurves();
83 
84  private:
85  QPointer<QComboBox> m_xUnitsCombo;
86 
88  QPointer<QAction> m_toolPadAction;
89 
91  QPointer<QComboBox> m_interpolationCombo;
92 
94  QScopedPointer<
96 
98  QPointer<RubberBandComboBox> m_rubberBandCombo;
99  };
100 };
101 
102 #endif
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:86
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:53
Universal Ground Map.
Definition: UniversalGroundMap.h:83
virtual void detachCurves()
Forget about all existing spatial plot curves.
Definition: SpatialPlotTool.cpp:197
void updateTool()
Updates plot tool.
Definition: SpatialPlotTool.cpp:146
SpatialPlotTool(QWidget *parent)
Create a spatial plot tool.
Definition: SpatialPlotTool.cpp:47
Definition: PlotWindow.h:86
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed...
Definition: SpatialPlotTool.cpp:70
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
Definition: SpatialPlotTool.cpp:208
void viewportSelected()
This protected slot is called when user selects a viewport.
Definition: SpatialPlotTool.cpp:60
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
Definition: SpatialPlotTool.cpp:182
Spatial Plots.
Definition: SpatialPlotTool.h:58
Definition: Calculator.h:33
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
Definition: SpatialPlotTool.cpp:85
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
Definition: SpatialPlotTool.cpp:103
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
Definition: SpatialPlotTool.cpp:228
Parent class for plotting tools which provides common functionality.
Definition: AbstractPlotTool.h:35
Definition: CubeIoHandler.h:38
Definition: ToolPad.h:14

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 ISIS Support Center
File Modified: 07/12/2023 23:29:04