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 
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;
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
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Cube.h
MdiCubeViewport.h
Isis::BandTool
Definition: BandTool.h:46
Isis::Tool::cubeViewportList
CubeViewportList * cubeViewportList() const
Return the list of cubeviewports.
Definition: Tool.cpp:390
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
Isis::CubeViewport::setComboCount
void setComboCount(int count)
Sets the band bin combo box count.
Definition: CubeViewport.h:382
Isis::CubeViewport::isGray
bool isGray() const
Definition: CubeViewport.h:189
QMenu
Isis::Tool::toolIconDir
QString toolIconDir() const
returns the path to the icon directory.
Definition: Tool.h:113
Isis::BandTool::updateTool
void updateTool()
updates the band tool
Definition: BandTool.cpp:471
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Tool.h
ToolPad.h
QStringList
QComboBox
Isis::CubeViewport::blueBand
int blueBand() const
Definition: CubeViewport.h:209
BandTool.h
Isis::CubeViewport::grayBand
int grayBand() const
Definition: CubeViewport.h:194
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
Isis::CubeViewport::setComboIndex
void setComboIndex(int index)
Sets the band bin combo box index.
Definition: CubeViewport.h:391
Isis::PvlObject::findObject
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
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::ToolPad
Definition: ToolPad.h:14
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
QFrame
Isis::BandTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
Definition: BandTool.cpp:46
Isis::PvlContainer::keywords
int keywords() const
Returns the number of keywords contained in the PvlContainer.
Definition: PvlContainer.h:86
QAction
Isis::CubeViewport::cube
Cube * cube() const
Definition: CubeViewport.h:338
Isis::CubeViewport::redBand
int redBand() const
Definition: CubeViewport.h:199
Isis::Tool::cubeViewport
MdiCubeViewport * cubeViewport() const
Return the current cubeviewport.
Definition: Tool.h:197
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QSpinBox
Isis::CubeViewport::greenBand
int greenBand() const
Definition: CubeViewport.h:204