A widget used to adjust a histogram's input data. More...
#include <HistogramDataWidget.h>
Public Member Functions | |
Ui::HistogramDataWidgetForm * | getForm () |
Returns a pointer to the widget's form. More... | |
te::qt::widgets::Histogram * | getHistogram () |
Returns a pointer to the widget's form. More... | |
std::string | getSummaryFunction () |
Returns the name of the chosen summary function. Default is None. More... | |
HistogramDataWidget (te::da::DataSet *dataSet, te::da::DataSetType *dataType, QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructor. More... | |
void | setHistogramProperty (int propId) |
Sets the property to be used in order to generate the histogram. More... | |
~HistogramDataWidget () | |
Destructor. More... | |
Protected Slots | |
void | onPropertyComboBoxIndexChanged (QString text) |
Private Attributes | |
std::auto_ptr< te::da::DataSet > | m_dataSet |
The dataset that will be used to generate the histogram graph. More... | |
std::auto_ptr< te::da::DataSetType > | m_dataType |
The type of the dataset that will be used to generate the histogram graphic. More... | |
std::auto_ptr< Ui::HistogramDataWidgetForm > | m_ui |
The widget's form. More... | |
A widget used to adjust a histogram's input data.
Definition at line 59 of file HistogramDataWidget.h.
te::qt::widgets::HistogramDataWidget::HistogramDataWidget | ( | te::da::DataSet * | dataSet, |
te::da::DataSetType * | dataType, | ||
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
dataSet | The dataset that will be used to generate a histogram. |
dataType | The dataset that will be used to generate a histogram. |
parent | this widget's parent |
f | Window flags used to configure this widget |
Definition at line 82 of file HistogramDataWidget.cpp.
References te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), getForm(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getPropertyName(), te::da::HasLinkedTable(), m_dataSet, m_ui, onPropertyComboBoxIndexChanged(), te::dt::RASTER_TYPE, te::rst::SUMMARY_MAX, te::rst::SUMMARY_MIN, and updateSummary().
te::qt::widgets::HistogramDataWidget::~HistogramDataWidget | ( | ) |
Destructor.
Definition at line 154 of file HistogramDataWidget.cpp.
Ui::HistogramDataWidgetForm * te::qt::widgets::HistogramDataWidget::getForm | ( | ) |
Returns a pointer to the widget's form.
Definition at line 158 of file HistogramDataWidget.cpp.
Referenced by HistogramDataWidget().
te::qt::widgets::Histogram * te::qt::widgets::HistogramDataWidget::getHistogram | ( | ) |
Returns a pointer to the widget's form.
Definition at line 163 of file HistogramDataWidget.cpp.
References te::qt::widgets::createHistogram(), te::dt::DATETIME_TYPE, te::da::GetFirstPropertyPos(), te::dt::RASTER_TYPE, and te::dt::STRING_TYPE.
Referenced by te::qt::widgets::DataSetTableView::createHistogram().
std::string te::qt::widgets::HistogramDataWidget::getSummaryFunction | ( | ) |
Returns the name of the chosen summary function. Default is None.
Definition at line 259 of file HistogramDataWidget.cpp.
Referenced by te::qt::widgets::DataSetTableView::createHistogram().
|
protectedslot |
Definition at line 207 of file HistogramDataWidget.cpp.
References te::dt::DATETIME_TYPE, te::da::GetFirstPropertyPos(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::da::GetPropertyPos(), te::da::HasLinkedTable(), te::dt::RASTER_TYPE, te::dt::STRING_TYPE, te::rst::SUMMARY_MAX, te::rst::SUMMARY_MIN, and updateSummary().
Referenced by HistogramDataWidget().
void te::qt::widgets::HistogramDataWidget::setHistogramProperty | ( | int | propId | ) |
Sets the property to be used in order to generate the histogram.
Definition at line 201 of file HistogramDataWidget.cpp.
Referenced by te::qt::widgets::DataSetTableView::createHistogram().
|
private |
The dataset that will be used to generate the histogram graph.
Definition at line 119 of file HistogramDataWidget.h.
Referenced by HistogramDataWidget().
|
private |
The type of the dataset that will be used to generate the histogram graphic.
Definition at line 120 of file HistogramDataWidget.h.
|
private |
The widget's form.
Definition at line 118 of file HistogramDataWidget.h.
Referenced by HistogramDataWidget().