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
17class QAction;
18class QComboBox;
19class QHBoxLayout;
20class QLabel;
21class QRadioButton;
22class QSpinBox;
23class QStackedWidget;
24
25namespace 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();
72 void copyAllViewports();
73
74 private:
75 QRadioButton *p_rgbButton;
76 QRadioButton *p_blackwhiteButton;
82 QLabel *p_redDisplay;
86 QStackedWidget *p_stack;
87 QStackedWidget *p_stack2;
88 CubeViewport *p_bandBinViewport;
89
93 };
94};
95
96#endif
int p_bands
Number of possible bands.
Definition BandTool.h:90
QSpinBox * p_redSpin
Red spin box.
Definition BandTool.h:78
QLabel * p_redDisplay
red display
Definition BandTool.h:82
QStackedWidget * p_stack2
Stacked widget for displays and combo box.
Definition BandTool.h:87
QLabel * p_greenDisplay
green display
Definition BandTool.h:83
QWidget * createToolBarWidget(QStackedWidget *active)
Definition BandTool.cpp:65
QAction * toolPadAction(ToolPad *pad)
Definition BandTool.cpp:46
void copyAllViewports()
This methods copies the selected bands to all viewports.
Definition BandTool.cpp:437
QLabel * p_blueDisplay
blue display
Definition BandTool.h:84
QStackedWidget * p_stack
Stacked widget for spin boxes.
Definition BandTool.h:86
QSpinBox * p_bluSpin
Blue spin box.
Definition BandTool.h:80
QSpinBox * p_grnSpin
Green spin box.
Definition BandTool.h:79
QSpinBox * p_graySpin
Gray spin box.
Definition BandTool.h:77
void changeView()
This method is connected to the qspinboxes.
Definition BandTool.cpp:321
void setList()
This method sets the p_lineEditValueList to the proper values according to what the user has selected...
Definition BandTool.cpp:218
QRadioButton * p_rgbButton
RGB radio button.
Definition BandTool.h:75
void updateTool()
updates the band tool
Definition BandTool.cpp:471
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
void setDisplay()
This method updates the values displayed in the gray boxes.
Definition BandTool.cpp:353
QString menuName() const
returns the name of the menu.
Definition BandTool.h:58
void copyLinkedViewports()
This method copies the selected bands to all linked viewports.
Definition BandTool.cpp:400
QRadioButton * p_blackwhiteButton
Black and White radio button.
Definition BandTool.h:76
QComboBox * p_comboBox
display selection combo box
Definition BandTool.h:85
BandTool(QWidget *parent)
BandTool constructor.
Definition BandTool.cpp:35
QStringList p_lineEditValueList
Value list.
Definition BandTool.h:92
Pvl p_pvl
pvl
Definition BandTool.h:91
QLabel * p_grayDisplay
gray display
Definition BandTool.h:81
IO Handler for Isis Cubes.
Definition Cube.h:168
Widget to display Isis cubes for qt apps.
Container for cube-like labels.
Definition Pvl.h:119
Base class for the Qisis tools.
Definition Tool.h:67
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16