te::mnt::Shadow Class Reference

#include <Shadow.h>

Public Member Functions

te::rst::RasterGenerateImage (te::rst::Raster *raster)
 
te::rst::RastergetOutRst ()
 
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::DataSetinDset
 
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::Rasterm_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)
 

Detailed Description

Definition at line 23 of file Shadow.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

bool te::mnt::Shadow::calcLocalGradient ( te::rst::Raster inputRaster,
int  line,
int  col,
double  vmin,
double  vmax,
double &  dx,
double &  dy,
double *  val 
)
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::getOutRst ( )
inline

Definition at line 44 of file Shadow.h.

References col, dx, and line.

void te::mnt::Shadow::getRasterElementLine ( te::rst::Raster inputRaster,
int  line,
std::vector< std::complex< double > > &  val 
)
private

Definition at line 137 of file Shadow.cpp.

References col, te::rst::Raster::getNumberOfColumns(), and te::rst::Raster::getValues().

Referenced by GenerateImage().

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 
)
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 
)
void te::mnt::Shadow::setSRID ( int  srid)
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().

Member Data Documentation

std::unique_ptr<te::da::DataSet> te::mnt::Shadow::inDset
protected

Definition at line 58 of file Shadow.h.

Referenced by run().

double te::mnt::Shadow::m_azimuth
protected

Definition at line 66 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

double te::mnt::Shadow::m_dummy
protected

Definition at line 73 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

double te::mnt::Shadow::m_elevation
protected

Definition at line 67 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

std::string te::mnt::Shadow::m_inDsetName
protected

Definition at line 56 of file Shadow.h.

Referenced by run(), and setInput().

te::da::DataSetTypePtr te::mnt::Shadow::m_inDsetType
protected

Definition at line 57 of file Shadow.h.

Referenced by run(), and setInput().

te::da::DataSourcePtr te::mnt::Shadow::m_inDsrc
protected

Definition at line 55 of file Shadow.h.

Referenced by run(), and setInput().

double te::mnt::Shadow::m_maxval
protected

Definition at line 71 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

double te::mnt::Shadow::m_minval
protected

Definition at line 70 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

te::rst::Raster* te::mnt::Shadow::m_out
protected

Definition at line 62 of file Shadow.h.

Referenced by run(), and ~Shadow().

std::map<std::string, std::string> te::mnt::Shadow::m_outDsinfo
protected

Definition at line 60 of file Shadow.h.

Referenced by GenerateImage(), and setOutput().

unsigned int te::mnt::Shadow::m_outputHeight
protected

Definition at line 75 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

unsigned int te::mnt::Shadow::m_outputWidth
protected

Definition at line 74 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

std::string te::mnt::Shadow::m_outRstDSType
protected

Definition at line 61 of file Shadow.h.

Referenced by GenerateImage(), and setOutput().

double te::mnt::Shadow::m_relief
protected

Definition at line 68 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

double te::mnt::Shadow::m_resxo
protected

Definition at line 77 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

double te::mnt::Shadow::m_resyo
protected

Definition at line 77 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

int te::mnt::Shadow::m_srid
protected

Attribute with spatial reference information.

Definition at line 64 of file Shadow.h.

Referenced by GenerateImage().

double te::mnt::Shadow::m_vmax
protected

Definition at line 69 of file Shadow.h.

Referenced by GenerateImage(), and setParams().

double te::mnt::Shadow::m_vmin
protected

Definition at line 69 of file Shadow.h.

Referenced by GenerateImage(), and setParams().


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