The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos, DEMs). More...
#include <RasterSymbolizer.h>
Public Types | |
enum | OverlapBehavior { LATEST_ON_TOP, EARLIEST_ON_TOP, AVERAGE, RANDOM, NO_BEHAVIOR } |
OverlapBehavior tells a system how to behave when multiple raster images in a layer overlap each other, for example with satellite-image scenes. More... | |
typedef R | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
Symbolizer * | clone () const |
It creates a new copy of this object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
RasterSymbolizer () | |
It initializes a new RasterSymbolizer. More... | |
RasterSymbolizer (const RasterSymbolizer &rhs) | |
Copy constructor. More... | |
~RasterSymbolizer () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setGeometry (te::fe::PropertyName *g) |
void | setOpacity (ParameterValue *p) |
void | setGain (ParameterValue *p) |
void | setOffset (ParameterValue *p) |
ParameterValue * | getOpacity () const |
ParameterValue * | getGain () const |
ParameterValue * | getOffset () const |
void | setChannelSelection (ChannelSelection *c) |
te::se::ChannelSelection * | getChannelSelection () const |
void | setOverlapBehavior (OverlapBehavior b) |
OverlapBehavior | getOverlapBehavior () const |
void | setColorMap (ColorMap *c) |
te::se::ColorMap * | getColorMap () const |
void | setContrastEnhancement (ContrastEnhancement *c) |
te::se::ContrastEnhancement * | getContrastEnhancement () const |
void | setShadedRelief (ShadedRelief *s) |
ShadedRelief * | getShadedRelief () const |
void | setImageOutline (ImageOutline *i) |
te::se::ImageOutline * | getImageOutline () const |
const std::string & | getType () const |
It returns the symbolizer type. More... | |
Accessor methods | |
Methods used to get or set properties. | |
void | setName (const std::string &name) |
const std::string & | getName () const |
void | setDescription (Description *d) |
const Description * | getDescription () const |
void | setBaseSymbolizer (te::xl::SimpleLink *baseSymbolizer) |
const te::xl::SimpleLink * | getBaseSymbolizer () const |
void | setVersion (const std::string &version) |
const std::string & | getVersion () const |
void | setUom (const te::common::BaseUnitOfMeasure *uom) |
It sets the unit-of-measure. More... | |
const te::common::BaseUnitOfMeasure * | getUom () const |
Private Attributes | |
ChannelSelection * | m_channelSelection |
It specifies the false-color channel selection for a multi-spectral raster source (such as a multi-band satellite-imagery source). (Optional) More... | |
ColorMap * | m_colorMap |
It defines either the colors of a pallette-type raster source or the mapping of numeric pixel values to colors. (Optional) More... | |
ContrastEnhancement * | m_contrastEnhancement |
It defines contrast enhancement for a channel of a false-color image or for a color image. (Optional) More... | |
ParameterValue * | m_gain |
It defines the gain value used to renderer the main raster pixels, a initial value could be 1.0. (Optional) More... | |
te::fe::PropertyName * | m_geometry |
The interpretation of Geometry is system-dependent, as raster data may be organized differently from feature data, though omitting this element selects the default raster-data source. (Optional) More... | |
ImageOutline * | m_imageOutline |
It specifies how individual source rasters in a multi-raster set (such as a set of satellite-image scenes) should be outlined to make the individual-image locations visible. (Optional) More... | |
ParameterValue * | m_offset |
It defines the offset value used to renderer the main raster pixels, a initial value could be 0.0. (Optional) More... | |
ParameterValue * | m_opacity |
An Opacity of 0.0 can be selected for the main raster to avoid rendering the main-raster pixels, or an opacity can be used for a PolygonSymbolizer Fill to allow the main-raster data be visible through the fill. (Optional) More... | |
OverlapBehavior | m_overlapBehavior |
It tells a system how to behave when multiple raster images in a layer overlap each other, for example with satellite-image scenes. (Optional) More... | |
ShadedRelief * | m_shadedRelief |
It selects the application of relief shading (or "hill shading") to an image for a three-dimensional visual effect. (Optional) More... | |
Static Private Attributes | |
static const std::string | sm_type |
A static data member used in the implementation of getType method. More... | |
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos, DEMs).
A RasterSymbolizer is used to specify the rendering of raster/matrix-coverage data (e.g., satellite images, DEMs).
Geometry-type transformations are also system-dependent and it is assumed that this capability will be little used.
Definition at line 61 of file RasterSymbolizer.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
OverlapBehavior tells a system how to behave when multiple raster images in a layer overlap each other, for example with satellite-image scenes.
Enumerator | |
---|---|
LATEST_ON_TOP |
It refers to the time the scene was captured. |
EARLIEST_ON_TOP |
It refers to the time the scene was captured. |
AVERAGE |
It means to average multiple scenes together. This can produce blurry results if the source images are not perfectly aligned in their geo-referencing. |
RANDOM |
It means to select an image (or piece thereof) randomly and place it on top. |
NO_BEHAVIOR |
Definition at line 74 of file RasterSymbolizer.h.
te::se::RasterSymbolizer::RasterSymbolizer | ( | ) |
It initializes a new RasterSymbolizer.
Definition at line 38 of file RasterSymbolizer.cpp.
te::se::RasterSymbolizer::RasterSymbolizer | ( | const RasterSymbolizer & | rhs | ) |
Copy constructor.
rhs | The other raster symbolizer. |
Definition at line 53 of file RasterSymbolizer.cpp.
References te::se::ImageOutline::clone(), te::se::ShadedRelief::clone(), te::se::ColorMap::clone(), te::se::ChannelSelection::clone(), te::se::ParameterValue::clone(), te::se::ContrastEnhancement::clone(), te::fe::PropertyName::getName(), m_channelSelection, m_colorMap, m_contrastEnhancement, m_gain, m_geometry, m_imageOutline, m_offset, m_opacity, and m_shadedRelief.
te::se::RasterSymbolizer::~RasterSymbolizer | ( | ) |
Destructor.
Definition at line 94 of file RasterSymbolizer.cpp.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
virtual |
It creates a new copy of this object.
Implements te::se::Symbolizer.
Definition at line 171 of file RasterSymbolizer.cpp.
Referenced by te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer(), and te::qt::widgets::RasterSymbolizerDialog::setRasterSymbolizer().
|
inherited |
Definition at line 94 of file Symbolizer.cpp.
Referenced by te::se::serialize::WriteSymbolizerHelper().
|
inline |
|
inline |
Definition at line 135 of file RasterSymbolizer.h.
Referenced by te::wms::WMSLayerItem::fetchMore(), te::qt::widgets::DataSetLayerItem::fetchMore(), getLayerColorMap(), and RasterSymbolizerWriter().
|
inline |
Definition at line 139 of file RasterSymbolizer.h.
Referenced by RasterSymbolizerWriter().
|
inherited |
Definition at line 83 of file Symbolizer.cpp.
Referenced by te::se::serialize::WriteSymbolizerHelper().
|
inline |
Definition at line 121 of file RasterSymbolizer.h.
Referenced by te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer(), and RasterSymbolizerWriter().
|
inline |
Definition at line 147 of file RasterSymbolizer.h.
Referenced by RasterSymbolizerWriter().
|
inherited |
Definition at line 72 of file Symbolizer.cpp.
Referenced by te::layout::LegendChildModel::drawLegend(), te::layout::LegendModel::drawStyleLegend(), and te::se::serialize::WriteSymbolizerHelper().
|
inline |
Definition at line 123 of file RasterSymbolizer.h.
Referenced by te::qt::plugins::terralib4::GetRasterSymbolizer(), te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer(), and RasterSymbolizerWriter().
|
inline |
Definition at line 119 of file RasterSymbolizer.h.
Referenced by te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer(), and RasterSymbolizerWriter().
|
inline |
Definition at line 131 of file RasterSymbolizer.h.
Referenced by RasterSymbolizerWriter().
|
inline |
Definition at line 143 of file RasterSymbolizer.h.
Referenced by RasterSymbolizerWriter().
|
virtual |
It returns the symbolizer type.
Implements te::se::Symbolizer.
Definition at line 166 of file RasterSymbolizer.cpp.
|
inherited |
Definition at line 114 of file Symbolizer.cpp.
|
inherited |
Definition at line 104 of file Symbolizer.cpp.
Referenced by te::se::serialize::WriteSymbolizerHelper().
|
inherited |
Definition at line 88 of file Symbolizer.cpp.
void te::se::RasterSymbolizer::setChannelSelection | ( | ChannelSelection * | c | ) |
Definition at line 131 of file RasterSymbolizer.cpp.
Referenced by te::se::CreateRasterSymbolizer(), and te::qt::plugins::terralib4::GetRasterSymbolizer().
void te::se::RasterSymbolizer::setColorMap | ( | ColorMap * | c | ) |
Definition at line 142 of file RasterSymbolizer.cpp.
Referenced by te::sa::CreateKernelColorMaping(), te::qt::widgets::ClassifierWizard::execute(), te::qt::plugins::terralib4::TL4ConverterWizard::finish(), te::qt::af::LayerExplorer::onApplicationTriggered(), and te::qt::widgets::GroupingDialog::setLayers().
void te::se::RasterSymbolizer::setContrastEnhancement | ( | ContrastEnhancement * | c | ) |
Definition at line 148 of file RasterSymbolizer.cpp.
|
inherited |
Definition at line 77 of file Symbolizer.cpp.
Referenced by te::se::serialize::ReadSymbolizerHelper().
void te::se::RasterSymbolizer::setGain | ( | ParameterValue * | p | ) |
Definition at line 119 of file RasterSymbolizer.cpp.
Referenced by te::se::CreateRasterSymbolizer(), te::qt::plugins::terralib4::GetRasterSymbolizer(), and te::qt::widgets::RasterSymbolizerDialog::getRasterSymbolizer().
void te::se::RasterSymbolizer::setGeometry | ( | te::fe::PropertyName * | g | ) |
Definition at line 107 of file RasterSymbolizer.cpp.
void te::se::RasterSymbolizer::setImageOutline | ( | ImageOutline * | i | ) |
Definition at line 160 of file RasterSymbolizer.cpp.
|
inherited |
Definition at line 67 of file Symbolizer.cpp.
Referenced by te::se::serialize::ReadSymbolizerHelper().
void te::se::RasterSymbolizer::setOffset | ( | ParameterValue * | p | ) |
Definition at line 125 of file RasterSymbolizer.cpp.
Referenced by te::se::CreateRasterSymbolizer(), and te::qt::plugins::terralib4::GetRasterSymbolizer().
void te::se::RasterSymbolizer::setOpacity | ( | ParameterValue * | p | ) |
Definition at line 113 of file RasterSymbolizer.cpp.
Referenced by te::se::CreateRasterSymbolizer(), and te::qt::plugins::terralib4::GetRasterSymbolizer().
void te::se::RasterSymbolizer::setOverlapBehavior | ( | OverlapBehavior | b | ) |
Definition at line 137 of file RasterSymbolizer.cpp.
void te::se::RasterSymbolizer::setShadedRelief | ( | ShadedRelief * | s | ) |
Definition at line 154 of file RasterSymbolizer.cpp.
|
inherited |
It sets the unit-of-measure.
All Symbolizers include an optional gml:uom-attribute as used by GML (this is set inside the abstract SymbolizerType and therefore inherited by all Symbolizers). This applies to all elements included inside a Symbolizer such as stroke-width, size, font-size, Gap, InitialGap, Displacement and PerpendicularOffset. If no uom is set inside of Symbolizer, all units are measured in pixel, the behaviour used by SLD 1.0.0. The following uom definitions are recommended to be used:
Definition at line 109 of file Symbolizer.cpp.
|
inherited |
Definition at line 99 of file Symbolizer.cpp.
Referenced by te::se::serialize::ReadSymbolizerHelper().
|
private |
It specifies the false-color channel selection for a multi-spectral raster source (such as a multi-band satellite-imagery source). (Optional)
Definition at line 162 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
It defines either the colors of a pallette-type raster source or the mapping of numeric pixel values to colors. (Optional)
Definition at line 164 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
It defines contrast enhancement for a channel of a false-color image or for a color image. (Optional)
Definition at line 165 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
It defines the gain value used to renderer the main raster pixels, a initial value could be 1.0. (Optional)
Definition at line 160 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
The interpretation of Geometry is system-dependent, as raster data may be organized differently from feature data, though omitting this element selects the default raster-data source. (Optional)
Definition at line 158 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
It specifies how individual source rasters in a multi-raster set (such as a set of satellite-image scenes) should be outlined to make the individual-image locations visible. (Optional)
Definition at line 167 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
It defines the offset value used to renderer the main raster pixels, a initial value could be 0.0. (Optional)
Definition at line 161 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
An Opacity of 0.0 can be selected for the main raster to avoid rendering the main-raster pixels, or an opacity can be used for a PolygonSymbolizer Fill to allow the main-raster data be visible through the fill. (Optional)
Definition at line 159 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
private |
It tells a system how to behave when multiple raster images in a layer overlap each other, for example with satellite-image scenes. (Optional)
Definition at line 163 of file RasterSymbolizer.h.
|
private |
It selects the application of relief shading (or "hill shading") to an image for a three-dimensional visual effect. (Optional)
Definition at line 166 of file RasterSymbolizer.h.
Referenced by RasterSymbolizer().
|
staticprivate |
A static data member used in the implementation of getType method.
Definition at line 169 of file RasterSymbolizer.h.