Isis 3 Developer Reference
HistogramPlotWindow.h
Go to the documentation of this file.
1 #ifndef HistogramPlotWindow_h
2 #define HistogramPlotWindow_h
3 
4 #include "PlotWindow.h"
5 
6 class QDockWidget;
7 
8 namespace Isis {
9  class HistogramItem;
10 
17  Q_OBJECT
18 
19  public:
20  HistogramPlotWindow(QString title, QWidget *parent);
21  using PlotWindow::add;
22  void add(HistogramItem *);
23 
24 // void setViewport(CubeViewport *cvp);
25  int getNumItems() {
26  return p_histItems.size();
27  }
28 
29  HistogramItem *getHistItem(int index) {
30  return p_histItems[index];
31  }
32 
34  return p_dock;
35  }
36 
37  public slots:
38 
39 
40  private:
41 // CubeViewport *p_cvp; //!< The current viewport
42  QList<HistogramItem *> p_histItems;
43  QDockWidget *p_dock;
44  };
45 };
46 
47 #endif
HistogramPlotWindow(QString title, QWidget *parent)
Constructor, creates a new HistogramPlotWindow.
Definition: HistogramPlotWindow.cpp:17
void add(HistogramItem *)
Add a HistogramItem to the plot.
Definition: HistogramPlotWindow.cpp:60
Definition: PlotWindow.h:88
int getNumItems()
Definition: HistogramPlotWindow.h:25
This is the (qwt) plot item for a histogram.
Definition: HistogramItem.h:24
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QDockWidget * getDockWidget()
Definition: HistogramPlotWindow.h:33
Definition: HistogramPlotWindow.h:16
virtual void add(CubePlotCurve *pc)
This method adds the curves to the plot.
Definition: PlotWindow.cpp:436
HistogramItem * getHistItem(int index)
Definition: HistogramPlotWindow.h:29