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...
 
std::string getSummaryFunction ()
 Returns the name of the chosen summary function. Default is None. More...
 
 HistogramDataWidget (te::map::AbstractLayerPtr layer, 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)
 
void onReadAllCheckBoxStateChanged (int state)
 

Private Attributes

te::map::AbstractLayerPtr m_layer
 The layer that will be used to generate the histogram chart. More...
 
std::unique_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 58 of file HistogramDataWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::HistogramDataWidget::HistogramDataWidget ( te::map::AbstractLayerPtr  layer,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
layerThe layer that will be used to generate a histogram.
parentthis widget's parent
fWindow flags used to configure this widget
te::qt::widgets::HistogramDataWidget::~HistogramDataWidget ( )

Destructor.

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.
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.
std::string te::qt::widgets::HistogramDataWidget::getSummaryFunction ( )

Returns the name of the chosen summary function. Default is None.

Returns
The name of the chosen summary function.
void te::qt::widgets::HistogramDataWidget::onPropertyComboBoxIndexChanged ( QString  text)
protectedslot
void te::qt::widgets::HistogramDataWidget::onReadAllCheckBoxStateChanged ( int  state)
protectedslot
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.

Member Data Documentation

te::map::AbstractLayerPtr te::qt::widgets::HistogramDataWidget::m_layer
private

The layer that will be used to generate the histogram chart.

Definition at line 119 of file HistogramDataWidget.h.

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

The widget's form.

Definition at line 118 of file HistogramDataWidget.h.


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