ShadedRelief specifies the application of relief shading (or "hill shading") to a DEM raster to give it somewhat of a three-dimensional effect and to make elevation changes more visible. More...
#include <ShadedRelief.h>
Public Member Functions | |
| ShadedRelief * | clone () const |
| It creates a new copy of this object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| ShadedRelief () | |
| It initializes a new ShadedRelief. More... | |
| ~ShadedRelief () | |
| Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
| void | setBrightnessOnly (bool b) |
| bool | isBrightnessOnly () const |
| void | setReliefFactor (const double &rf) |
| double | getReliefFactor () const |
Private Attributes | |
| bool | m_brightnessOnly |
| It may be 0 (false) or 1 (true). (Optional) More... | |
| double | m_reliefFactor |
| It gives the amount of exaggeration to use for the height of the "hills". (Optional) More... | |
ShadedRelief specifies the application of relief shading (or "hill shading") to a DEM raster to give it somewhat of a three-dimensional effect and to make elevation changes more visible.
Exact parameters of the shading are system-dependent (for now). If the BrightnessOnly flag is "0" or "false" (false, default), the shading is applied to the layer being rendered as the current RasterSymbolizer. If BrightnessOnly is "1" or "true" (true), the shading is applied to the brightness of the colors in the rendering canvas generated so far by other layers, with the effect of relief-shading these other layers. The default for BrightnessOnly is "0" (false). The ReliefFactor gives the amount of exaggeration to use for the height of the "hills". A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.
Definition at line 58 of file ShadedRelief.h.
| te::se::ShadedRelief::ShadedRelief | ( | ) |
It initializes a new ShadedRelief.
Definition at line 29 of file ShadedRelief.cpp.
References ~ShadedRelief().
Referenced by clone().
|
default |
Destructor.
Referenced by ShadedRelief().
| te::se::ShadedRelief * te::se::ShadedRelief::clone | ( | ) | const |
It creates a new copy of this object.
Definition at line 57 of file ShadedRelief.cpp.
References m_brightnessOnly, m_reliefFactor, setBrightnessOnly(), setReliefFactor(), and ShadedRelief().
Referenced by te::qt::widgets::ShadedReliefWidget::getShadedRelief(), te::se::RasterSymbolizer::RasterSymbolizer(), and te::qt::widgets::ShadedReliefWidget::setShadedRelief().
| double te::se::ShadedRelief::getReliefFactor | ( | ) | const |
relief factor parameter.
Definition at line 52 of file ShadedRelief.cpp.
References m_reliefFactor.
Referenced by te::se::serialize::Save(), and te::qt::widgets::ShadedReliefWidget::updateUi().
| bool te::se::ShadedRelief::isBrightnessOnly | ( | ) | const |
brigtness parameter.
Definition at line 42 of file ShadedRelief.cpp.
References m_brightnessOnly.
Referenced by te::se::serialize::Save(), and te::qt::widgets::ShadedReliefWidget::updateUi().
| void te::se::ShadedRelief::setBrightnessOnly | ( | bool | b | ) |
brigtness parameter.
Definition at line 37 of file ShadedRelief.cpp.
References b, and m_brightnessOnly.
Referenced by clone(), te::qt::widgets::ShadedReliefWidget::initialize(), and te::qt::widgets::ShadedReliefWidget::onBrightnessToggled().
| void te::se::ShadedRelief::setReliefFactor | ( | const double & | rf | ) |
relief factor parameter.
Definition at line 47 of file ShadedRelief.cpp.
References m_reliefFactor.
Referenced by clone(), te::qt::widgets::ShadedReliefWidget::initialize(), and te::qt::widgets::ShadedReliefWidget::onFactorChanged().
|
private |
It may be 0 (false) or 1 (true). (Optional)
Definition at line 99 of file ShadedRelief.h.
Referenced by clone(), isBrightnessOnly(), and setBrightnessOnly().
|
private |
It gives the amount of exaggeration to use for the height of the "hills". (Optional)
Definition at line 100 of file ShadedRelief.h.
Referenced by clone(), getReliefFactor(), and setReliefFactor().