USGS

Isis 3.0 Object Programmers' Reference

Home

Qisis::BandTool Class Reference

Inheritance diagram for Qisis::BandTool:

Inheritance graph
[legend]
Collaboration diagram for Qisis::BandTool:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 13 of file BandTool.h.

Public Member Functions

 BandTool (QWidget *parent)
 BandTool constructor.

Protected Member Functions

QString menuName () const
 returns the name of the menu.
QAction * toolPadAction (ToolPad *pad)
QWidgetcreateToolBarWidget (QStackedWidget *active)
void updateTool ()
 updates the band tool

Private Slots

void changeView ()
 This method is connected to the qspinboxes.
void setList ()
 This method sets the p_lineEditValueList to the proper values according to what the user has selected in the p_comboBox.
void setBandBin (Isis::Pvl &pvl)
 This method fills the p_comboBox with the keywords from the band bin group of the currently selected cube.
void setDisplay ()
 This method updates the values displayed in the gray boxes.
void copyLinkedViewports ()
 This method copies the selected bands to all linked viewports.
void copyAllViewports ()
 This methods copies the selected bands to all viewports.

Private Attributes

QRadioButton * p_rgbButton
 RGB radio button.
QRadioButton * p_blackwhiteButton
 Black and White radio button.
QSpinBox * p_graySpin
 Gray spin box.
QSpinBox * p_redSpin
 Red spin box.
QSpinBox * p_grnSpin
 Green spin box.
QSpinBox * p_bluSpin
 Blue spin box.
QLabel * p_grayDisplay
 gray display
QLabel * p_redDisplay
 red display
QLabel * p_greenDisplay
 green display
QLabel * p_blueDisplay
 blue display
QComboBox * p_comboBox
 display selection combo box
QStackedWidget * p_stack
 Stacked widget for spin boxes.
QStackedWidget * p_stack2
 Stacked widget for displays and combo box.
int p_bands
 Number of possible bands.
Isis::Pvl p_pvl
 pvl
QStringList p_lineEditValueList
 Value list.


Constructor & Destructor Documentation

Qisis::BandTool::BandTool ( QWidget parent  ) 

BandTool constructor.

Parameters:
parent 

Definition at line 14 of file BandTool.cpp.


Member Function Documentation

void Qisis::BandTool::changeView (  )  [private, slot]

This method is connected to the qspinboxes.

When the user selects a new band, the viewport needs to be updated and the values display next to the p_comboBox also need to be updated.

Definition at line 290 of file BandTool.cpp.

References Qisis::CubeViewport::blueBand(), Qisis::CubeViewport::grayBand(), Qisis::CubeViewport::greenBand(), Qisis::CubeViewport::isColor(), Qisis::CubeViewport::isGray(), p_bluSpin, p_graySpin, p_grnSpin, p_redSpin, p_rgbButton, p_stack, p_stack2, Qisis::CubeViewport::redBand(), setDisplay(), Qisis::CubeViewport::viewGray(), and Qisis::CubeViewport::viewRGB().

Referenced by updateTool().

void Qisis::BandTool::copyAllViewports (  )  [private, slot]

This methods copies the selected bands to all viewports.

Definition at line 401 of file BandTool.cpp.

References bands, p_bluSpin, p_graySpin, p_grnSpin, p_redSpin, p_rgbButton, and size.

Referenced by createToolBarWidget().

void Qisis::BandTool::copyLinkedViewports (  )  [private, slot]

This method copies the selected bands to all linked viewports.

Definition at line 365 of file BandTool.cpp.

References bands, p_bluSpin, p_graySpin, p_grnSpin, p_redSpin, p_rgbButton, and size.

Referenced by createToolBarWidget().

QWidget * Qisis::BandTool::createToolBarWidget ( QStackedWidget *  active  )  [protected]

Parameters:
active 
Returns:
QWidget*

Definition at line 43 of file BandTool.cpp.

References copyAllViewports(), copyLinkedViewports(), p_blackwhiteButton, p_blueDisplay, p_bluSpin, p_comboBox, p_grayDisplay, p_graySpin, p_greenDisplay, p_grnSpin, p_redDisplay, p_redSpin, p_rgbButton, p_stack, and p_stack2.

QString Qisis::BandTool::menuName (  )  const [inline, protected]

returns the name of the menu.

Returns:
QString

Definition at line 26 of file BandTool.h.

void Qisis::BandTool::setBandBin ( Isis::Pvl pvl  )  [private, slot]

This method fills the p_comboBox with the keywords from the band bin group of the currently selected cube.

If there are values for 'Center', that is choosen as the default.

Parameters:
pvl 

Definition at line 236 of file BandTool.cpp.

References p_bands, p_bluSpin, p_comboBox, p_graySpin, p_grnSpin, p_pvl, p_redSpin, pvl(), and setList().

Referenced by updateTool().

void Qisis::BandTool::setDisplay (  )  [private, slot]

This method updates the values displayed in the gray boxes.

Called from changeView.

