This class is used to define a component for viewing overlaid layers. More...
#include <RasterHistogramWidget.h>
Signals | |
| void | maxValueSelected (int value, int band) |
| void | maxValueSelected (double value, int band) |
| void | minValueSelected (int value, int band) |
| void | minValueSelected (double value, int band) |
Public Member Functions | |
| void | clear () |
| void | clearMinMaxLines () |
| void | drawHistogram (int band) |
| Ui::RasterHistogramWidgetForm * | getForm () const |
| RasterHistogramWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setChartInputColor (int red, int green, int blue) |
| void | setEnableNavigationTools (bool enable) |
| void | setEnableTools (bool enable) |
| void | setInputRaster (te::rst::Raster *raster) |
| void | setMaximumValueEnabled (bool enable) |
| void | setMinimumValueEnabled (bool enable) |
| void | setOutputRaster (te::rst::Raster *raster) |
| void | updateMaximumValueLabel (QString value) |
| void | updateMaximumValueLine (int value, bool replot=false) |
| void | updateMaximumValueLine (double value, bool replot=false) |
| void | updateMinimumValueLabel (QString value) |
| void | updateMinimumValueLine (int value, bool replot=false) |
| void | updateMinimumValueLine (double value, bool replot=false) |
| ~RasterHistogramWidget () | |
Public Attributes | |
| te::qt::widgets::ChartDisplay * | m_chartDisplay |
| te::qt::widgets::ChartStyle * | m_chartStyle |
| te::qt::widgets::HistogramChart * | m_histogramChartInput |
| te::qt::widgets::HistogramChart * | m_histogramChartOutput |
| te::qt::widgets::Histogram * | m_histogramInput |
| te::qt::widgets::Histogram * | m_histogramOutput |
| QwtPlotMarker * | m_maxValueLine |
| QwtPlotMarker * | m_minValueLine |
Protected Slots | |
| void | onApplyToolButtonClicked () |
| void | onLeftPointSelected (const QPointF &point) |
| void | onRigthPointSelected (const QPointF &point) |
Private Attributes | |
| te::rst::Raster * | m_inputRaster |
| std::unique_ptr< te::rst::Raster > | m_outputRaster |
| std::unique_ptr< Ui::RasterHistogramWidgetForm > | m_ui |
This class is used to define a component for viewing overlaid layers.
Definition at line 63 of file RasterHistogramWidget.h.
| te::qt::widgets::RasterHistogramWidget::RasterHistogramWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 50 of file RasterHistogramWidget.cpp.
References te::qt::widgets::ChartDisplay::adjustDisplay(), te::qt::widgets::HistogramChart::attach(), te::qt::widgets::ChartDisplay::enableTools(), m_chartDisplay, m_chartStyle, m_histogramChartInput, m_histogramChartOutput, m_histogramInput, m_histogramOutput, m_inputRaster, m_maxValueLine, m_minValueLine, m_ui, onApplyToolButtonClicked(), onLeftPointSelected(), onRigthPointSelected(), te::qt::widgets::ChartStyle::setAxisX(), te::qt::widgets::ChartStyle::setAxisY(), te::qt::widgets::ChartStyle::setGridChecked(), te::qt::widgets::ChartStyle::setTitle(), and ~RasterHistogramWidget().
|
default |
Referenced by RasterHistogramWidget().
| void te::qt::widgets::RasterHistogramWidget::clear | ( | ) |
Definition at line 340 of file RasterHistogramWidget.cpp.
References te::qt::widgets::HistogramChart::attach(), clearMinMaxLines(), m_chartDisplay, m_histogramChartInput, m_histogramChartOutput, m_histogramInput, m_histogramOutput, m_inputRaster, and m_outputRaster.
Referenced by te::qt::widgets::RasterSymbolizerWidget::onResetToolButtonClicked(), and te::qt::widgets::RasterSymbolizerWidget::setLayer().
| void te::qt::widgets::RasterHistogramWidget::clearMinMaxLines | ( | ) |
Definition at line 331 of file RasterHistogramWidget.cpp.
References m_maxValueLine, and m_minValueLine.
Referenced by clear().
| void te::qt::widgets::RasterHistogramWidget::drawHistogram | ( | int | band | ) |
Definition at line 156 of file RasterHistogramWidget.cpp.
References te::qt::widgets::HistogramChart::attach(), te::common::Singleton< RasterSummaryManager >::getInstance(), te::qt::widgets::Histogram::insert(), m_chartDisplay, m_histogramChartInput, m_histogramChartOutput, m_histogramInput, m_histogramOutput, m_inputRaster, m_outputRaster, m_ui, te::qt::widgets::HistogramChart::setData(), te::qt::widgets::Histogram::setValues(), and te::rst::SUMMARY_R_HISTOGRAM.
Referenced by onApplyToolButtonClicked(), and te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked().
| Ui::RasterHistogramWidgetForm * te::qt::widgets::RasterHistogramWidget::getForm | ( | ) | const |
Definition at line 110 of file RasterHistogramWidget.cpp.
References m_ui.
Referenced by onRigthPointSelected().
|
signal |
Referenced by onLeftPointSelected().
|
signal |
|
protectedslot |
Definition at line 370 of file RasterHistogramWidget.cpp.
References drawHistogram(), and m_ui.
Referenced by RasterHistogramWidget().
|
protectedslot |
Definition at line 377 of file RasterHistogramWidget.cpp.
References m_ui, and minValueSelected().
Referenced by RasterHistogramWidget().
|
protectedslot |
Definition at line 384 of file RasterHistogramWidget.cpp.
References m_ui, and maxValueSelected().
Referenced by RasterHistogramWidget().
Definition at line 115 of file RasterHistogramWidget.cpp.
References m_histogramChartInput.
| void te::qt::widgets::RasterHistogramWidget::setEnableNavigationTools | ( | bool | enable | ) |
Definition at line 125 of file RasterHistogramWidget.cpp.
References te::qt::widgets::ChartDisplay::enableMagnifier(), te::qt::widgets::ChartDisplay::enableMultiSelection(), te::qt::widgets::ChartDisplay::enablePan(), and m_chartDisplay.
| void te::qt::widgets::RasterHistogramWidget::setEnableTools | ( | bool | enable | ) |
Definition at line 120 of file RasterHistogramWidget.cpp.
References te::qt::widgets::ChartDisplay::enableTools(), and m_chartDisplay.
| void te::qt::widgets::RasterHistogramWidget::setInputRaster | ( | te::rst::Raster * | raster | ) |
Definition at line 132 of file RasterHistogramWidget.cpp.
References te::rst::Raster::getNumberOfBands(), m_inputRaster, and m_ui.
Referenced by te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked().
| void te::qt::widgets::RasterHistogramWidget::setMaximumValueEnabled | ( | bool | enable | ) |
Definition at line 268 of file RasterHistogramWidget.cpp.
References m_chartDisplay, and m_maxValueLine.
| void te::qt::widgets::RasterHistogramWidget::setMinimumValueEnabled | ( | bool | enable | ) |
Definition at line 205 of file RasterHistogramWidget.cpp.
References m_chartDisplay, and m_minValueLine.
| void te::qt::widgets::RasterHistogramWidget::setOutputRaster | ( | te::rst::Raster * | raster | ) |
Definition at line 151 of file RasterHistogramWidget.cpp.
References m_outputRaster.
| void te::qt::widgets::RasterHistogramWidget::updateMaximumValueLabel | ( | QString | value | ) |
Definition at line 325 of file RasterHistogramWidget.cpp.
References m_maxValueLine.
Referenced by te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked().
| void te::qt::widgets::RasterHistogramWidget::updateMaximumValueLine | ( | int | value, |
| bool | replot = false |
||
| ) |
Definition at line 279 of file RasterHistogramWidget.cpp.
References te::map::DashDotLine, m_chartDisplay, and m_maxValueLine.
Referenced by te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), and te::qt::widgets::RasterSymbolizerWidget::onMaxValueSelected().
| void te::qt::widgets::RasterHistogramWidget::updateMaximumValueLine | ( | double | value, |
| bool | replot = false |
||
| ) |
Definition at line 302 of file RasterHistogramWidget.cpp.
References te::map::DashDotDotLine, m_chartDisplay, and m_maxValueLine.
| void te::qt::widgets::RasterHistogramWidget::updateMinimumValueLabel | ( | QString | value | ) |
Definition at line 262 of file RasterHistogramWidget.cpp.
References m_minValueLine.
Referenced by te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked().
| void te::qt::widgets::RasterHistogramWidget::updateMinimumValueLine | ( | int | value, |
| bool | replot = false |
||
| ) |
Definition at line 216 of file RasterHistogramWidget.cpp.
References te::map::DashDotLine, m_chartDisplay, and m_minValueLine.
Referenced by te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), and te::qt::widgets::RasterSymbolizerWidget::onMinValueSelected().
| void te::qt::widgets::RasterHistogramWidget::updateMinimumValueLine | ( | double | value, |
| bool | replot = false |
||
| ) |
Definition at line 239 of file RasterHistogramWidget.cpp.
References te::map::DashDotDotLine, m_chartDisplay, and m_minValueLine.
| te::qt::widgets::ChartDisplay* te::qt::widgets::RasterHistogramWidget::m_chartDisplay |
Definition at line 135 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), RasterHistogramWidget(), te::qt::widgets::RasterSymbolizerWidget::RasterSymbolizerWidget(), setEnableNavigationTools(), setEnableTools(), setMaximumValueEnabled(), setMinimumValueEnabled(), updateMaximumValueLine(), and updateMinimumValueLine().
| te::qt::widgets::ChartStyle* te::qt::widgets::RasterHistogramWidget::m_chartStyle |
Definition at line 134 of file RasterHistogramWidget.h.
Referenced by RasterHistogramWidget(), and te::qt::widgets::RasterSymbolizerWidget::RasterSymbolizerWidget().
| te::qt::widgets::HistogramChart* te::qt::widgets::RasterHistogramWidget::m_histogramChartInput |
Definition at line 138 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), RasterHistogramWidget(), and setChartInputColor().
| te::qt::widgets::HistogramChart* te::qt::widgets::RasterHistogramWidget::m_histogramChartOutput |
Definition at line 141 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), and RasterHistogramWidget().
| te::qt::widgets::Histogram* te::qt::widgets::RasterHistogramWidget::m_histogramInput |
Definition at line 137 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), and RasterHistogramWidget().
| te::qt::widgets::Histogram* te::qt::widgets::RasterHistogramWidget::m_histogramOutput |
Definition at line 140 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), and RasterHistogramWidget().
|
private |
Definition at line 129 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), RasterHistogramWidget(), and setInputRaster().
| QwtPlotMarker* te::qt::widgets::RasterHistogramWidget::m_maxValueLine |
Definition at line 144 of file RasterHistogramWidget.h.
Referenced by clearMinMaxLines(), RasterHistogramWidget(), setMaximumValueEnabled(), updateMaximumValueLabel(), and updateMaximumValueLine().
| QwtPlotMarker* te::qt::widgets::RasterHistogramWidget::m_minValueLine |
Definition at line 143 of file RasterHistogramWidget.h.
Referenced by clearMinMaxLines(), RasterHistogramWidget(), setMinimumValueEnabled(), updateMinimumValueLabel(), and updateMinimumValueLine().
|
private |
Definition at line 130 of file RasterHistogramWidget.h.
Referenced by clear(), drawHistogram(), and setOutputRaster().
|
private |
Definition at line 127 of file RasterHistogramWidget.h.
Referenced by drawHistogram(), getForm(), onApplyToolButtonClicked(), onLeftPointSelected(), onRigthPointSelected(), RasterHistogramWidget(), and setInputRaster().