Isis 3 Programmer Reference
BandTool.h
1 #ifndef BandTool_h
2 #define BandTool_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "Tool.h"
13 
14 // FIXME: remove this include
15 #include "Pvl.h"
16 
17 class QAction;
18 class QComboBox;
19 class QHBoxLayout;
20 class QLabel;
21 class QRadioButton;
22 class QSpinBox;
23 class QStackedWidget;
24 
25 namespace Isis {
26  class Cube;
27  class ToolPad;
28 
46  class BandTool : public Tool {
47  Q_OBJECT
48 
49  public:
50  BandTool(QWidget *parent);
51 
58  QString menuName() const {
59  return "&View";
60  };
61  protected:
63  QWidget *createToolBarWidget(QStackedWidget *active);
64  void updateTool();
65 
66  private slots:
67  void changeView();
68  void setList();
69  void setBandBin(Cube *cube);
70  void setDisplay();
71  void copyLinkedViewports();
72  void copyAllViewports();
73 
74  private:
75  QRadioButton *p_rgbButton;
76  QRadioButton *p_blackwhiteButton;
81  QLabel *p_grayDisplay;
82  QLabel *p_redDisplay;
83  QLabel *p_greenDisplay;
84  QLabel *p_blueDisplay;
86  QStackedWidget *p_stack;
87  QStackedWidget *p_stack2;
88  CubeViewport *p_bandBinViewport;
89 
90  int p_bands;
93  };
94 };
95 
96 #endif
Isis::BandTool::p_rgbButton
QRadioButton * p_rgbButton
RGB radio button.
Definition: BandTool.h:75
Isis::BandTool::p_blueDisplay
QLabel * p_blueDisplay
blue display
Definition: BandTool.h:84
QWidget
Isis::BandTool
Definition: BandTool.h:46
Isis::BandTool::p_stack2
QStackedWidget * p_stack2
Stacked widget for displays and combo box.
Definition: BandTool.h:87
Isis::BandTool::p_lineEditValueList
QStringList p_lineEditValueList
Value list.
Definition: BandTool.h:92
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
Isis::BandTool::setBandBin
void setBandBin(Cube *cube)
This method fills the p_comboBox with the keywords from the band bin group of the currently selected ...
Definition: BandTool.cpp:263
Isis::BandTool::p_graySpin
QSpinBox * p_graySpin
Gray spin box.
Definition: BandTool.h:77
Isis::BandTool::p_stack
QStackedWidget * p_stack
Stacked widget for spin boxes.
Definition: BandTool.h:86
Isis::BandTool::updateTool
void updateTool()
updates the band tool
Definition: BandTool.cpp:471
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::BandTool::p_redSpin
QSpinBox * p_redSpin
Red spin box.
Definition: BandTool.h:78
Isis::BandTool::p_bluSpin
QSpinBox * p_bluSpin
Blue spin box.
Definition: BandTool.h:80
Isis::BandTool::setList
void setList()
This method sets the p_lineEditValueList to the proper values according to what the user has selected...
Definition: BandTool.cpp:218
QStringList
QComboBox
Isis::BandTool::p_redDisplay
QLabel * p_redDisplay
red display
Definition: BandTool.h:82
Isis::BandTool::p_bands
int p_bands
Number of possible bands.
Definition: BandTool.h:90
Isis::BandTool::changeView
void changeView()
This method is connected to the qspinboxes.
Definition: BandTool.cpp:321
Isis::BandTool::setDisplay
void setDisplay()
This method updates the values displayed in the gray boxes.
Definition: BandTool.cpp:353
Isis::BandTool::p_grnSpin
QSpinBox * p_grnSpin
Green spin box.
Definition: BandTool.h:79
Isis::BandTool::p_pvl
Pvl p_pvl
pvl
Definition: BandTool.h:91
Isis::BandTool::BandTool
BandTool(QWidget *parent)
BandTool constructor.
Definition: BandTool.cpp:35
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::CubeViewport
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:122
Isis::BandTool::copyLinkedViewports
void copyLinkedViewports()
This method copies the selected bands to all linked viewports.
Definition: BandTool.cpp:400
Isis::ToolPad
Definition: ToolPad.h:14
Isis::BandTool::p_blackwhiteButton
QRadioButton * p_blackwhiteButton
Black and White radio button.
Definition: BandTool.h:76
Isis::BandTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *active)
Definition: BandTool.cpp:65
Isis::BandTool::menuName
QString menuName() const
returns the name of the menu.
Definition: BandTool.h:58
Isis::BandTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
Definition: BandTool.cpp:46
Isis::BandTool::copyAllViewports
void copyAllViewports()
This methods copies the selected bands to all viewports.
Definition: BandTool.cpp:437
Isis::BandTool::p_grayDisplay
QLabel * p_grayDisplay
gray display
Definition: BandTool.h:81
Isis::BandTool::p_comboBox
QComboBox * p_comboBox
display selection combo box
Definition: BandTool.h:85
QAction
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QSpinBox
Isis::BandTool::p_greenDisplay
QLabel * p_greenDisplay
green display
Definition: BandTool.h:83