Definition at line 322 of file BandTool.cpp.

References p_blueDisplay, p_bluSpin, p_grayDisplay, p_graySpin, p_greenDisplay, p_grnSpin, p_lineEditValueList, p_redDisplay, and p_redSpin.

Referenced by changeView(), and updateTool().

void Qisis::BandTool::setList (  )  [private, slot]

This method sets the p_lineEditValueList to the proper values according to what the user has selected in the p_comboBox.

These are the values shown in the gray boxes.

Definition at line 196 of file BandTool.cpp.

References Isis::PvlObject::FindObject(), p_bands, p_blueDisplay, p_comboBox, p_grayDisplay, p_greenDisplay, p_lineEditValueList, p_pvl, and p_redDisplay.

Referenced by setBandBin(), and updateTool().

QAction * Qisis::BandTool::toolPadAction ( ToolPad pad  )  [protected]

Parameters:
pad 
Returns:
QAction*

Definition at line 24 of file BandTool.cpp.

void Qisis::BandTool::updateTool (  )  [protected]

updates the band tool

Definition at line 434 of file BandTool.cpp.

References Qisis::CubeViewport::blueBand(), changeView(), Qisis::CubeViewport::cube(), Qisis::CubeViewport::grayBand(), Qisis::CubeViewport::greenBand(), Qisis::CubeViewport::isGray(), Isis::Cube::Label(), p_blackwhiteButton, p_bluSpin, p_comboBox, p_graySpin, p_grnSpin, p_redSpin, p_rgbButton, p_stack, p_stack2, Qisis::CubeViewport::redBand(), setBandBin(), setDisplay(), and setList().


Member Data Documentation

int Qisis::BandTool::p_bands [private]

Number of possible bands.

Definition at line 54 of file BandTool.h.

Referenced by setBandBin(), and setList().

QRadioButton* Qisis::BandTool::p_blackwhiteButton [private]

Black and White radio button.

Definition at line 41 of file BandTool.h.

Referenced by createToolBarWidget(), and updateTool().

QLabel* Qisis::BandTool::p_blueDisplay [private]

blue display

Definition at line 49 of file BandTool.h.

Referenced by createToolBarWidget(), setDisplay(), and setList().

QSpinBox* Qisis::BandTool::p_bluSpin [private]

Blue spin box.

Definition at line 45 of file BandTool.h.

Referenced by changeView(), copyAllViewports(), copyLinkedViewports(), createToolBarWidget(), setBandBin(), setDisplay(), and updateTool().

QComboBox* Qisis::BandTool::p_comboBox [private]

display selection combo box

Definition at line 50 of file BandTool.h.

Referenced by createToolBarWidget(), setBandBin(), setList(), and updateTool().

QLabel* Qisis::BandTool::p_grayDisplay [private]

gray display

Definition at line 46 of file BandTool.h.

Referenced by createToolBarWidget(), setDisplay(), and setList().

QSpinBox* Qisis::BandTool::p_graySpin [private]

Gray spin box.

Definition at line 42 of file BandTool.h.

Referenced by changeView(), copyAllViewports(), copyLinkedViewports(), createToolBarWidget(), setBandBin(), setDisplay(), and updateTool().

QLabel* Qisis::BandTool::p_greenDisplay [private]

green display

Definition at line 48 of file BandTool.h.

Referenced by createToolBarWidget(), setDisplay(), and setList().

QSpinBox* Qisis::BandTool::p_grnSpin [private]

Green spin box.

Definition at line 44 of file BandTool.h.

Referenced by changeView(), copyAllViewports(), copyLinkedViewports(), createToolBarWidget(), setBandBin(), setDisplay(), and updateTool().

QStringList Qisis::BandTool::p_lineEditValueList [private]

Value list.

Definition at line 56 of file BandTool.h.

Referenced by setDisplay(), and setList().

Isis::Pvl Qisis::BandTool::p_pvl [private]

pvl

Definition at line 55 of file BandTool.h.

Referenced by setBandBin(), and setList().

QLabel* Qisis::BandTool::p_redDisplay [private]

red display

Definition at line 47 of file BandTool.h.

Referenced by createToolBarWidget(), setDisplay(), and setList().

QSpinBox* Qisis::BandTool::p_redSpin [private]

Red spin box.

Definition at line 43 of file BandTool.h.

Referenced by changeView(), copyAllViewports(), copyLinkedViewports(), createToolBarWidget(), setBandBin(), setDisplay(), and updateTool().

QRadioButton* Qisis::BandTool::p_rgbButton [private]

RGB radio button.

Definition at line 40 of file BandTool.h.

Referenced by changeView(), copyAllViewports(), copyLinkedViewports(), createToolBarWidget(), and updateTool().

QStackedWidget* Qisis::BandTool::p_stack [private]

Stacked widget for spin boxes.

Definition at line 51 of file BandTool.h.

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

QStackedWidget* Qisis::BandTool::p_stack2 [private]

Stacked widget for displays and combo box.

Definition at line 52 of file BandTool.h.

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


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