All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::HistogramDataWidget Class Reference

A widget used to adjust a histogram's input data. More...

#include <HistogramDataWidget.h>

Inheritance diagram for te::qt::widgets::HistogramDataWidget:

Public Member Functions

Ui::HistogramDataWidgetForm * getForm ()
 Returns a pointer to the widget's form. More...
 
te::qt::widgets::HistogramgetHistogram ()
 Returns a pointer to the widget's form. 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::DataSetm_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...
 

Detailed Description

A widget used to adjust a histogram's input data.

Definition at line 59 of file HistogramDataWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::HistogramDataWidget::HistogramDataWidget ( te::da::DataSet dataSet,
te::da::DataSetType dataType,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
dataSetThe dataset that will be used to generate a histogram.
dataTypeThe dataset that will be used to generate a histogram.
parentthis widget's parent
fWindow 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 152 of file HistogramDataWidget.cpp.

Member Function Documentation

Ui::HistogramDataWidgetForm * te::qt::widgets::HistogramDataWidget::getForm ( )

Returns a pointer to the widget's form.

Returns
A HistogramDataWidgetForm type pointer to the widget's form.
Note
The caller will not take ownership of the returned pointer.

Definition at line 156 of file HistogramDataWidget.cpp.

Referenced by HistogramDataWidget().

te::qt::widgets::Histogram * te::qt::widgets::HistogramDataWidget::getHistogram ( )

Returns a pointer to the widget's form.

Returns
A HistogramDataWidgetForm type pointer to the widget's form.
Note
The caller will take ownership of the returned pointer.

Definition at line 161 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().

void te::qt::widgets::HistogramDataWidget::setHistogramProperty ( int  propId)

Sets the property to be used in order to generate the histogram.

Note
This function is intented to prevent the user from selecting a property through this widget in special cases, if that is not the intended behaviour, do not call this function.

Definition at line 199 of file HistogramDataWidget.cpp.

Referenced by te::qt::widgets::DataSetTableView::createHistogram().

Member Data Documentation

std::auto_ptr<te::da::DataSet> te::qt::widgets::HistogramDataWidget::m_dataSet
private

The dataset that will be used to generate the histogram graph.

Definition at line 112 of file HistogramDataWidget.h.

Referenced by HistogramDataWidget().

std::auto_ptr<te::da::DataSetType> te::qt::widgets::HistogramDataWidget::m_dataType
private

The type of the dataset that will be used to generate the histogram graphic.

Definition at line 113 of file HistogramDataWidget.h.

std::auto_ptr<Ui::HistogramDataWidgetForm> te::qt::widgets::HistogramDataWidget::m_ui
private

The widget's form.

Definition at line 111 of file HistogramDataWidget.h.

Referenced by HistogramDataWidget().


The documentation for this class was generated from the following files: