USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::StretchTool Class Reference

Stretch image edit tool. More...

#include <StretchTool.h>

Inheritance diagram for Isis::StretchTool:
Inheritance graph
Collaboration diagram for Isis::StretchTool:
Collaboration graph

Public Types

enum  StretchBand {
  Gray, Red, Green, Blue,
  All
}
 Enum to store the bands. More...
 

Public Slots

void stretchGlobal ()
 Does a global stretch for the active viewport.
 
void stretchGlobal (CubeViewport *)
 Does a global stretch for the specified viewport.
 
void stretchGlobalAllBands ()
 This resets the stretch across all bands.
 
void stretchGlobalAllViewports ()
 Does a global stretch for all the viewports.
 
void stretchRegional ()
 Does a regional stretch for the active viewport.
 
void stretchRegional (CubeViewport *)
 Does a regional stretch for the specified viewport.
 
void activate (bool)
 Activates the tool.
 
void setCubeViewport (MdiCubeViewport *cvp)
 Sets the current viewport to the given cvp.
 

Signals

void stretchChipViewport (Stretch *, CubeViewport *)
 when a viewport is stretched, send the stretch and the viewport associated with it to any ChipViewport's that might be listening
 
void warningSignal (std::string &pStr, const std::string pExStr)
 Shows a warning.
 
void clearWarningSignal ()
 
void toolActivated ()
 
void viewportChanged ()
 

Public Member Functions

 StretchTool (QWidget *parent)
 StretchTool constructor.
 
 ~StretchTool ()
 Destructor.
 
void addTo (QMenu *menu)
 Adds the stretch action to the given menu.
 
void updateAdvStretchDialogforAll (void)
 Update the streches and corresponding histograms for all the colors Red, Green and Blue for Stretch All Mode.
 
QString menuName () const
 This let's Tool know which Menu the actions this class has should be added to.
 
void addTo (ViewportMainWindow *mw)
 Adds the tool to the application.
 
void addTo (ToolPad *toolpad)
 Adds the tool to the toolpad.
 
virtual void addTo (Workspace *ws)
 Adds the given workspace to the cubeviewport list.
 
virtual void addToPermanent (QToolBar *toolbar)
 
void addToActive (QToolBar *toolbar)
 
QString toolIconDir () const
 returns the path to the icon directory.
 
virtual void paintViewport (MdiCubeViewport *vp, QPainter *painter)
 
RubberBandToolrubberBandTool ()
 
void setList (ToolList *currentList)
 

Static Public Member Functions

static Stretch stretchBuffer (ViewportBuffer *buffer, QRect rect)
 This method computes the stretch over a region using the viewport buffer.
 
static Stretch stretchBand (CubeViewport *cvp, StretchBand band)
 This method computes the stretch over the entire cube.
 
static Statistics statsFromCube (Cube *cube, int band)
 This method will calculate and return the statistics for a given cube and band.
 
static Statistics statsFromBuffer (ViewportBuffer *buffer, QRect rect)
 This method will calculate and return the statistics for a given region and viewport buffer.
 
static Histogram histFromCube (Cube *cube, int band, double min, double max)
 This method will calculate and return the histogram for a given cube and band.
 
static Histogram histFromBuffer (ViewportBuffer *buffer)
 Given a viewport buffer, this calculates a histogram.
 
static Histogram histFromBuffer (ViewportBuffer *buffer, QRect rect, double min, double max)
 This method will calculate and return the histogram for a given region and viewport buffer.
 

Protected Types

typedef QVector
< MdiCubeViewport * > 
CubeViewportList
 A list of cubeviewports.
 

Protected Slots

void mouseButtonRelease (QPoint p, Qt::MouseButton s)
 This method will call a global stretch if the right mouse button is released.
 
void enableRubberBandTool ()
 This method enables the RubberBandTool.
 
void screenPixelsChanged ()
 This is called when the visible area changes.
 
void updateHistograms ()
 This updates the visible histograms in the advanced stretch, if present.
 
void rubberBandComplete ()
 This method is called when the RubberBandTool is complete.
 
void setCubeViewport (CubeViewport *)
 This updates the advanced stretch to use the given viewport.
 
virtual void mouseEnter ()
 
virtual void mouseMove (QPoint p)
 
virtual void mouseMove (QPoint p, Qt::MouseButton)
 
virtual void mouseLeave ()
 
virtual void mouseDoubleClick (QPoint p)
 
virtual void mouseButtonPress (QPoint p, Qt::MouseButton s)
 
virtual void updateMeasure ()
 
virtual void scaleChanged ()
 
void registerTool (MdiCubeViewport *viewport)
 Registers the tool to the viewport.
 

Protected Member Functions

QActiontoolPadAction (ToolPad *pad)
 Adds the stretch action to the toolpad.
 
QWidgetcreateToolBarWidget (QStackedWidget *parent)
 Creates the widget to add to the tool bar.
 
void updateTool ()
 Updates the stretch tool.
 
void stretchRequested (MdiCubeViewport *cvp, int bandId)
 The cube viewport requested a stretch at this time, give it to the viewport.
 
MdiCubeViewportcubeViewport () const
 Return the current cubeviewport.
 
CubeViewportListcubeViewportList () const
 Return the list of cubeviewports.
 
virtual void addConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must add the connections for it.
 
virtual void removeConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must be able to remove it's connections.
 
Workspaceworkspace ()
 

Private Slots

void stretchChanged ()
 This method is called when the stretch has changed and sets the min/max text fields to the correct values.
 
void advancedStretchChanged ()
 This is called when one of the advanced stretches changed.
 
void changeStretch ()
 This method is called when the stretch has changed and sets the min/max text fields to the correct values.
 
void showAdvancedDialog ()
 This methods shows and updates the advanced dialog.
 
void setStretchAcrossBands ()
 Sets the stretch for all the bands in the active viewport to the current stretch.
 
void setStretchAllViewports ()
 Sets the stretch for all the viewports to the current stretch in the active viewport.
 
void stretchBandChanged (int)
 The selected band for stretching changed.
 

Private Member Functions

void stretchRect (CubeViewport *cvp, QRect rect)
 stretch the specified CubeViewport with the given rect
 

Private Attributes

AdvancedStretchDialogm_advancedStretch
 The advanced dialog.
 
QToolButton * m_copyButton
 Copy Button.
 
QToolButton * m_globalButton
 Global Button.
 
QToolButton * m_stretchRegionalButton
 Regional Stretch Button.
 
QPushButton * m_flashButton
 Button to press for global stretch.
 
QActionm_stretchGlobal
 Global stretch action.
 
QActionm_stretchRegional
 Regional stretch action.
 
QActionm_stretchManual
 Manual stretch action.
 
QActionm_copyBands
 Copy band stretch action.
 
QComboBoxm_stretchBandComboBox
 Stretch combo box.
 
QLineEdit * m_stretchMinEdit
 Min. line edit.
 
QLineEdit * m_stretchMaxEdit
 Max. line edit.
 
StretchBand m_stretchBand
 Current stretch band.
 
Stretchm_preGlobalStretches
 Stretches before global button pressed.
 
Stretchm_chipViewportStretch
 ChipViewport's stretch.
 

Detailed Description

Stretch image edit tool.

This tool is part of the Qisis namespace and allows interactive editing of displayed images.

Author
????-??-?? Unknown
History:

2008-05-23 Noah Hilt - Added RubberBandTool

2010-03-18 Sharmila Prasad - Exception handling and emit warning signal to the Viewportwindow to display warning status on the status bar(Track Tool)

2010-04-08 Steven Lambright - Made to work with threaded viewportbuffer and also removed map to viewport stretches due to synchronization problems.

2010-04-08 Steven Lambright - Fixed access of viewport data for statistics

2010-05-20 Steven Lambright - Re-enabled the advanced stretch... without a viewport map!

2010-06-26 Eric Hyer

2010-08-30 Eric Hyer

  • Added RGB support for stretchRegional
  • stretchRegional and rubberBandComplete now use the new private method stretchRect in order to avoid duplicate code.

2010-11-22 Eric Hyer - new SIGNAL called stretchChipViewport exists for sending stretches made in CubeViewports to any ChipViewports that want to get stretched.

2010-12-01 Steven Lambright - Improved stretch copy abilities

2010-12-02 Eric Hyer - changed where stretchChipViewport is emitted.

2011-03-22 Sharmila Prasad - Add option to stretch All Bands

2011-11-04 Steven Lambright - Improved advanced stretch to allow all stretches to be changed despite combo box. References #567.

2012-01-18 Steven Lambright - Fixed a bug that caused the stretch pair line edits to not update properly in grey mode when the color mode band selection was set to all. Also, fixed layout of stretch options to correctly squeeze widgets left. Fixes #640.

