Isis 3 Programmer Reference
SpatialPlotTool.h
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.
Cube display widget for certain Isis MDI applications.
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
SpatialPlotTool(QWidget *parent)
Create a spatial plot tool.
QPointer< QComboBox > m_interpolationCombo
Allows the user to choose the interpolation type.
QPointer< RubberBandComboBox > m_rubberBandCombo
Spatial plot rubber band combo box.
void validatePlotCurves()
This method sets up the names, line style, and color of the all the CubePlotCurves that will be used ...
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_spatialCurves
Spatial curve.
void viewportSelected()
This protected slot is called when user selects a viewport.
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
QPointer< QAction > m_toolPadAction
Plot tool's action.
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed.
void updateTool()
Updates plot tool.
QVector< QPointF > getSpatialStatistics(MdiCubeViewport *)
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
virtual void detachCurves()
Forget about all existing spatial plot curves.
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
This class defines a body-fixed surface point.
Universal Ground Map.
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