Virtual class used to execute the kernel operations. More...
#include <KernelOperation.h>
Public Member Functions | |
| virtual void | execute ()=0 |
| Function to execute the kernel operation. More... | |
| KernelOperation () | |
| Default constructor. More... | |
| void | setOutputParameters (te::sa::KernelOutputParams *outParams) |
| virtual | ~KernelOperation () |
| Virtual destructor. More... | |
Protected Member Functions | |
| std::unique_ptr< te::rst::Raster > | buildRaster (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, std::string driver) |
| virtual void | buildTree ()=0 |
| std::unique_ptr< te::mem::DataSet > | createDataSet (te::da::DataSet *inputDataSet, te::da::DataSetType *dsType) |
| std::unique_ptr< te::da::DataSetType > | createDataSetType (te::da::DataSetType *dsType) |
| std::unique_ptr< te::mem::DataSet > | runDataSetKernel (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::da::DataSetType *dsType) |
| void | runRasterKernel (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, te::sa::KernelMap &kMap, te::rst::Raster *raster) |
| void | saveDataSet (te::da::DataSet *dataSet, te::da::DataSetType *dsType) |
Protected Attributes | |
| te::sa::KernelTree | m_kTree |
| Attribute used to locate near geometries. More... | |
| std::unique_ptr< te::sa::KernelOutputParams > | m_outputParams |
| Attribute with the kernel output parameters. More... | |
Virtual class used to execute the kernel operations.
Definition at line 58 of file KernelOperation.h.
|
default |
Default constructor.
|
virtualdefault |
Virtual destructor.
|
protected |
Function used to create the output raster
Definition at line 110 of file KernelOperation.cpp.
References te::dt::DOUBLE_TYPE, te::rst::FillRaster(), te::da::GetFirstGeomProperty(), te::gm::Envelope::getHeight(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::getMBR(), te::gm::GeometryProperty::getSRID(), te::gm::Envelope::getWidth(), te::sa::Grid, te::sa::KernelInputParams::m_dsType, te::rst::BandProperty::m_noDataValue, m_outputParams, te::rst::RasterFactory::make(), mixture::rst, and TE_UNKNOWN_SRS.
Referenced by te::sa::KernelMapOperation::execute(), and te::sa::KernelRatioOperation::execute().
|
protectedpure virtual |
Function used to build the tree with data set information
Implemented in te::sa::KernelMapOperation, and te::sa::KernelRatioOperation.
|
protected |
Function used to create the output dataset
Definition at line 201 of file KernelOperation.cpp.
References te::da::DataSet::getNumProperties(), te::da::DataSet::getValue(), m_outputParams, te::da::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::mem::DataSetItem::setDouble(), and te::mem::DataSetItem::setValue().
Referenced by te::sa::KernelRatioOperation::execute(), and runDataSetKernel().
|
protected |
Function used to create the output dataset type
Definition at line 176 of file KernelOperation.cpp.
References te::dt::Property::clone(), te::dt::DOUBLE_TYPE, te::dt::CompositeProperty::getProperties(), m_outputParams, te::dt::Property::setId(), and te::dt::Property::setParent().
Referenced by te::sa::KernelMapOperation::execute(), and te::sa::KernelRatioOperation::execute().
|
pure virtual |
Function to execute the kernel operation.
Implemented in te::sa::KernelMapOperation, and te::sa::KernelRatioOperation.
|
protected |
Function used to run kernel when output data is dataset
Definition at line 80 of file KernelOperation.cpp.
References createDataSet(), te::sa::DataSetAdaptRadiusKernel(), te::sa::DataSetStatRadiusKernel(), te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::gm::Envelope::getHeight(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::getMBR(), te::dt::CompositeProperty::getPropertyPosition(), te::gm::Envelope::getWidth(), te::sa::KernelInputParams::m_ds, m_outputParams, te::sa::KernelInputParams::m_radiusPercentValue, and te::sa::KernelInputParams::m_useAdaptativeRadius.
Referenced by te::sa::KernelMapOperation::execute(), and te::sa::KernelRatioOperation::execute().
|
protected |
Function used to run kernel when output data is a raster
Definition at line 61 of file KernelOperation.cpp.
References te::rst::Grid::getExtent(), te::rst::Raster::getGrid(), te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::sa::KernelInputParams::m_radiusPercentValue, and te::sa::KernelInputParams::m_useAdaptativeRadius.
Referenced by te::sa::KernelMapOperation::execute(), and te::sa::KernelRatioOperation::execute().
|
protected |
Function used to save the output dataset
Definition at line 153 of file KernelOperation.cpp.
References ds, te::common::Singleton< DataSourceManager >::getInstance(), m_outputParams, and te::da::DataSet::moveBeforeFirst().
Referenced by te::sa::KernelMapOperation::execute(), and te::sa::KernelRatioOperation::execute().
| void te::sa::KernelOperation::setOutputParameters | ( | te::sa::KernelOutputParams * | outParams | ) |
Definition at line 56 of file KernelOperation.cpp.
References m_outputParams.
Referenced by te::sa::KernelMapDialog::onOkPushButtonClicked(), and te::sa::KernelRatioDialog::onOkPushButtonClicked().
|
protected |
Attribute used to locate near geometries.
Definition at line 102 of file KernelOperation.h.
Referenced by te::sa::KernelMapOperation::buildTree(), te::sa::KernelRatioOperation::buildTree(), te::sa::KernelRatioOperation::execute(), and te::sa::KernelMapOperation::execute().
|
protected |
Attribute with the kernel output parameters.
Definition at line 100 of file KernelOperation.h.
Referenced by buildRaster(), createDataSet(), createDataSetType(), te::sa::KernelMapOperation::execute(), te::sa::KernelRatioOperation::execute(), runDataSetKernel(), saveDataSet(), and setOutputParameters().