2012-06-11 Steven Lambright - Fixed a bug that caused the stretch pair line edits to not update properly when switching between viewports, and another that caused the stretch to be copied the new viewport if the advanced stretch dialog is active. Fixes #771.

Definition at line 95 of file StretchTool.h.

Member Typedef Documentation

typedef QVector< MdiCubeViewport * > Isis::Tool::CubeViewportList
protectedinherited

A list of cubeviewports.

Definition at line 219 of file Tool.h.

Member Enumeration Documentation

Enum to store the bands.

Enumerator
Gray 

Gray Band.

Red 

Red Band.

Green 

Green Band.

Blue 

Blue Band.

All 

All Bands.

Definition at line 106 of file StretchTool.h.

Constructor & Destructor Documentation

Isis::StretchTool::~StretchTool ( )

Destructor.

Definition at line 75 of file StretchTool.cpp.

References m_chipViewportStretch, and m_preGlobalStretches.

Member Function Documentation

virtual void Isis::Tool::addConnections ( MdiCubeViewport cvp)
inlineprotectedvirtualinherited

Anytime a tool is created, you must add the connections for it.

Parameters
cvp

Reimplemented in Isis::TrackTool, and Isis::WindowTool.

Definition at line 253 of file Tool.h.

Referenced by Isis::Tool::addViewportConnections().

void Isis::Tool::addTo ( ToolPad toolpad)
inherited

Adds the tool to the toolpad.

Parameters
toolpad

Definition at line 97 of file Tool.cpp.

References Isis::Tool::activate(), Isis::ToolPad::addAction(), Isis::Tool::m_toolPadAction, and Isis::Tool::toolPadAction().

void Isis::StretchTool::addTo ( QMenu *  menu)
virtual

Adds the stretch action to the given menu.

Parameters
menu

Reimplemented from Isis::Tool.

Definition at line 112 of file StretchTool.cpp.

References m_stretchGlobal, and m_stretchRegional.

void Isis::Tool::addTo ( Workspace ws)
virtualinherited

Adds the given workspace to the cubeviewport list.

Parameters
ws

Reimplemented in Isis::EditTool, Isis::FileTool, Isis::SpecialPixelTool, and Isis::WindowTool.

Definition at line 44 of file Tool.cpp.

References Isis::Tool::registerTool(), and Isis::Tool::setCubeViewport().

void Isis::Tool::addToActive ( QToolBar toolbar)
inherited
virtual void Isis::Tool::addToPermanent ( QToolBar toolbar)
inlinevirtualinherited
QWidget * Isis::StretchTool::createToolBarWidget ( QStackedWidget *  parent)
protectedvirtual
MdiCubeViewport* Isis::Tool::cubeViewport ( ) const
inlineprotectedinherited

Return the current cubeviewport.

Returns
CubeViewport*

Definition at line 211 of file Tool.h.

References Isis::Tool::m_cvp.

