Isis 3 Developer Reference
|
Plot cube DN statistics against the cube band numbers. More...
#include <SpectralPlotTool.h>
Public Slots | |
void | refreshPlot () |
This method replots the data, with current settings and rubber band, in the plot window. More... | |
void | removeWindow (QObject *) |
When a user closes a window, we want to remove that window from our combo box for selecting the active window. More... | |
void | repaintViewports (CubePlotCurve *) |
This method causes the viewports corresponding with the given CubePlotCurve to be repainted with all of the area's of interest associated with the CubePlotCurve's PlotWindow. More... | |
void | showPlotWindow () |
displays the plot window More... | |
void | activate (bool) |
Activates the tool. More... | |
void | setCubeViewport (MdiCubeViewport *cvp) |
Sets the current viewport to the given cvp. More... | |
Signals | |
void | clearWarningSignal () |
void | toolActivated () |
void | viewportChanged () |
Public Member Functions | |
SpectralPlotTool (QWidget *parent) | |
This constructs a spectral plot tool. More... | |
virtual void | paintViewport (MdiCubeViewport *vp, QPainter *painter) |
This method allows each plot window to paint any information it wants onto the cube viewports. More... | |
void | addTo (ViewportMainWindow *mw) |
Adds the tool to the application. More... | |
void | addTo (ToolPad *toolpad) |
Adds the tool to the toolpad. More... | |
virtual void | addTo (Workspace *ws) |
Adds the given workspace to the cubeviewport list. More... | |
virtual QString | menuName () const |
Anytime a tool is created, you must give it a name for the menu. More... | |
virtual void | addToPermanent (QToolBar *toolbar) |
void | addToActive (QToolBar *toolbar) |
QString | toolIconDir () const |
returns the path to the icon directory. More... | |
RubberBandTool * | rubberBandTool () |
void | setList (ToolList *currentList) |
Protected Types | |
typedef QVector< MdiCubeViewport *> | CubeViewportList |
A list of cubeviewports. More... | |
Protected Slots | |
virtual void | rubberBandComplete () |
Called when the user has finished drawing with the rubber band. More... | |
void | viewportSelected () |
This protected slot is called when user selects a viewport. More... | |
void | repaintViewports () |
This method causes all of the viewports to be repainted. More... | |
virtual void | screenPixelsChanged () |
This is called when actions change which pixels from the cube are displayed. More... | |
virtual void | mouseEnter () |
virtual void | mouseMove (QPoint p) |
virtual void | mouseMove (QPoint p, Qt::MouseButton) |
virtual void | mouseLeave () |
Protected Member Functions | |
void | addTo (QMenu *menu) |
Adds the plot tool to the menu. More... | |
QWidget * | createToolBarWidget (QStackedWidget *parent) |
Creates the widgets for the tool bar. More... | |
virtual PlotWindow * | createWindow () |
Creates a new plot window compatible with the curves in this tool. More... | |
virtual void | detachCurves () |
Forget about all existing plot curves. More... | |
void | enableRubberBandTool () |
This method is called when the tool is activated by the parent, or when the plot mode is changed. More... | |
QComboBox * | spectralDisplayCombo () const |
Get the combo box which toggles between units of wavelength and band number. More... | |
QAction * | toolPadAction (ToolPad *pad) |
This method configures the QAction for this tool. More... | |
void | updateTool () |
Updates plot tool. More... | |
PlotWindow * | addWindow () |
This creates and initializes everything about a plot window. More... | |
QList< MdiCubeViewport * > | viewportsToPlot () |
Get a list of linked viewports that should be plotting when a new plot is requested. More... | |
QList< PlotWindow * > | plotWindows () |
Get a list of all of the instantiated plot windows. More... | |
PlotWindow * | selectedWindow (bool createIfNeeded=true) |
Get the 'active' plot window (the window selected by the user to contain new curves). More... | |
virtual void | mouseDoubleClick (QPoint p) |
virtual void | mouseButtonPress (QPoint p, Qt::MouseButton s) |
virtual void | mouseButtonRelease (QPoint p, Qt::MouseButton s) |
Resets the Warning to Nowarning when a different activity occurs on the application. More... | |
virtual void | updateMeasure () |
virtual void | scaleChanged () |
virtual void | stretchRequested (MdiCubeViewport *, int) |
void | registerTool (MdiCubeViewport *viewport) |
Registers the tool to the viewport. More... | |
MdiCubeViewport * | cubeViewport () const |
Return the current cubeviewport. More... | |
CubeViewportList * | cubeViewportList () const |
Return the list of cubeviewports. More... | |
virtual void | addConnections (MdiCubeViewport *cvp) |
Anytime a tool is created, you must add the connections for it. More... | |
virtual void | removeConnections (MdiCubeViewport *cvp) |
Anytime a tool is created, you must be able to remove it's connections. More... | |
Workspace * | workspace () |
Static Protected Member Functions | |
static CubePlotCurve * | createCurve (QString name, QPen pen, PlotCurve::Units xUnits, PlotCurve::Units yUnits) |
This is a helper method for children. More... | |
Plot cube DN statistics against the cube band numbers.
This will plot DN statistics against the cube band numbers. The statistical values plotted are the minimum, maximum, mean, mean + standard deviation and mean - standard deviation.
|
protectedinherited |
A list of cubeviewports.
Isis::SpectralPlotTool::SpectralPlotTool | ( | QWidget * | parent | ) |
This constructs a spectral plot tool.
The spectral plot tool graphs statistics across a spectrum (bands).
parent |
References Isis::Tool::viewportChanged(), and viewportSelected().
|
slotinherited |
Activates the tool.
on |
References Isis::Tool::clearWarningSignal(), and Isis::Tool::toolActivated().
Referenced by Isis::Tool::addTo(), Isis::AdvancedTrackTool::AdvancedTrackTool(), Isis::RubberBandTool::disable(), Isis::RubberBandTool::enable(), Isis::AdvancedTrackTool::eventFilter(), Isis::FileTool::FileTool(), Isis::RubberBandTool::RubberBandTool(), Isis::TrackTool::TrackTool(), Isis::WindowTool::WindowTool(), and Isis::Workspace::Workspace().
|
inlineprotectedvirtualinherited |
Anytime a tool is created, you must add the connections for it.
cvp |
Reimplemented in Isis::TrackTool, and Isis::WindowTool.
|
protectedvirtual |
|
inherited |
Adds the tool to the application.
pViewPortMnWin |
References Isis::ViewportMainWindow::activeToolBar(), Isis::Tool::addToActive(), Isis::Tool::addToPermanent(), Isis::ViewportMainWindow::getMenu(), Isis::Tool::menuName(), Isis::ViewportMainWindow::permanentToolBar(), Isis::ViewportMainWindow::toolPad(), and Isis::ViewportMainWindow::workspace().
Referenced by Isis::WindowTool::addTo(), Isis::SpecialPixelTool::addTo(), Isis::FileTool::addTo(), Isis::EditTool::addTo(), Isis::ViewportMainWindow::ViewportMainWindow(), and Isis::Workspace::Workspace().
|
inherited |
Adds the tool to the toolpad.
toolpad |
References Isis::Tool::activate(), Isis::ToolPad::addAction(), and Isis::Tool::toolPadAction().
|
virtualinherited |
Adds the given workspace to the cubeviewport list.
ws |
Reimplemented in Isis::EditTool, Isis::FileTool, Isis::SpecialPixelTool, and Isis::WindowTool.
References Isis::Tool::registerTool(), and Isis::Tool::setCubeViewport().
|
inherited |
toolbar |
References Isis::Tool::createToolBarWidget(), and Isis::ToolList::toolBarStack().
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
inlinevirtualinherited |
toolbar |
Reimplemented in Isis::AdvancedTrackTool, Isis::FileTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, and Isis::WindowTool.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
protectedinherited |
This creates and initializes everything about a plot window.
This updates the window's title to be unique, adds it to the active plot window combo box, listens for the window to be removed and selects it in the active plot window combo box. Call this if you need a new plot window.
References Isis::AbstractPlotTool::createWindow(), Isis::AbstractPlotTool::removeWindow(), and Isis::AbstractPlotTool::repaintViewports().
Referenced by Isis::SpatialPlotTool::refreshPlot(), refreshPlot(), and Isis::AbstractPlotTool::selectedWindow().
|
signalinherited |
|
staticprotectedinherited |
This is a helper method for children.
Given a title, a color, and units a new CubePlotCurve is created.
name | The title of the curve to be created |
pen | The color & thickness of the curve |
xUnits | The units of the x-axis associated with this curve. This must match the plot window's x axis. |
yUnits | The units of the y-axis associated with this curve. This must match the plot window's y axis. |
References Isis::PlotCurve::setColor(), and Isis::PlotCurve::setPen().
|
protectedvirtual |
Creates the widgets for the tool bar.
parent |
Reimplemented from Isis::AbstractPlotTool.
References Isis::AbstractPlotTool::createToolBarWidget(), Isis::RubberBandComboBox::Polygon, Isis::RubberBandComboBox::Rectangle, and spectralDisplayCombo().
|
protectedvirtual |
Creates a new plot window compatible with the curves in this tool.
Implements Isis::AbstractPlotTool.
References Isis::PlotWindow::defaultWindowTitle(), and Isis::toInt().
|
inlineprotectedinherited |
Return the current cubeviewport.
Referenced by Isis::WindowTool::addConnections(), Isis::TrackTool::addConnections(), Isis::FileTool::discard(), Isis::FileTool::exportToList(), Isis::FileTool::exportView(), Isis::SunShadowTool::mouseButtonPress(), Isis::PanTool::mouseButtonRelease(), Isis::ControlNetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::ScatterPlotTool::mouseMove(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::SunShadowTool::paintViewport(), Isis::RubberBandTool::paintViewport(), Isis::FindTool::paintViewport(), Isis::FileTool::print(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), refreshPlot(), Isis::WindowTool::removeConnections(), Isis::TrackTool::removeConnections(), Isis::HistogramTool::rubberBandComplete(), Isis::MeasureTool::rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::StereoTool::rubberBandComplete(), Isis::EditTool::rubberBandComplete(), Isis::StretchTool::rubberBandComplete(), Isis::FileTool::save(), Isis::FileTool::saveAs(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveInfo(), Isis::ScatterPlotTool::showNewScatterPlotConfig(), Isis::StretchTool::stretchGlobal(), Isis::StretchTool::stretchGlobalAllBands(), Isis::StretchTool::stretchRegional(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), Isis::MeasureTool::updateMeasure(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::BandTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::AbstractPlotTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::FileTool::updateTool(), Isis::EditTool::updateTool(), Isis::FindTool::updateTool(), Isis::StretchTool::updateTool(), and Isis::AbstractPlotTool::viewportsToPlot().
|
protectedinherited |
Return the list of cubeviewports.
References Isis::Workspace::cubeViewportList().
Referenced by Isis::FileTool::closeAll(), Isis::MatchTool::createPoint(), Isis::BlinkTool::eventFilter(), Isis::PanTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::RubberBandTool::mouseMove(), Isis::ScatterPlotTool::repaintViewports(), Isis::AbstractPlotTool::repaintViewports(), Isis::ZoomTool::rubberBandComplete(), Isis::ControlNetTool::setControlNet(), Isis::FeatureNomenclatureTool::setFontColor(), Isis::FeatureNomenclatureTool::setFontSize(), Isis::FeatureNomenclatureTool::setShowApprovedOnly(), Isis::FeatureNomenclatureTool::setVectorType(), Isis::StretchTool::stretchGlobalAllViewports(), Isis::MeasureTool::updateMeasure(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::FindTool::updateTool(), and Isis::AbstractPlotTool::viewportsToPlot().
|
protectedvirtual |
Forget about all existing plot curves.
Don't delete them, just forget them so that when the user requests new ones they get brand new curves.
Implements Isis::AbstractPlotTool.
|
protectedvirtual |
This method is called when the tool is activated by the parent, or when the plot mode is changed.
It's used to activate or change the rubber banding mode to be either rectangle or line, depending on the current plot type.
Reimplemented from Isis::Tool.
References Isis::Tool::rubberBandTool(), and Isis::RubberBandTool::setDrawActiveViewportOnly().
|
inlinevirtualinherited |
Anytime a tool is created, you must give it a name for the menu.
Reimplemented in Isis::FindTool, Isis::StretchTool, Isis::FeatureNomenclatureTool, Isis::AdvancedTrackTool, Isis::FileTool, Isis::ZoomTool, Isis::MeasureTool, Isis::BandTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, Isis::WindowTool, and Isis::PanTool.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
protectedvirtualinherited |
p | |
s |
References Isis::Tool::clearWarningSignal().
|
protectedvirtualinherited |
Resets the Warning to Nowarning when a different activity occurs on the application.
This is called by all the mouseButtonRelease events in all the tools.
p | |
s |
Reimplemented in Isis::FeatureNomenclatureTool.
References Isis::Tool::clearWarningSignal().
Referenced by Isis::StretchTool::mouseButtonRelease().
|
protectedvirtualinherited |
p |
References Isis::Tool::clearWarningSignal().
|
inlineprotectedvirtualslotinherited |
|
inlineprotectedvirtualslotinherited |
|
protectedvirtualslotinherited |
p |
|
inlineprotectedvirtualslotinherited |
|
virtualinherited |
This method allows each plot window to paint any information it wants onto the cube viewports.
For example, spatial plots can paint the originating selection in the color of the curve.
vp | The viewport to paint onto |
painter | The painter to use for painting |
Reimplemented from Isis::Tool.
Reimplemented in Isis::StereoTool.
References Isis::PlotWindow::paint().
Referenced by Isis::StereoTool::paintViewport().
|
protectedinherited |
Get a list of all of the instantiated plot windows.
Referenced by Isis::AbstractPlotTool::updateTool().
|
slot |
This method replots the data, with current settings and rubber band, in the plot window.
References Isis::AbstractPlotTool::addWindow(), Isis::Tool::cubeViewport(), Isis::IsSpecial(), Isis::PlotWindow::replot(), Isis::Tool::rubberBandTool(), Isis::AbstractPlotTool::selectedWindow(), Isis::toInt(), updateTool(), Isis::RubberBandTool::vertices(), Isis::AbstractPlotTool::viewportsToPlot(), and Isis::PlotWindow::xAxisUnits().
Referenced by rubberBandComplete().
|
protectedinherited |
Registers the tool to the viewport.
viewport |
References Isis::MdiCubeViewport::registerTool(), and Isis::Tool::stretchRequested().
Referenced by Isis::Tool::addTo().
|
inlineprotectedvirtualinherited |
Anytime a tool is created, you must be able to remove it's connections.
cvp |
Reimplemented in Isis::MeasureTool, Isis::TrackTool, and Isis::WindowTool.
|
slotinherited |
When a user closes a window, we want to remove that window from our combo box for selecting the active window.
We also repaint all of the cube viewports so that the destroyed window leaves no visible artifacts.
window | The plot window that is to be removed |
References Isis::AbstractPlotTool::repaintViewports().
Referenced by Isis::AbstractPlotTool::addWindow().
|
slotinherited |
This method causes the viewports corresponding with the given CubePlotCurve to be repainted with all of the area's of interest associated with the CubePlotCurve's PlotWindow.
pc | The plot curve which needs to repaint |
References Isis::CubeViewport::cube(), Isis::Tool::cubeViewportList(), Isis::Cube::fileName(), and Isis::CubePlotCurve::sourceCube().
|
protectedslotinherited |
This method causes all of the viewports to be repainted.
This is useful because it removes visible artifacts from deleted plot windows/curves.
References Isis::Tool::cubeViewportList().
Referenced by Isis::AbstractPlotTool::addWindow(), and Isis::AbstractPlotTool::removeWindow().
|
protectedvirtualslot |
Called when the user has finished drawing with the rubber band.
ChangePlot is called to plot the data within the rubber band.
References refreshPlot(), Isis::Tool::rubberBandTool(), and Isis::AbstractPlotTool::selectedWindow().
|
inherited |
References Isis::ToolList::rubberBandTool().
Referenced by Isis::MeasureTool::createToolBarWidget(), Isis::HistogramTool::enableRubberBandTool(), enableRubberBandTool(), Isis::SpatialPlotTool::enableRubberBandTool(), Isis::StereoTool::enableRubberBandTool(), Isis::MeasureTool::enableRubberBandTool(), Isis::ZoomTool::enableRubberBandTool(), Isis::EditTool::enableRubberBandTool(), Isis::StretchTool::enableRubberBandTool(), Isis::Tool::enableRubberBandTool(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), refreshPlot(), Isis::RubberBandComboBox::RubberBandComboBox(), Isis::HistogramTool::rubberBandComplete(), Isis::MeasureTool::rubberBandComplete(), rubberBandComplete(), Isis::SpatialPlotTool::rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::StereoTool::rubberBandComplete(), Isis::EditTool::rubberBandComplete(), Isis::StretchTool::rubberBandComplete(), and Isis::RubberBandComboBox::selectionChanged().
|
inlineprotectedvirtualinherited |
Reimplemented in Isis::RubberBandTool.
|
inlineprotectedvirtualslotinherited |
This is called when actions change which pixels from the cube are displayed.
|
protectedinherited |
Get the 'active' plot window (the window selected by the user to contain new curves).
This may return NULL if and only if createIfNeeded is false. Windows are created by child classes.
createIfNeeded | If this is true, and no window is selected in the active window combo box, then a window will be created and selected before this method returns. |
References Isis::AbstractPlotTool::addWindow().
Referenced by Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), refreshPlot(), Isis::HistogramTool::rubberBandComplete(), rubberBandComplete(), Isis::SpatialPlotTool::rubberBandComplete(), and Isis::AbstractPlotTool::showPlotWindow().
|
slotinherited |
Sets the current viewport to the given cvp.
cvp |
References Isis::Tool::updateTool(), and Isis::Tool::viewportChanged().
Referenced by Isis::Tool::addTo(), and Isis::FileTool::closeAll().
|
inherited |
Referenced by Isis::ToolList::append().
|
slotinherited |
displays the plot window
References Isis::AbstractPlotTool::selectedWindow(), and Isis::PlotWindow::showWindow().
|
protected |
Get the combo box which toggles between units of wavelength and band number.
References ASSERT.
Referenced by createToolBarWidget().
|
inlineprotectedvirtualinherited |
Reimplemented in Isis::StretchTool.
Referenced by Isis::Tool::registerTool().
|
signalinherited |
|
inlineinherited |
returns the path to the icon directory.
Referenced by Isis::AdvancedTrackTool::AdvancedTrackTool(), Isis::BlinkTool::BlinkTool(), Isis::PanTool::createToolBarWidget(), Isis::BandTool::createToolBarWidget(), Isis::StereoTool::createToolBarWidget(), Isis::ZoomTool::createToolBarWidget(), Isis::EditTool::createToolBarWidget(), Isis::FindTool::createToolBarWidget(), Isis::StretchTool::createToolBarWidget(), Isis::MatchTool::createToolBarWidget(), Isis::FileTool::FileTool(), Isis::FindTool::FindTool(), Isis::HelpTool::HelpTool(), Isis::HistogramTool::HistogramTool(), Isis::PanTool::PanTool(), Isis::SpecialPixelTool::SpecialPixelTool(), Isis::RubberBandComboBox::toolIconDir(), Isis::PanTool::toolPadAction(), Isis::ScatterPlotTool::toolPadAction(), Isis::HistogramTool::toolPadAction(), Isis::BandTool::toolPadAction(), Isis::SunShadowTool::toolPadAction(), toolPadAction(), Isis::SpatialPlotTool::toolPadAction(), Isis::MeasureTool::toolPadAction(), Isis::StereoTool::toolPadAction(), Isis::ControlNetTool::toolPadAction(), Isis::ZoomTool::toolPadAction(), Isis::EditTool::toolPadAction(), Isis::FeatureNomenclatureTool::toolPadAction(), Isis::StatisticsTool::toolPadAction(), Isis::FindTool::toolPadAction(), Isis::StretchTool::toolPadAction(), Isis::MatchTool::toolPadAction(), Isis::QnetTool::toolPadAction(), Isis::WindowTool::WindowTool(), and Isis::ZoomTool::ZoomTool().
This method configures the QAction for this tool.
toolpad | - the ToolPad to add the SpectralPlotTool to |
Reimplemented from Isis::Tool.
References Isis::Tool::toolIconDir().
|
inlineprotectedvirtualinherited |
|
protectedvirtual |
Updates plot tool.
Reimplemented from Isis::AbstractPlotTool.
References Isis::PlotCurve::Band, Isis::Cube::bandCount(), Isis::CubeViewport::cube(), Isis::PvlObject::findObject(), Isis::PvlContainer::hasKeyword(), Isis::Cube::label(), Isis::toInt(), Isis::AbstractPlotTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), and Isis::PlotCurve::Wavelength.
Referenced by refreshPlot().
|
signalinherited |
|
protectedslot |
This protected slot is called when user selects a viewport.
Referenced by SpectralPlotTool().
|
protectedinherited |
Get a list of linked viewports that should be plotting when a new plot is requested.
This is a utility for child classes. For example, a spatial plot will make a curve for each viewport.
References Isis::Tool::cubeViewport(), Isis::Tool::cubeViewportList(), and Isis::MdiCubeViewport::isLinked().
Referenced by Isis::SpatialPlotTool::refreshPlot(), refreshPlot(), updateTool(), and Isis::SpatialPlotTool::updateTool().
|
protectedinherited |