Loading [MathJax]/jax/output/NativeMML/config.js
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
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::UniversalGroundMap
Universal Ground Map.
Definition: UniversalGroundMap.h:69
Isis::SpatialPlotTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
Definition: SpatialPlotTool.cpp:103
Isis::SpatialPlotTool::refreshPlot
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
Definition: SpatialPlotTool.cpp:228
QMainWindow
Isis::SpatialPlotTool::m_toolPadAction
QPointer< QAction > m_toolPadAction
Plot tool's action.
Definition: SpatialPlotTool.h:92
Isis::SpatialPlotTool::m_spatialCurves
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_spatialCurves
Spatial curve.
Definition: SpatialPlotTool.h:99
Isis::SpatialPlotTool::enableRubberBandTool
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
QComboBox
Isis::SpatialPlotTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
Definition: SpatialPlotTool.cpp:85
Isis::SpatialPlotTool
Spatial Plots.
Definition: SpatialPlotTool.h:62
Isis::SpatialPlotTool::validatePlotCurves
void validatePlotCurves()
This method sets up the names, line style, and color of the all the CubePlotCurves that will be used ...
Definition: SpatialPlotTool.cpp:268
Isis::SpatialPlotTool::rubberBandComplete
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
Definition: SpatialPlotTool.cpp:208
Isis::SpatialPlotTool::getSpatialStatistics
QVector< QPointF > getSpatialStatistics(MdiCubeViewport *)
Definition: SpatialPlotTool.cpp:318
Isis::SpatialPlotTool::detachCurves
virtual void detachCurves()
Forget about all existing spatial plot curves.
Definition: SpatialPlotTool.cpp:197
Isis::AbstractPlotTool
Parent class for plotting tools which provides common functionality.
Definition: AbstractPlotTool.h:43
Isis::ToolPad
Definition: ToolPad.h:14
Isis::SpatialPlotTool::createWindow
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
Definition: SpatialPlotTool.cpp:182
Isis::SpatialPlotTool::m_interpolationCombo
QPointer< QComboBox > m_interpolationCombo
Allows the user to choose the interpolation type.
Definition: SpatialPlotTool.h:95
Isis::SpatialPlotTool::SpatialPlotTool
SpatialPlotTool(QWidget *parent)
Create a spatial plot tool.
Definition: SpatialPlotTool.cpp:47
Isis::SpatialPlotTool::m_rubberBandCombo
QPointer< RubberBandComboBox > m_rubberBandCombo
Spatial plot rubber band combo box.
Definition: SpatialPlotTool.h:102
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Isis::SpatialPlotTool::viewportSelected
void viewportSelected()
This protected slot is called when user selects a viewport.
Definition: SpatialPlotTool.cpp:60
Isis::PlotWindow
Definition: PlotWindow.h:88
QAction
Isis::SpatialPlotTool::updateTool
void updateTool()
Updates plot tool.
Definition: SpatialPlotTool.cpp:146
Isis::SurfacePoint
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16

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 USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:17:18