Isis Developer Reference
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
8class QAction;
9class QComboBox;
10class QMainWindow;
11
12template <typename T> class QVector;
13
14namespace 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();
77 void updateTool();
78
79 protected slots:
80 virtual void rubberBandComplete();
81 void viewportSelected();
82
83 private:
84 QVector<QPointF> getSpatialStatistics(MdiCubeViewport *);
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<
99 QMap< MdiCubeViewport *, QPointer<CubePlotCurve> > > m_spatialCurves;
100
102 QPointer<RubberBandComboBox> m_rubberBandCombo;
103 };
104};
105
106#endif
Parent class for plotting tools which provides common functionality.
Definition AbstractPlotTool.h:43
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Definition PlotWindow.h:88
Spatial Plots.
Definition SpatialPlotTool.h:62
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
Definition SpatialPlotTool.cpp:82
SpatialPlotTool(QWidget *parent)
Create a spatial plot tool.
Definition SpatialPlotTool.cpp:44
void viewportSelected()
This protected slot is called when user selects a viewport.
Definition SpatialPlotTool.cpp:57
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
Definition SpatialPlotTool.cpp:179
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed.
Definition SpatialPlotTool.cpp:67
void updateTool()
Updates plot tool.
Definition SpatialPlotTool.cpp:143
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
Definition SpatialPlotTool.cpp:205
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
Definition SpatialPlotTool.cpp:225
virtual void detachCurves()
Forget about all existing spatial plot curves.
Definition SpatialPlotTool.cpp:194
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
Definition SpatialPlotTool.cpp:100
This class defines a body-fixed surface point.
Definition SurfacePoint.h:132
Definition ToolPad.h:14
Universal Ground Map.
Definition UniversalGroundMap.h:69
This is free and unencumbered software released into the public domain.
Definition Calculator.h:18
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16