Transformation of discrete values to other values. More...
#include <Recode.h>
Public Types | |
| typedef void | ReturnType |
| typedef Visitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const =0 |
| It call the visit method from the guest object. More... | |
| const std::string & | getFallbackValue () const |
| void | setFallbackValue (const std::string &v) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| Recode () | |
| It initializes a new Recode. More... | |
| ~Recode () | |
| Destructor. More... | |
| Recode (const Recode &rhs) | |
| Copy constructor. More... | |
| virtual Recode * | clone () const |
| It returns a clone of this object. More... | |
| void | setLookupValue (ParameterValue *v) |
| void | add (MapItem *m) |
| std::vector< MapItem * > | getMapItems () const |
Protected Attributes | |
| std::string | m_fallbackValue |
| The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory) More... | |
Private Attributes | |
| ParameterValue * | m_lookupValue |
| Mandatory. More... | |
| std::vector< MapItem * > | m_mapItems |
| Mandatory. More... | |
Transformation of discrete values to other values.
The Symbology encoding specification defines three pre-defined functions for transforming raw data:
It allows to replace a color in the ExternalGraphic, the color specified in the OriginalColor sub-element, by another color as a result of a recode function.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
| te::se::Recode::Recode | ( | ) |
| te::se::Recode::~Recode | ( | ) |
Destructor.
Definition at line 51 of file Recode.cpp.
References te::common::FreeContents(), m_lookupValue, and m_mapItems.
| te::se::Recode::Recode | ( | const Recode & | rhs | ) |
Copy constructor.
| rhs | The other Categorize. |
Definition at line 37 of file Recode.cpp.
References add(), te::se::ParameterValue::clone(), m_lookupValue, and m_mapItems.
|
pure virtualinherited |
It call the visit method from the guest object.
| guest | The guest or visitor. |
| void te::se::Recode::add | ( | MapItem * | m | ) |
Definition at line 68 of file Recode.cpp.
References m_mapItems.
Referenced by te::qt::widgets::ColorMapWidget::buildRecodingMap(), te::qt::widgets::RasterizationWizard::execute(), and Recode().
|
virtual |
It returns a clone of this object.
Implements te::fe::Expression.
Definition at line 57 of file Recode.cpp.
References Recode().
Referenced by te::se::ColorMap::ColorMap().
|
inherited |
Definition at line 38 of file se/Function.cpp.
References te::se::Function::m_fallbackValue.
Referenced by te::se::Categorize::Categorize(), te::se::Interpolate::Interpolate(), and te::se::serialize::Save().
| std::vector< te::se::MapItem * > te::se::Recode::getMapItems | ( | ) | const |
Definition at line 73 of file Recode.cpp.
References m_mapItems.
Referenced by AddSliceItems(), te::map::RasterTransformConfigurer::getRecodedMap(), te::se::serialize::Save(), and te::qt::widgets::ColorMapWidget::updateUi().
|
inherited |
Definition at line 33 of file se/Function.cpp.
References te::se::Function::m_fallbackValue.
Referenced by te::qt::widgets::ColorMapWidget::buildCategorizationMap(), te::qt::widgets::ColorMapWidget::buildInterpolationMap(), te::qt::widgets::ColorMapWidget::buildRecodingMap(), EncodeStyle(), te::qt::widgets::RasterizationWizard::execute(), te::qt::widgets::ClassifierWizard::execute(), te::qt::widgets::SlicingColorMapWidget::getColorMap(), and te::qt::plugins::terralib4::GetRasterGrouping().
| void te::se::Recode::setLookupValue | ( | ParameterValue * | v | ) |
Definition at line 62 of file Recode.cpp.
References m_lookupValue.
Referenced by te::qt::widgets::ColorMapWidget::buildRecodingMap(), and te::qt::widgets::RasterizationWizard::execute().
|
protectedinherited |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory)
Definition at line 88 of file se/Function.h.
Referenced by te::se::Categorize::Categorize(), te::se::Function::getFallbackValue(), te::se::Interpolate::Interpolate(), and te::se::Function::setFallbackValue().
|
private |
Mandatory.
Definition at line 120 of file Recode.h.
Referenced by Recode(), setLookupValue(), and ~Recode().
|
private |