#include <histogramdatasource.h>
This being any object that can produce data that can generate Histogram's.
This is an interface of which a histogram data source can derive. The HistogramDlg constructor takes a set of these and adds the set to it's menubar under datasources. The extending class should override the method getHistName, which returns the name that would be displayed in the menubar, and the method getHistSet, which will return a HistogramSet(RGB).
NOTE: It was intended to have a signal based method for alerting HistogramDlg when it would need to reload itself( datasets, display ), i.e. when the dataset changes in the WholeView after it's resized. This wasn't possible due to the nature of the extending classes being QObjects themselves since this would have to be a QObject in order to produce signals. This is why this method has a HistogramDlg* member variable and the setHistogramDlg method. When a HistogramDataSource is passed in the set of the HistogramDlg, it will be set with a reference to the HistogramDlg. That way it can use HistogramDlg::reloadHistSet().
LAST MODIFIED: Oct 9, 2002 Dan Mingus
Definition at line 45 of file histogramdatasource.h.
Public Member Functions | |
HistogramDataSource () | |
Does nothing but set the HistogramDlg* to NULL. | |
virtual char * | getHistName () const =0 |
virtual HistogramSet | getHistSet () const =0 |
virtual void | setHistogramDlg (HistogramDlg *hdlg) |
Protected Attributes | |
HistogramDlg * | mHistDlg |
HistogramDataSource::HistogramDataSource | ( | ) | [inline] |
Does nothing but set the HistogramDlg* to NULL.
Definition at line 53 of file histogramdatasource.h.
virtual char* HistogramDataSource::getHistName | ( | ) | const [pure virtual] |
virtual HistogramSet HistogramDataSource::getHistSet | ( | ) | const [pure virtual] |
Implemented in View.
virtual void HistogramDataSource::setHistogramDlg | ( | HistogramDlg * | hdlg | ) | [inline, virtual] |
Definition at line 59 of file histogramdatasource.h.
References mHistDlg.
Referenced by HistogramDlg::addHDS().
HistogramDlg* HistogramDataSource::mHistDlg [protected] |
Definition at line 47 of file histogramdatasource.h.
Referenced by View::paintEvent(), and setHistogramDlg().
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |