Isis 3 Programmer Reference
BandTool.h
1 #ifndef BandTool_h
2 #define BandTool_h
3 
4 #include "Tool.h"
5 
6 // FIXME: remove this include
7 #include "Pvl.h"
8 
9 class QAction;
10 class QComboBox;
11 class QHBoxLayout;
12 class QLabel;
13 class QRadioButton;
14 class QSpinBox;
15 class QStackedWidget;
16 
17 namespace Isis {
18  class Cube;
19  class ToolPad;
20 
38  class BandTool : public Tool {
39  Q_OBJECT
40 
41  public:
42  BandTool(QWidget *parent);
43 
50  QString menuName() const {
51  return "&View";
52  };
53  protected:
55  QWidget *createToolBarWidget(QStackedWidget *active);
56  void updateTool();
57 
58  private slots:
59  void changeView();
60  void setList();
61  void setBandBin(Cube *cube);
62  void setDisplay();
63  void copyLinkedViewports();
64  void copyAllViewports();
65 
66  private:
67  QRadioButton *p_rgbButton;
68  QRadioButton *p_blackwhiteButton;
73  QLabel *p_grayDisplay;
74  QLabel *p_redDisplay;
75  QLabel *p_greenDisplay;
76  QLabel *p_blueDisplay;
78  QStackedWidget *p_stack;
79  QStackedWidget *p_stack2;
80  CubeViewport *p_bandBinViewport;
81 
82  int p_bands;
85  };
86 };
87 
88 #endif
BandTool(QWidget *parent)
BandTool constructor.
Definition: BandTool.cpp:27
QStackedWidget * p_stack
Stacked widget for spin boxes.
Definition: BandTool.h:78
void copyAllViewports()
This methods copies the selected bands to all viewports.
Definition: BandTool.cpp:429
QLabel * p_grayDisplay
gray display
Definition: BandTool.h:73
void changeView()
This method is connected to the qspinboxes.
Definition: BandTool.cpp:313
void setList()
This method sets the p_lineEditValueList to the proper values according to what the user has selected...
Definition: BandTool.cpp:210
QLabel * p_greenDisplay
green display
Definition: BandTool.h:75
QWidget * createToolBarWidget(QStackedWidget *active)
Definition: BandTool.cpp:57
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
QComboBox * p_comboBox
display selection combo box
Definition: BandTool.h:77
QSpinBox * p_redSpin
Red spin box.
Definition: BandTool.h:70
QSpinBox * p_bluSpin
Blue spin box.
Definition: BandTool.h:72
Pvl p_pvl
pvl
Definition: BandTool.h:83
void copyLinkedViewports()
This method copies the selected bands to all linked viewports.
Definition: BandTool.cpp:392
QStackedWidget * p_stack2
Stacked widget for displays and combo box.
Definition: BandTool.h:79
void setDisplay()
This method updates the values displayed in the gray boxes.
Definition: BandTool.cpp:345
Container for cube-like labels.
Definition: Pvl.h:135
QRadioButton * p_blackwhiteButton
Black and White radio button.
Definition: BandTool.h:68
QString menuName() const
returns the name of the menu.
Definition: BandTool.h:50
QSpinBox * p_grnSpin
Green spin box.
Definition: BandTool.h:71
QLabel * p_blueDisplay
blue display
Definition: BandTool.h:76
QSpinBox * p_graySpin
Gray spin box.
Definition: BandTool.h:69
void updateTool()
updates the band tool
Definition: BandTool.cpp:463
int p_bands
Number of possible bands.
Definition: BandTool.h:82
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
QStringList p_lineEditValueList
Value list.
Definition: BandTool.h:84
QAction * toolPadAction(ToolPad *pad)
Definition: BandTool.cpp:38
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:255
QLabel * p_redDisplay
red display
Definition: BandTool.h:74
QRadioButton * p_rgbButton
RGB radio button.
Definition: BandTool.h:67
IO Handler for Isis Cubes.
Definition: Cube.h:170