#include <Shadow.h>
Public Member Functions | |
| te::rst::Raster * | GenerateImage (te::rst::Raster *raster) |
| te::rst::Raster * | getOutRst () |
| bool | run () |
| void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsetName, const te::da::DataSetTypePtr &inDsetType) |
| void | setOutput (std::map< std::string, std::string > &dsinfo, std::string outRstDSType) |
| void | setParams (double azimuth, double elevation, double relief, double dummy, double vmin, double vmax, double minval, double maxval, unsigned int outputWidth, unsigned int outputHeight, double resxo, double resyo) |
| void | setSRID (int srid) |
| Shadow () | |
| ~Shadow () | |
Protected Attributes | |
| std::unique_ptr< te::da::DataSet > | inDset |
| double | m_azimuth |
| double | m_dummy |
| double | m_elevation |
| std::string | m_inDsetName |
| te::da::DataSetTypePtr | m_inDsetType |
| te::da::DataSourcePtr | m_inDsrc |
| double | m_maxval |
| double | m_minval |
| te::rst::Raster * | m_out |
| std::map< std::string, std::string > | m_outDsinfo |
| unsigned int | m_outputHeight |
| unsigned int | m_outputWidth |
| std::string | m_outRstDSType |
| double | m_relief |
| double | m_resxo |
| double | m_resyo |
| int | m_srid |
| Attribute with spatial reference information. More... | |
| double | m_vmax |
| double | m_vmin |
Private Member Functions | |
| bool | calcLocalGradient (te::rst::Raster *inputRaster, int line, int col, double vmin, double vmax, double &dx, double &dy, double *val) |
| void | getRasterElementLine (te::rst::Raster *inputRaster, int line, std::vector< std::complex< double > > &val) |
| te::mnt::Shadow::Shadow | ( | ) |
Definition at line 22 of file Shadow.cpp.
| te::mnt::Shadow::~Shadow | ( | ) |
Definition at line 40 of file Shadow.cpp.
References m_out.
|
private |
Definition at line 96 of file Shadow.cpp.
References te::rst::Raster::getResolutionX(), and te::rst::Raster::getResolutionY().
Referenced by GenerateImage().
| te::rst::Raster * te::mnt::Shadow::GenerateImage | ( | te::rst::Raster * | raster | ) |
Definition at line 148 of file Shadow.cpp.
References compose::bands, calcLocalGradient(), col, d, te::dt::DOUBLE_TYPE, te::rst::Raster::getExtent(), te::gm::Envelope::getLowerLeftX(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getRasterElementLine(), te::gm::Envelope::getUpperRightY(), te::rst::GrayIdxCInt, te::sa::Grid, line, m_azimuth, m_dummy, m_elevation, m_maxval, m_minval, m_outDsinfo, m_outputHeight, m_outputWidth, m_outRstDSType, m_relief, m_resxo, m_resyo, m_srid, m_vmax, m_vmin, te::rst::RasterFactory::make(), and te::rst::Raster::setValue().
Referenced by te::mnt::ImageGenerationDialog::drawPreview(), and run().
|
inline |
|
private |
Definition at line 137 of file Shadow.cpp.
References col, te::rst::Raster::getNumberOfColumns(), and te::rst::Raster::getValues().
Referenced by GenerateImage().
| bool te::mnt::Shadow::run | ( | ) |
Definition at line 79 of file Shadow.cpp.
References GenerateImage(), te::da::GetFirstRasterProperty(), te::dt::Property::getName(), inDset, m_inDsetName, m_inDsetType, m_inDsrc, m_out, and TE_TR.
Referenced by te::mnt::ImageGenerationDialog::onOkPushButtonClicked().
| void te::mnt::Shadow::setInput | ( | te::da::DataSourcePtr | inDsrc, |
| std::string | inDsetName, | ||
| const te::da::DataSetTypePtr & | inDsetType | ||
| ) |
Definition at line 46 of file Shadow.cpp.
References m_inDsetName, m_inDsetType, and m_inDsrc.
Referenced by te::mnt::ImageGenerationDialog::onOkPushButtonClicked().
| void te::mnt::Shadow::setOutput | ( | std::map< std::string, std::string > & | dsinfo, |
| std::string | outRstDSType | ||
| ) |
Definition at line 55 of file Shadow.cpp.
References m_outDsinfo, and m_outRstDSType.
Referenced by te::mnt::ImageGenerationDialog::drawPreview(), and te::mnt::ImageGenerationDialog::onOkPushButtonClicked().
| void te::mnt::Shadow::setParams | ( | double | azimuth, |
| double | elevation, | ||
| double | relief, | ||
| double | dummy, | ||
| double | vmin, | ||
| double | vmax, | ||
| double | minval, | ||
| double | maxval, | ||
| unsigned int | outputWidth, | ||
| unsigned int | outputHeight, | ||
| double | resxo, | ||
| double | resyo | ||
| ) |
Definition at line 61 of file Shadow.cpp.
References m_azimuth, m_dummy, m_elevation, m_maxval, m_minval, m_outputHeight, m_outputWidth, m_relief, m_resxo, m_resyo, m_vmax, and m_vmin.
Referenced by te::mnt::ImageGenerationDialog::drawPreview(), and te::mnt::ImageGenerationDialog::onOkPushButtonClicked().
|
inline |
Function used to set the Spatial Reference System ID
Definition at line 40 of file Shadow.h.
Referenced by te::mnt::ImageGenerationDialog::drawPreview(), and te::mnt::ImageGenerationDialog::onOkPushButtonClicked().
|
protected |
|
protected |
Definition at line 66 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 73 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 67 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 56 of file Shadow.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 57 of file Shadow.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 55 of file Shadow.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 71 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 70 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
|
protected |
Definition at line 60 of file Shadow.h.
Referenced by GenerateImage(), and setOutput().
|
protected |
Definition at line 75 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 74 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 61 of file Shadow.h.
Referenced by GenerateImage(), and setOutput().
|
protected |
Definition at line 68 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 77 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 77 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Attribute with spatial reference information.
Definition at line 64 of file Shadow.h.
Referenced by GenerateImage().
|
protected |
Definition at line 69 of file Shadow.h.
Referenced by GenerateImage(), and setParams().
|
protected |
Definition at line 69 of file Shadow.h.
Referenced by GenerateImage(), and setParams().