A dialog used to build a ColorMap element. More...
#include <ColorMapWidget.h>
Signals | |
void | applyPushButtonClicked () |
Public Member Functions | |
te::se::ColorMap * | getColorMap () |
std::string | getCurrentBand () |
void | setColorMap (te::se::ColorMap *cm) |
void | setLayers (te::map::AbstractLayerPtr selectedLayer, std::vector< te::map::AbstractLayerPtr > allLayers) |
void | setRaster (te::rst::Raster *r) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
ColorMapWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a ShadedReliefWidget dialog which is a child of parent, with widget flags set to f. More... | |
~ColorMapWidget () | |
Destructor. More... | |
Protected Slots | |
void | onApplyPushButtonClicked () |
void | onBandSelected (QString value) |
void | onImportPushButtonClicked () |
void | onTableWidgetItemDoubleClicked (QTableWidgetItem *item) |
Protected Member Functions | |
void | buildCategorizationMap () |
void | buildInterpolationMap () |
void | buildRecodingMap () |
void | initialize () |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.) More... | |
void | updateUi (bool loadColorBar=false) |
Updates the widget form based on internal fill element. More... | |
Private Attributes | |
te::color::ColorBar * | m_cb |
Terralib color bar objetc. More... | |
te::se::ColorMap * | m_cm |
SE Color Map element. More... | |
te::qt::widgets::ColorCatalogWidget * | m_colorBar |
Widget used to pick a color. More... | |
te::rst::Raster * | m_raster |
TerraLib raster object. More... | |
std::auto_ptr < Ui::ColorMapWidgetForm > | m_ui |
Dialog form. More... | |
A dialog used to build a ColorMap element.
Definition at line 75 of file ColorMapWidget.h.
te::qt::widgets::ColorMapWidget::ColorMapWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a ShadedReliefWidget dialog which is a child of parent, with widget flags set to f.
Definition at line 65 of file ColorMapWidget.cpp.
References initialize(), m_colorBar, m_ui, onApplyPushButtonClicked(), onBandSelected(), onImportPushButtonClicked(), and onTableWidgetItemDoubleClicked().
te::qt::widgets::ColorMapWidget::~ColorMapWidget | ( | ) |
Destructor.
Definition at line 92 of file ColorMapWidget.cpp.
|
signal |
|
protected |
|
protected |
Definition at line 497 of file ColorMapWidget.cpp.
References te::se::Interpolate::add(), te::se::Interpolate::COLOR, te::se::InterpolationPoint::setData(), te::se::Function::setFallbackValue(), te::se::Interpolate::setLookupValue(), te::se::Interpolate::setMethodType(), and te::se::InterpolationPoint::setValue().
|
protected |
Definition at line 624 of file ColorMapWidget.cpp.
te::se::ColorMap * te::qt::widgets::ColorMapWidget::getColorMap | ( | ) |
Definition at line 130 of file ColorMapWidget.cpp.
References te::se::CATEGORIZE_TRANSFORMATION, te::se::INTERPOLATE_TRANSFORMATION, and te::se::RECODE_TRANSFORMATION.
std::string te::qt::widgets::ColorMapWidget::getCurrentBand | ( | ) |
Definition at line 152 of file ColorMapWidget.cpp.
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
Definition at line 162 of file ColorMapWidget.cpp.
References te::se::CATEGORIZE_TRANSFORMATION, and te::se::INTERPOLATE_TRANSFORMATION.
Referenced by ColorMapWidget().
|
protectedslot |
Definition at line 630 of file ColorMapWidget.cpp.
References te::se::CATEGORIZE_TRANSFORMATION, te::map::GroupingByEqualSteps(), and te::se::INTERPOLATE_TRANSFORMATION.
Referenced by ColorMapWidget().
|
protectedslot |
Definition at line 741 of file ColorMapWidget.cpp.
References te::common::Singleton< RasterSummaryManager >::getInstance(), te::rst::SUMMARY_MAX, and te::rst::SUMMARY_MIN.
Referenced by ColorMapWidget().
|
protectedslot |
Definition at line 902 of file ColorMapWidget.cpp.
References getLayerColorMap(), and getLayerRaster().
Referenced by ColorMapWidget().
|
protectedslot |
Definition at line 766 of file ColorMapWidget.cpp.
References te::se::CATEGORIZE_TRANSFORMATION, and te::se::INTERPOLATE_TRANSFORMATION.
Referenced by ColorMapWidget().
void te::qt::widgets::ColorMapWidget::setColorMap | ( | te::se::ColorMap * | cm | ) |
Definition at line 121 of file ColorMapWidget.cpp.
References te::se::ColorMap::clone().
void te::qt::widgets::ColorMapWidget::setLayers | ( | te::map::AbstractLayerPtr | selectedLayer, |
std::vector< te::map::AbstractLayerPtr > | allLayers | ||
) |
Definition at line 889 of file ColorMapWidget.cpp.
References getLayerColorMap().
void te::qt::widgets::ColorMapWidget::setRaster | ( | te::rst::Raster * | r | ) |
Definition at line 99 of file ColorMapWidget.cpp.
References te::rst::Raster::getNumberOfBands().
|
protected |
Updates the widget form based on internal fill element.
Definition at line 174 of file ColorMapWidget.cpp.
References te::color::ColorBar::addColor(), te::se::CATEGORIZE_TRANSFORMATION, te::qt::widgets::colorbar::ColorBar::getColorBar(), te::se::InterpolationPoint::getData(), te::se::GetString(), te::se::InterpolationPoint::getValue(), te::se::INTERPOLATE_TRANSFORMATION, and te::qt::widgets::colorbar::ColorBar::setColorBar().
|
private |
Terralib color bar objetc.
Definition at line 139 of file ColorMapWidget.h.
|
private |
SE Color Map element.
Definition at line 138 of file ColorMapWidget.h.
|
private |
Widget used to pick a color.
Definition at line 137 of file ColorMapWidget.h.
Referenced by ColorMapWidget().
|
private |
TerraLib raster object.
Definition at line 141 of file ColorMapWidget.h.
|
private |