Isis 3 Programmer Reference
HistogramTool.h
1
#ifndef HistogramTool_h
2
#define HistogramTool_h
3
4
#include "AbstractPlotTool.h"
5
6
class
QAction
;
7
class
QWidget
;
8
9
10
namespace
Isis
{
11
class
Brick;
12
class
CubePlotCurve;
13
class
HistogramItem;
14
class
HistogramToolWindow;
15
class
MdiCubeViewport;
16
40
class
HistogramTool
:
public
AbstractPlotTool
{
41
Q_OBJECT
42
43
public
:
44
HistogramTool
(
QWidget
*parent);
45
46
protected
:
47
QWidget
*
createToolBarWidget
(QStackedWidget *parent);
48
void
detachCurves
();
49
PlotWindow
*
createWindow
();
50
void
enableRubberBandTool
();
51
QAction
*
toolPadAction
(
ToolPad
*pad);
52
void
updateTool
();
53
54
protected
slots:
55
void
rubberBandComplete
();
56
57
public
slots:
58
void
refreshPlot
();
59
60
private
:
61
void
validatePlotCurves
();
62
63
HistogramToolWindow *
m_histToolWindow
;
64
66
QPointer<HistogramItem>
m_frequencyItem
;
68
QPointer<CubePlotCurve>
m_percentageCurve
;
70
QAction
*
m_action
;
72
QPointer<RubberBandComboBox>
m_rubberBandCombo
;
73
};
74
};
75
76
#endif
Isis::HistogramTool::HistogramTool
HistogramTool(QWidget *parent)
Constructor creates a new HistogramTool object.
Definition:
HistogramTool.cpp:31
QWidget
Isis::HistogramTool::m_histToolWindow
HistogramToolWindow * m_histToolWindow
Plot Tool Window Widget.
Definition:
HistogramTool.h:63
Isis::HistogramTool::m_action
QAction * m_action
This is the action that activates this tool.
Definition:
HistogramTool.h:70
Isis::HistogramTool::validatePlotCurves
void validatePlotCurves()
This method sets up the names, line style, and color of the all the plot items that will be used in t...
Definition:
HistogramTool.cpp:437
Isis::HistogramTool::m_rubberBandCombo
QPointer< RubberBandComboBox > m_rubberBandCombo
This combo box is for various rubber band selection types.
Definition:
HistogramTool.h:72
Isis::HistogramTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
This method adds the histogram tool to the tool pad.
Definition:
HistogramTool.cpp:60
Isis::HistogramTool::updateTool
void updateTool()
This method updates the histogram tool.
Definition:
HistogramTool.cpp:118
Isis::HistogramTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
This method creates the widgets for the tool bar.
Definition:
HistogramTool.cpp:82
Isis::HistogramTool::rubberBandComplete
void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
Definition:
HistogramTool.cpp:141
Isis::HistogramTool::m_percentageCurve
QPointer< CubePlotCurve > m_percentageCurve
This plot curve indicates the data percentage over the histogram.
Definition:
HistogramTool.h:68
Isis::HistogramTool::createWindow
PlotWindow * createWindow()
This method creates the default histogram plot window.
Definition:
HistogramTool.cpp:127
Isis::HistogramTool::detachCurves
void detachCurves()
Forget the frequency histogram item and the percentage curve.
Definition:
HistogramTool.cpp:108
Isis::AbstractPlotTool
Parent class for plotting tools which provides common functionality.
Definition:
AbstractPlotTool.h:43
Isis::ToolPad
Definition:
ToolPad.h:14
Isis::HistogramTool
Tool for histograms.
Definition:
HistogramTool.h:40
Isis::HistogramTool::m_frequencyItem
QPointer< HistogramItem > m_frequencyItem
This is the qwt plot item which draws the histogram frequency bars.
Definition:
HistogramTool.h:66
Isis::HistogramTool::refreshPlot
void refreshPlot()
This method plots the selected data in a histogram window.
Definition:
HistogramTool.cpp:167
Isis::PlotWindow
Definition:
PlotWindow.h:88
Isis::HistogramTool::enableRubberBandTool
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed.
Definition:
HistogramTool.cpp:45
QAction
Isis
This is free and unencumbered software released into the public domain.
Definition:
Apollo.h:16
src
qisis
objs
HistogramTool
HistogramTool.h