File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
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 
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:
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<
100 
102  QPointer<RubberBandComboBox> m_rubberBandCombo;
103  };
104 };
105 
106 #endif
Isis::AbstractPlotTool::addWindow
PlotWindow * addWindow()
This creates and initializes everything about a plot window.
Definition: AbstractPlotTool.cpp:303
Isis::Angle::Degrees
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
Isis::AbstractPlotTool::updateTool
virtual void updateTool()
This forwards all update calls to the plot windows.
Definition: AbstractPlotTool.cpp:118
CubePlotCurve.h
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::Interpolator::BiLinearType
@ BiLinearType
Definition: Interpolator.h:43
Cube.h
Isis::PlotCurve::CubeDN
@ CubeDN
The data is a Cube DN value.
Definition: PlotCurve.h:67
Isis::RubberBandComboBox
Combo box for choosing a rubber band type.
Definition: RubberBandComboBox.h:26
Isis::UniversalGroundMap
Universal Ground Map.
Definition: UniversalGroundMap.h:69
MdiCubeViewport.h
Isis::RubberBandTool::setDrawActiveViewportOnly
void setDrawActiveViewportOnly(bool activeOnly=false)
This called to set whether rubber band is drawn on active viewport only rather than all linked viewpo...
Definition: RubberBandTool.cpp:333
Isis::SpatialPlotTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
Definition: SpatialPlotTool.cpp:103
Isis::AbstractPlotTool::createCurve
static CubePlotCurve * createCurve(QString name, QPen pen, PlotCurve::Units xUnits, PlotCurve::Units yUnits)
This is a helper method for children.
Definition: AbstractPlotTool.cpp:233
Isis::Interpolator::CubicConvolutionType
@ CubicConvolutionType
Definition: Interpolator.h:44
QList< QPoint >
Isis::Tool::viewportChanged
void viewportChanged()
Isis::CubePlotCurve
This is a plot curve with information relating it to a particular cube or region of a cube.
Definition: CubePlotCurve.h:53
Isis::PlotCurve::PixelNumber
@ PixelNumber
The data is a pixel #.
Definition: PlotCurve.h:79
Isis::CubeViewport::isGray
bool isGray() const
Definition: CubeViewport.h:189
Isis::SpatialPlotTool::refreshPlot
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
Definition: SpatialPlotTool.cpp:228
Isis::Tool::toolIconDir
QString toolIconDir() const
returns the path to the icon directory.
Definition: Tool.h:113
QMainWindow
Isis::Tool::rubberBandTool
RubberBandTool * rubberBandTool()
Definition: Tool.cpp:57
Longitude.h
Isis::RubberBandTool::currentMode
RubberBandMode currentMode()
Definition: RubberBandTool.cpp:1161
Isis::RubberBandComboBox::Line
@ Line
Line.
Definition: RubberBandComboBox.h:42
Isis::AbstractPlotTool::viewportsToPlot
QList< MdiCubeViewport * > viewportsToPlot()
Get a list of linked viewports that should be plotting when a new plot is requested.
Definition: AbstractPlotTool.cpp:133
Isis::PlotWindow::defaultWindowTitle
static QString defaultWindowTitle()
This is the typical suffix for plot windows, it's here in case we want to update all plot windows to ...
Definition: PlotWindow.cpp:1810
Isis::AbstractPlotTool::selectedWindow
PlotWindow * selectedWindow(bool createIfNeeded=true)
Get the 'active' plot window (the window selected by the user to contain new curves).
Definition: AbstractPlotTool.cpp:256
Isis::PlotCurve::Meters
@ Meters
The data is in meters.
Definition: PlotCurve.h:83
PlotWindow.h
ToolPad.h
Isis::PlotCurve::Units
Units
These are all the possible units for the x or y data in a plot curve.
Definition: PlotCurve.h:54
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
AbstractPlotTool.h
Isis::PlotWindow::add
virtual void add(CubePlotCurve *pc)
This method adds the curves to the plot.
Definition: PlotWindow.cpp:436
Isis::RubberBandTool::RotatedRectangleMode
@ RotatedRectangleMode
Definition: RubberBandTool.h:63
Isis::IsSpecial
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
Isis::CubeViewport::universalGroundMap
UniversalGroundMap * universalGroundMap() const
Definition: CubeViewport.h:353
QComboBox
Isis::PlotCurve::Kilometers
@ Kilometers
The data is in kilometers.
Definition: PlotCurve.h:87
Isis::PlotWindow::xAxisUnits
PlotCurve::Units xAxisUnits() const
This is the data-type of the curves' x data in this plot window.
Definition: PlotWindow.cpp:266
Isis::SpatialPlotTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
Definition: SpatialPlotTool.cpp:85
Isis::Distance::Meters
@ Meters
The distance is being specified in meters.
Definition: Distance.h:43
Latitude.h
Isis::CubeViewport::grayBand
int grayBand() const
Definition: CubeViewport.h:194
Pvl.h
Isis::SpatialPlotTool
Spatial Plots.
Definition: SpatialPlotTool.h:62
Isis::Interpolator::interpType
interpType
The interpolator type, including: None, Nearest Neighbor, BiLinear or Cubic Convultion.
Definition: Interpolator.h:40
Isis::toInt
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
SurfacePoint.h
Isis::SpatialPlotTool::rubberBandComplete
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
Definition: SpatialPlotTool.cpp:208
Isis::SpatialPlotTool::detachCurves
virtual void detachCurves()
Forget about all existing spatial plot curves.
Definition: SpatialPlotTool.cpp:197
UniversalGroundMap.h
TProjection.h
Camera.h
Isis::AbstractPlotTool
Parent class for plotting tools which provides common functionality.
Definition: AbstractPlotTool.h:43
Isis::Null
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
Brick.h
Isis::ToolPad
Definition: ToolPad.h:14
Statistics.h
Isis::SpatialPlotTool::createWindow
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
Definition: SpatialPlotTool.cpp:182
RingPlaneProjection.h
Isis::SpatialPlotTool::SpatialPlotTool
SpatialPlotTool(QWidget *parent)
Create a spatial plot tool.
Definition: SpatialPlotTool.cpp:47
RubberBandTool.h
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
Projection.h
Isis::RubberBandComboBox::RotatedRectangle
@ RotatedRectangle
RotatedRectangle.
Definition: RubberBandComboBox.h:40
Isis::RubberBandTool::LineMode
@ LineMode
Definition: RubberBandTool.h:61
PolygonTools.h
Distance.h
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
InterestOperator.h
Isis::PlotWindow::replot
void replot()
Reset the scale of the plot, replot it and emit plot changed.
Definition: PlotWindow.cpp:1797
SpatialPlotTool.h
Isis::SpatialPlotTool::viewportSelected
void viewportSelected()
This protected slot is called when user selects a viewport.
Definition: SpatialPlotTool.cpp:60
IsisDebug.h
Isis::PlotWindow
Definition: PlotWindow.h:88
QAction
Isis::SpatialPlotTool::updateTool
void updateTool()
Updates plot tool.
Definition: SpatialPlotTool.cpp:146
Isis::AbstractPlotTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
This provides the standard plot tool options, such as selecting an active plot window.
Definition: AbstractPlotTool.cpp:103
Isis::CubeViewport::redBand
int redBand() const
Definition: CubeViewport.h:199
Isis::Interpolator::NearestNeighborType
@ NearestNeighborType
Definition: Interpolator.h:42
Isis::SurfacePoint
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
Isis::Tool::cubeViewport
MdiCubeViewport * cubeViewport() const
Return the current cubeviewport.
Definition: Tool.h:197
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
RubberBandComboBox.h
Isis::RubberBandTool::vertices
QList< QPoint > vertices()
This method returns the vertices.
Definition: RubberBandTool.cpp:672

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: 03/21/2022 06:51:23