Isis Developer Reference
BandTool.h
Go to the documentation of this file.
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();
71 void copyLinkedViewports();
72 void copyAllViewports();
73
74 private:
75 QRadioButton *p_rgbButton;
76 QRadioButton *p_blackwhiteButton;
77 QSpinBox *p_graySpin;
78 QSpinBox *p_redSpin;
79 QSpinBox *p_grnSpin;
80 QSpinBox *p_bluSpin;
81 QLabel *p_grayDisplay;
82 QLabel *p_redDisplay;
83 QLabel *p_greenDisplay;
84 QLabel *p_blueDisplay;
85 QComboBox *p_comboBox;
86 QStackedWidget *p_stack;
87 QStackedWidget *p_stack2;
88 CubeViewport *p_bandBinViewport;
89
90 int p_bands;
91 Pvl p_pvl;
92 QStringList p_lineEditValueList;
93 };
94};
95
96#endif
Definition BandTool.h:46
QWidget * createToolBarWidget(QStackedWidget *active)
Definition BandTool.cpp:65
QAction * toolPadAction(ToolPad *pad)
Definition BandTool.cpp:46
void updateTool()
updates the band tool
Definition BandTool.cpp:471
QString menuName() const
returns the name of the menu.
Definition BandTool.h:58
BandTool(QWidget *parent)
BandTool constructor.
Definition BandTool.cpp:35
IO Handler for Isis Cubes.
Definition Cube.h:168
Widget to display Isis cubes for qt apps.
Definition CubeViewport.h:122
Container for cube-like labels.
Definition Pvl.h:119
Base class for the Qisis tools.
Definition Tool.h:67
Definition ToolPad.h:14
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16