Tool for histograms.
More...
#include <HistogramTool.h>
Inherits Isis::AbstractPlotTool.
Tool for histograms.
- Author
- ????-??-?? Noah Hilt
Isis::HistogramTool::HistogramTool |
( |
QWidget * |
parent | ) |
|
void Isis::Tool::activate |
( |
bool |
on | ) |
|
|
slotinherited |
Activates the tool.
- Parameters
-
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 |
Adds the tool to the application.
- Parameters
-
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::CubeDnView::CubeDnView(), Isis::ViewportMainWindow::ViewportMainWindow(), and Isis::Workspace::Workspace().
void Isis::Tool::addTo |
( |
ToolPad * |
toolpad | ) |
|
|
inherited |
virtual void Isis::Tool::addTo |
( |
QMenu * |
menu | ) |
|
|
inlinevirtualinherited |
- Parameters
-
Reimplemented in Isis::FindTool, Isis::FeatureNomenclatureTool, Isis::StretchTool, Isis::QnetFileTool, Isis::AdvancedTrackTool, Isis::ZoomTool, Isis::SpectralPlotTool, Isis::MeasureTool, Isis::FileTool, Isis::SunShadowTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, Isis::WindowTool, and Isis::PanTool.
void Isis::Tool::addToActive |
( |
QToolBar * |
toolbar | ) |
|
|
inherited |
virtual void Isis::Tool::addToPermanent |
( |
QToolBar * |
toolbar | ) |
|
|
inlinevirtualinherited |
PlotWindow * Isis::AbstractPlotTool::addWindow |
( |
| ) |
|
|
protectedinherited |
void Isis::Tool::clearWarningSignal |
( |
| ) |
|
|
signalinherited |
This is a helper method for children.
Given a title, a color, and units a new CubePlotCurve is created.
- Parameters
-
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. |
- Returns
- createCurve The requested plot curve
References Isis::PlotCurve::setColor(), and Isis::PlotCurve::setPen().
QWidget * Isis::HistogramTool::createToolBarWidget |
( |
QStackedWidget * |
parent | ) |
|
|
protectedvirtual |
PlotWindow * Isis::HistogramTool::createWindow |
( |
| ) |
|
|
protectedvirtual |
Return the current cubeviewport.
- Returns
- CubeViewport*
Referenced by Isis::WindowTool::addConnections(), Isis::TrackTool::addConnections(), Isis::FileTool::discard(), Isis::FileTool::exportView(), Isis::SunShadowTool::mouseButtonPress(), Isis::PanTool::mouseButtonRelease(), Isis::IpceTool::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(), refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::WindowTool::removeConnections(), Isis::TrackTool::removeConnections(), 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().
Return the list of cubeviewports.
- Returns
- CubeViewportList*
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::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().
void Isis::HistogramTool::detachCurves |
( |
| ) |
|
|
protectedvirtual |
void Isis::HistogramTool::enableRubberBandTool |
( |
| ) |
|
|
protectedvirtual |
virtual QString Isis::Tool::menuName |
( |
| ) |
const |
|
inlinevirtualinherited |
Anytime a tool is created, you must give it a name for the menu.
- Returns
- QString
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(), Isis::CubeDnView::CubeDnView(), and Isis::Workspace::Workspace().
void Isis::Tool::mouseButtonPress |
( |
QPoint |
p, |
|
|
Qt::MouseButton |
s |
|
) |
| |
|
protectedvirtualslotinherited |
void Isis::Tool::mouseButtonRelease |
( |
QPoint |
p, |
|
|
Qt::MouseButton |
s |
|
) |
| |
|
protectedvirtualslotinherited |
void Isis::Tool::mouseDoubleClick |
( |
QPoint |
p | ) |
|
|
protectedvirtualslotinherited |
virtual void Isis::Tool::mouseEnter |
( |
| ) |
|
|
inlineprotectedvirtualslotinherited |
virtual void Isis::Tool::mouseLeave |
( |
| ) |
|
|
inlineprotectedvirtualslotinherited |
void Isis::Tool::mouseMove |
( |
QPoint |
p | ) |
|
|
protectedvirtualslotinherited |
virtual void Isis::Tool::mouseMove |
( |
QPoint |
p, |
|
|
Qt::MouseButton |
|
|
) |
| |
|
inlineprotectedvirtualslotinherited |
void Isis::AbstractPlotTool::paintViewport |
( |
MdiCubeViewport * |
vp, |
|
|
QPainter * |
painter |
|
) |
| |
|
virtualinherited |
void Isis::HistogramTool::refreshPlot |
( |
| ) |
|
|
slot |
This method plots the selected data in a histogram window.
References Isis::Histogram::AddData(), Isis::Statistics::Average(), Isis::Histogram::BinCount(), Isis::Histogram::BinMiddle(), Isis::Histogram::Bins(), Isis::Histogram::BinSize(), Isis::RubberBandTool::CircleMode, Isis::CubeViewport::cube(), Isis::CubeViewport::cubeToViewport(), Isis::Tool::cubeViewport(), Isis::RubberBandTool::currentMode(), Isis::Buffer::DoubleBuffer(), Isis::RubberBandTool::geometry(), Isis::HistogramPlotWindow::getDockWidget(), Isis::globalFactory, Isis::CubeViewport::grayBand(), Isis::RubberBandTool::LineMode, Isis::Statistics::Maximum(), Isis::Histogram::Median(), Isis::Statistics::Minimum(), Isis::Histogram::Mode(), Isis::Cube::read(), Isis::RubberBandTool::RectangleMode, Isis::PlotWindow::replot(), round, Isis::Tool::rubberBandTool(), Isis::AbstractPlotTool::selectedWindow(), Isis::Brick::SetBasePosition(), Isis::Histogram::Skew(), Isis::Statistics::StandardDeviation(), Isis::Statistics::ValidPixels(), Isis::Statistics::Variance(), Isis::RubberBandTool::vertices(), and Isis::CubeViewport::viewportToCube().
Referenced by rubberBandComplete().
|
inlineprotectedvirtualinherited |
void Isis::AbstractPlotTool::removeWindow |
( |
QObject * |
window | ) |
|
|
slotinherited |
void Isis::AbstractPlotTool::repaintViewports |
( |
CubePlotCurve * |
pc | ) |
|
|
slotinherited |
void Isis::AbstractPlotTool::repaintViewports |
( |
| ) |
|
|
protectedslotinherited |
void Isis::HistogramTool::rubberBandComplete |
( |
| ) |
|
|
protectedslot |
References Isis::ToolList::rubberBandTool().
Referenced by Isis::MeasureTool::createToolBarWidget(), enableRubberBandTool(), Isis::SpectralPlotTool::enableRubberBandTool(), Isis::SpatialPlotTool::enableRubberBandTool(), Isis::StereoTool::enableRubberBandTool(), Isis::MeasureTool::enableRubberBandTool(), Isis::ZoomTool::enableRubberBandTool(), Isis::EditTool::enableRubberBandTool(), Isis::StretchTool::enableRubberBandTool(), Isis::Tool::enableRubberBandTool(), refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::RubberBandComboBox::RubberBandComboBox(), rubberBandComplete(), Isis::MeasureTool::rubberBandComplete(), Isis::SpectralPlotTool::rubberBandComplete(), Isis::SpatialPlotTool::rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::StereoTool::rubberBandComplete(), Isis::EditTool::rubberBandComplete(), Isis::StretchTool::rubberBandComplete(), and Isis::RubberBandComboBox::selectionChanged().
virtual void Isis::Tool::scaleChanged |
( |
| ) |
|
|
inlineprotectedvirtualslotinherited |
virtual void Isis::Tool::screenPixelsChanged |
( |
| ) |
|
|
inlineprotectedvirtualslotinherited |
This is called when actions change which pixels from the cube are displayed.
PlotWindow * Isis::AbstractPlotTool::selectedWindow |
( |
bool |
createIfNeeded = true | ) |
|
|
protectedinherited |
void Isis::Tool::setList |
( |
ToolList * |
currentList | ) |
|
|
inherited |
void Isis::AbstractPlotTool::showPlotWindow |
( |
| ) |
|
|
slotinherited |
|
inlineprotectedvirtualslotinherited |
void Isis::Tool::toolActivated |
( |
| ) |
|
|
signalinherited |
QString Isis::Tool::toolIconDir |
( |
| ) |
const |
|
inlineinherited |
returns the path to the icon directory.
- Returns
- QString
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(), HistogramTool(), Isis::PanTool::PanTool(), Isis::SpecialPixelTool::SpecialPixelTool(), Isis::RubberBandComboBox::toolIconDir(), Isis::PanTool::toolPadAction(), Isis::ScatterPlotTool::toolPadAction(), toolPadAction(), Isis::BandTool::toolPadAction(), Isis::SunShadowTool::toolPadAction(), Isis::IpceTool::toolPadAction(), Isis::SpectralPlotTool::toolPadAction(), Isis::SpatialPlotTool::toolPadAction(), Isis::MeasureTool::toolPadAction(), Isis::StereoTool::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().
virtual void Isis::Tool::updateMeasure |
( |
| ) |
|
|
inlineprotectedvirtualslotinherited |
void Isis::HistogramTool::updateTool |
( |
| ) |
|
|
protectedvirtual |
void Isis::Tool::viewportChanged |
( |
| ) |
|
|
signalinherited |
The documentation for this class was generated from the following files: