te::qt::widgets::ColorMapWidget Class Reference

A dialog used to build a ColorMap element. More...

#include <ColorMapWidget.h>

Inheritance diagram for te::qt::widgets::ColorMapWidget:

Signals

void applyPushButtonClicked ()
 

Public Member Functions

te::se::ColorMapgetColorMap ()
 
std::string getCurrentBand ()
 
Ui::ColorMapWidgetForm * getForm ()
 
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 onLoadPushButtonClicked ()
 
void onSavePushButtonClicked ()
 
void onTableWidgetItemDoubleClicked (QTableWidgetItem *item)
 
void onTransformComboBoxCurrentIndexChanged (int index)
 
void onTypeSelected (QString value)
 

Protected Member Functions

void buildCategorizationMap ()
 
void buildInterpolationMap ()
 
void buildRecodingMap ()
 
std::vector< std::string > getRecodeValues ()
 
std::vector< std::string > getValues ()
 
void initialize ()
 Internal method to initialize the widget (e.g.: color, combos, icons, etc.) More...
 
void saveLegend (const std::string &path)
 
void updateTableHeader (te::se::ColorMapTransformationType type)
 
void updateUi (bool loadColorBar=false)
 Updates the widget form based on internal fill element. More...
 

Private Attributes

te::color::ColorBarm_cb
 Terralib color bar objetc. More...
 
te::se::ColorMapm_cm
 SE Color Map element. More...
 
te::qt::widgets::ColorCatalogWidgetm_colorBar
 Widget used to pick a color. More...
 
te::rst::Rasterm_raster
 TerraLib raster object. More...
 
std::unique_ptr< Ui::ColorMapWidgetForm > m_ui
 Dialog form. More...
 

Detailed Description

A dialog used to build a ColorMap element.

Definition at line 78 of file ColorMapWidget.h.

Constructor & Destructor Documentation

◆ ColorMapWidget()

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.

◆ ~ColorMapWidget()

te::qt::widgets::ColorMapWidget::~ColorMapWidget ( )

Destructor.

Member Function Documentation

◆ applyPushButtonClicked

void te::qt::widgets::ColorMapWidget::applyPushButtonClicked ( )
signal

◆ buildCategorizationMap()

void te::qt::widgets::ColorMapWidget::buildCategorizationMap ( )
protected

◆ buildInterpolationMap()

void te::qt::widgets::ColorMapWidget::buildInterpolationMap ( )
protected

◆ buildRecodingMap()

void te::qt::widgets::ColorMapWidget::buildRecodingMap ( )
protected

◆ getColorMap()

te::se::ColorMap* te::qt::widgets::ColorMapWidget::getColorMap ( )

◆ getCurrentBand()

std::string te::qt::widgets::ColorMapWidget::getCurrentBand ( )

◆ getForm()

Ui::ColorMapWidgetForm* te::qt::widgets::ColorMapWidget::getForm ( )

◆ getRecodeValues()

std::vector<std::string> te::qt::widgets::ColorMapWidget::getRecodeValues ( )
protected

◆ getValues()

std::vector<std::string> te::qt::widgets::ColorMapWidget::getValues ( )
protected

◆ initialize()

void te::qt::widgets::ColorMapWidget::initialize ( )
protected

Internal method to initialize the widget (e.g.: color, combos, icons, etc.)

◆ onApplyPushButtonClicked

void te::qt::widgets::ColorMapWidget::onApplyPushButtonClicked ( )
protectedslot

◆ onBandSelected

void te::qt::widgets::ColorMapWidget::onBandSelected ( QString  value)
protectedslot

◆ onImportPushButtonClicked

void te::qt::widgets::ColorMapWidget::onImportPushButtonClicked ( )
protectedslot

◆ onLoadPushButtonClicked

void te::qt::widgets::ColorMapWidget::onLoadPushButtonClicked ( )
protectedslot

◆ onSavePushButtonClicked

void te::qt::widgets::ColorMapWidget::onSavePushButtonClicked ( )
protectedslot

◆ onTableWidgetItemDoubleClicked

void te::qt::widgets::ColorMapWidget::onTableWidgetItemDoubleClicked ( QTableWidgetItem *  item)
protectedslot

◆ onTransformComboBoxCurrentIndexChanged

void te::qt::widgets::ColorMapWidget::onTransformComboBoxCurrentIndexChanged ( int  index)
protectedslot

◆ onTypeSelected

void te::qt::widgets::ColorMapWidget::onTypeSelected ( QString  value)
protectedslot

◆ saveLegend()

void te::qt::widgets::ColorMapWidget::saveLegend ( const std::string &  path)
protected

◆ setColorMap()

void te::qt::widgets::ColorMapWidget::setColorMap ( te::se::ColorMap cm)

◆ setLayers()

void te::qt::widgets::ColorMapWidget::setLayers ( te::map::AbstractLayerPtr  selectedLayer,
std::vector< te::map::AbstractLayerPtr allLayers 
)

◆ setRaster()

void te::qt::widgets::ColorMapWidget::setRaster ( te::rst::Raster r)

◆ updateTableHeader()

void te::qt::widgets::ColorMapWidget::updateTableHeader ( te::se::ColorMapTransformationType  type)
protected

◆ updateUi()

void te::qt::widgets::ColorMapWidget::updateUi ( bool  loadColorBar = false)
protected

Updates the widget form based on internal fill element.

Member Data Documentation

◆ m_cb

te::color::ColorBar* te::qt::widgets::ColorMapWidget::m_cb
private

Terralib color bar objetc.

Definition at line 160 of file ColorMapWidget.h.

◆ m_cm

te::se::ColorMap* te::qt::widgets::ColorMapWidget::m_cm
private

SE Color Map element.

Definition at line 159 of file ColorMapWidget.h.

◆ m_colorBar

te::qt::widgets::ColorCatalogWidget* te::qt::widgets::ColorMapWidget::m_colorBar
private

Widget used to pick a color.

Definition at line 158 of file ColorMapWidget.h.

◆ m_raster

te::rst::Raster* te::qt::widgets::ColorMapWidget::m_raster
private

TerraLib raster object.

Definition at line 162 of file ColorMapWidget.h.

◆ m_ui

std::unique_ptr<Ui::ColorMapWidgetForm> te::qt::widgets::ColorMapWidget::m_ui
private

Dialog form.

Definition at line 157 of file ColorMapWidget.h.


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