Isis 3 Developer Reference
BandTool.h
Go to the documentation of this file.
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;
69  QSpinBox *p_graySpin;
70  QSpinBox *p_redSpin;
71  QSpinBox *p_grnSpin;
72  QSpinBox *p_bluSpin;
73  QLabel *p_grayDisplay;
74  QLabel *p_redDisplay;
75  QLabel *p_greenDisplay;
76  QLabel *p_blueDisplay;
77  QComboBox *p_comboBox;
78  QStackedWidget *p_stack;
79  QStackedWidget *p_stack2;
80  CubeViewport *p_bandBinViewport;
81 
82  int p_bands;
83  Pvl p_pvl;
84  QStringList p_lineEditValueList;
85  };
86 };
87 
88 #endif
BandTool(QWidget *parent)
BandTool constructor.
Definition: BandTool.cpp:27
Definition: BandTool.h:38
QWidget * createToolBarWidget(QStackedWidget *active)
Definition: BandTool.cpp:57
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
Container for cube-like labels.
Definition: Pvl.h:135
QString menuName() const
returns the name of the menu.
Definition: BandTool.h:50
void updateTool()
updates the band tool
Definition: BandTool.cpp:463
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
QAction * toolPadAction(ToolPad *pad)
Definition: BandTool.cpp:38
Definition: ToolPad.h:14
IO Handler for Isis Cubes.
Definition: Cube.h:170