Referenced by Isis::WindowTool::addConnections(), Isis::TrackTool::addConnections(), advancedStretchChanged(), Isis::FindTool::centerLinkedViewports(), changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyLinkedViewports(), Isis::FileTool::discard(), Isis::Tool::enableToolBar(), Isis::FileTool::exportView(), Isis::StatisticsTool::getStatistics(), Isis::FindTool::handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::RubberBandTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), 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::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), Isis::FindTool::refresh(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::WindowTool::removeConnections(), Isis::TrackTool::removeConnections(), Isis::RubberBandTool::repaint(), Isis::WindowTool::resizeWindows(), Isis::HistogramTool::rubberBandComplete(), Isis::MeasureTool::rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::EditTool::rubberBandComplete(), rubberBandComplete(), Isis::FileTool::save(), Isis::FileTool::saveAs(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveAsReducedCube(), Isis::FileTool::saveInfo(), Isis::BandTool::setBandBin(), Isis::BandTool::setList(), setStretchAcrossBands(), setStretchAllViewports(), showAdvancedDialog(), Isis::ScatterPlotTool::showNewScatterPlotConfig(), stretchChanged(), stretchGlobal(), stretchGlobalAllBands(), stretchRegional(), Isis::EditTool::undoEdit(), updateAdvStretchDialogforAll(), updateHistograms(), Isis::TrackTool::updateLabels(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::BandTool::updateTool(), Isis::AbstractPlotTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::FileTool::updateTool(), Isis::EditTool::updateTool(), Isis::FindTool::updateTool(), updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::EditTool::writeToCube(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().

Tool::CubeViewportList * Isis::Tool::cubeViewportList ( ) const
protectedinherited

Return the list of cubeviewports.

Returns
CubeViewportList*

Definition at line 389 of file Tool.cpp.

References Isis::Workspace::cubeViewportList().

Referenced by Isis::BlinkTool::advance(), Isis::SpecialPixelTool::apply(), Isis::FindTool::centerLinkedViewports(), Isis::WindowTool::changeCursor(), Isis::FileTool::closeAll(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::MatchTool::createPoint(), Isis::BlinkTool::eventFilter(), Isis::FeatureNomenclatureTool::featuresIdentified(), Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::FeatureNomenclatureTool::findNomenclatureStateChanged(), Isis::FindTool::handleLinkClicked(), Isis::WindowTool::linkWindows(), Isis::RubberBandTool::mouseButtonRelease(), Isis::RubberBandTool::mouseMove(), Isis::QnetTool::openGround(), Isis::StereoTool::paintAllViewports(), Isis::MatchTool::paintAllViewports(), Isis::QnetTool::paintAllViewports(), Isis::FindTool::refresh(), Isis::ScatterPlotTool::repaintViewports(), Isis::AbstractPlotTool::repaintViewports(), Isis::WindowTool::resizeWindows(), Isis::BlinkTool::reverse(), Isis::ZoomTool::rubberBandComplete(), Isis::MatchTool::serialNumberList(), Isis::FeatureNomenclatureTool::setFontColor(), Isis::FeatureNomenclatureTool::setFontSize(), Isis::FeatureNomenclatureTool::setShowApprovedOnly(), setStretchAllViewports(), Isis::FeatureNomenclatureTool::setVectorType(), stretchGlobalAllViewports(), Isis::BlinkTool::toggleLink(), Isis::WindowTool::unlinkWindows(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::FindTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().

void Isis::StretchTool::enableRubberBandTool ( )
protectedslot

This method enables the RubberBandTool.

Definition at line 898 of file StretchTool.cpp.

References Isis::RubberBandTool::enable(), and Isis::RubberBandTool::setDrawActiveViewportOnly().

Referenced by mouseButtonRelease().

Histogram Isis::StretchTool::histFromBuffer ( ViewportBuffer buffer)
static

Given a viewport buffer, this calculates a histogram.

Parameters
buffer
Returns
Histogram

Definition at line 1157 of file StretchTool.cpp.

References Isis::Statistics::BestMaximum(), Isis::Statistics::BestMinimum(), Isis::ViewportBuffer::bufferXYRect(), and statsFromBuffer().

Referenced by setCubeViewport(), stretchBuffer(), updateAdvStretchDialogforAll(), and updateHistograms().

Histogram Isis::StretchTool::histFromBuffer ( ViewportBuffer buffer,
QRect  rect,
double  min,
double  max 
)
static

This method will calculate and return the histogram for a given region and viewport buffer.

Parameters
buffer
rect
min
max
Returns
Histogram

Definition at line 1176 of file StretchTool.cpp.

References _FILEINFO_, Isis::Histogram::AddData(), Isis::ViewportBuffer::bufferXYRect(), Isis::ViewportBuffer::getLine(), and Isis::IException::Unknown.

Histogram Isis::StretchTool::histFromCube ( Cube cube,
int  band,
double  min,
double  max 
)
static

This method will calculate and return the histogram for a given cube and band.

Parameters
cube
band
min
max
Returns
Histogram

Definition at line 1135 of file StretchTool.cpp.

References Isis::Histogram::AddData(), Isis::Cube::lineCount(), Isis::Cube::pixelType(), Isis::Cube::read(), Isis::Cube::sampleCount(), and Isis::Brick::SetBasePosition().

Referenced by stretchBand().

QString Isis::StretchTool::menuName ( ) const
inlinevirtual

This let's Tool know which Menu the actions this class has should be added to.

Removal of this results in "Ctrl+R" and "Ctrl+G" not working.

Returns
Name of the Menu

Reimplemented from Isis::Tool.

Definition at line 133 of file StretchTool.h.

void Isis::Tool::mouseButtonPress ( QPoint  p,
Qt::MouseButton  s 
)
protectedvirtualslotinherited
Parameters
p
s

Definition at line 366 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().

void Isis::StretchTool::mouseButtonRelease ( QPoint  start,
Qt::MouseButton  s 
)
protectedslot

This method will call a global stretch if the right mouse button is released.

Parameters
start
s

Definition at line 874 of file StretchTool.cpp.

References Isis::Tool::cubeViewport(), enableRubberBandTool(), Isis::Tool::mouseButtonRelease(), stretchChipViewport(), and stretchGlobal().

void Isis::Tool::mouseDoubleClick ( QPoint  p)
protectedvirtualslotinherited
Parameters
p

Definition at line 357 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().

void Isis::Tool::mouseMove ( QPoint  p)
protectedvirtualslotinherited
Parameters
p

Definition at line 351 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().

virtual void Isis::Tool::paintViewport ( MdiCubeViewport vp,
QPainter *  painter 
)
inlinevirtualinherited
void Isis::Tool::registerTool ( MdiCubeViewport viewport)
protectedslotinherited

Registers the tool to the viewport.

Parameters
viewport

Definition at line 326 of file Tool.cpp.

References Isis::Tool::m_cvp, and Isis::MdiCubeViewport::registerTool().

Referenced by Isis::Tool::addTo().

virtual void Isis::Tool::removeConnections ( MdiCubeViewport cvp)
inlineprotectedvirtualinherited

Anytime a tool is created, you must be able to remove it's connections.

Parameters
cvp

Reimplemented in Isis::MeasureTool, Isis::TrackTool, and Isis::WindowTool.

Definition at line 261 of file Tool.h.

Referenced by Isis::Tool::removeViewportConnections().

void Isis::StretchTool::rubberBandComplete ( )
protectedslot

This method is called when the RubberBandTool is complete.

It will get a rectangle from the RubberBandTool and stretch accordingly.

Definition at line 805 of file StretchTool.cpp.

References Isis::Tool::cubeViewport(), Isis::RubberBandTool::rectangle(), and stretchRect().

void Isis::StretchTool::screenPixelsChanged ( )
protectedslot

This is called when the visible area changes.

Definition at line 369 of file StretchTool.cpp.

References updateHistograms().

Referenced by stretchRequested().

void Isis::Tool::setCubeViewport ( MdiCubeViewport cvp)
slotinherited
void Isis::StretchTool::showAdvancedDialog ( )
privateslot

This methods shows and updates the advanced dialog.

Definition at line 718 of file StretchTool.cpp.

References Isis::Tool::cubeViewport(), m_advancedStretch, Isis::AdvancedStretchDialog::updateStretch(), and updateTool().

Referenced by createToolBarWidget().

Statistics Isis::StretchTool::statsFromBuffer ( ViewportBuffer buffer,
QRect  rect 
)
static

This method will calculate and return the statistics for a given region and viewport buffer.

Parameters
buffer
rect
Returns
Statistics

Definition at line 1100 of file StretchTool.cpp.

References _FILEINFO_, Isis::ViewportBuffer::bufferXYRect(), Isis::ViewportBuffer::getLine(), Isis::IException::User, and Isis::ViewportBuffer::working().

Referenced by histFromBuffer(), and stretchBuffer().

Statistics Isis::StretchTool::statsFromCube ( Cube cube,
int  band 
)
static

This method will calculate and return the statistics for a given cube and band.

Parameters
cube
band
Returns
Statistics

Definition at line 1077 of file StretchTool.cpp.

References Isis::Statistics::AddData(), Isis::Cube::lineCount(), Isis::Cube::pixelType(), Isis::Cube::read(), Isis::Cube::sampleCount(), and Isis::Brick::SetBasePosition().

Referenced by stretchBand().

void Isis::StretchTool::stretchBandChanged ( int  )
privateslot

The selected band for stretching changed.

Definition at line 1209 of file StretchTool.cpp.

References All, m_stretchBand, m_stretchBandComboBox, m_stretchMaxEdit, m_stretchMinEdit, stretchChanged(), and Isis::toInt().

Referenced by createToolBarWidget(), and updateTool().

Stretch Isis::StretchTool::stretchBuffer ( ViewportBuffer buffer,
QRect  rect 
)
static
void Isis::StretchTool::stretchChipViewport ( Stretch ,
CubeViewport  
)
signal

when a viewport is stretched, send the stretch and the viewport associated with it to any ChipViewport's that might be listening

Referenced by advancedStretchChanged(), changeStretch(), mouseButtonRelease(), and stretchRect().

void Isis::StretchTool::stretchGlobal ( )
slot

Does a global stretch for the active viewport.

Definition at line 734 of file StretchTool.cpp.

References Isis::Tool::cubeViewport().

Referenced by createToolBarWidget(), mouseButtonRelease(), stretchGlobalAllBands(), stretchGlobalAllViewports(), and StretchTool().

void Isis::StretchTool::stretchGlobal ( CubeViewport cvp)
slot

Does a global stretch for the specified viewport.

Definition at line 758 of file StretchTool.cpp.

References stretchChanged(), and Isis::CubeViewport::stretchKnownGlobal().

void Isis::StretchTool::stretchGlobalAllBands ( )
slot

This resets the stretch across all bands.

Definition at line 745 of file StretchTool.cpp.

References Isis::Tool::cubeViewport(), Isis::CubeViewport::forgetStretches(), and stretchGlobal().

Referenced by createToolBarWidget().

void Isis::StretchTool::stretchGlobalAllViewports ( )
slot

Does a global stretch for all the viewports.

Definition at line 768 of file StretchTool.cpp.

References Isis::Tool::cubeViewportList(), and stretchGlobal().

Referenced by createToolBarWidget().

void Isis::StretchTool::stretchRegional ( )
slot

Does a regional stretch for the active viewport.

Definition at line 781 of file StretchTool.cpp.

References Isis::Tool::cubeViewport().

Referenced by createToolBarWidget(), and StretchTool().

void Isis::StretchTool::stretchRegional ( CubeViewport cvp)
slot

Does a regional stretch for the specified viewport.

Definition at line 792 of file StretchTool.cpp.

References stretchRect().

QAction * Isis::StretchTool::toolPadAction ( ToolPad pad)
protectedvirtual

Adds the stretch action to the toolpad.

Parameters
pad
Returns
QAction*

Reimplemented from Isis::Tool.

Definition at line 92 of file StretchTool.cpp.

References Isis::Tool::toolIconDir().

void Isis::StretchTool::updateAdvStretchDialogforAll ( void  )
void Isis::StretchTool::warningSignal ( std::string &  pStr,
const std::string  pExStr 
)
signal

Shows a warning.

This sends a signal (meant for when an exception occurs) to display the error using the warning object

Parameters
pStr
pExStr

Referenced by StretchTool().

Member Data Documentation

AdvancedStretchDialog* Isis::StretchTool::m_advancedStretch
private
Stretch* Isis::StretchTool::m_chipViewportStretch
private
QAction* Isis::StretchTool::m_copyBands
private

Copy band stretch action.

Definition at line 199 of file StretchTool.h.

Referenced by createToolBarWidget(), and updateTool().

QToolButton* Isis::StretchTool::m_copyButton
private

Copy Button.

Definition at line 191 of file StretchTool.h.

Referenced by createToolBarWidget().

QPushButton* Isis::StretchTool::m_flashButton
private

Button to press for global stretch.

Definition at line 194 of file StretchTool.h.

Referenced by createToolBarWidget(), and stretchChanged().

QToolButton* Isis::StretchTool::m_globalButton
private

Global Button.

Definition at line 192 of file StretchTool.h.

Referenced by createToolBarWidget().

Stretch* Isis::StretchTool::m_preGlobalStretches
private

Stretches before global button pressed.

Definition at line 209 of file StretchTool.h.

Referenced by stretchChanged(), StretchTool(), and ~StretchTool().

StretchBand Isis::StretchTool::m_stretchBand
private

Current stretch band.

Definition at line 206 of file StretchTool.h.

Referenced by changeStretch(), createToolBarWidget(), setStretchAcrossBands(), stretchBandChanged(), stretchChanged(), and stretchRect().

QComboBox* Isis::StretchTool::m_stretchBandComboBox
private

Stretch combo box.

Definition at line 201 of file StretchTool.h.

Referenced by createToolBarWidget(), stretchBandChanged(), and updateTool().

QAction* Isis::StretchTool::m_stretchGlobal
private

Global stretch action.

Definition at line 196 of file StretchTool.h.

Referenced by addTo(), and StretchTool().

QAction* Isis::StretchTool::m_stretchManual
private

Manual stretch action.

Definition at line 198 of file StretchTool.h.

QLineEdit* Isis::StretchTool::m_stretchMaxEdit
private
QLineEdit* Isis::StretchTool::m_stretchMinEdit
private
QAction* Isis::StretchTool::m_stretchRegional
private

Regional stretch action.

Definition at line 197 of file StretchTool.h.

Referenced by addTo(), and StretchTool().

QToolButton* Isis::StretchTool::m_stretchRegionalButton
private

Regional Stretch Button.

Definition at line 193 of file StretchTool.h.

Referenced by createToolBarWidget().


The documentation for this class was generated from the following files: