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::auto_ptr< te::rst::Raster > | buildRaster (te::sa::KernelInputParams *inputParams, te::sa::KernelTree &kTree, std::string driver) |
virtual void | buildTree ()=0 |
std::auto_ptr< te::mem::DataSet > | createDataSet (te::da::DataSet *inputDataSet, te::da::DataSetType *dsType) |
std::auto_ptr< te::da::DataSetType > | createDataSetType (te::da::DataSetType *dsType) |
std::auto_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::auto_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.
te::sa::KernelOperation::KernelOperation | ( | ) |
Default constructor.
Definition at line 51 of file KernelOperation.cpp.
|
virtual |
Virtual destructor.
Definition at line 55 of file KernelOperation.cpp.
|
protected |
Function used to create the output raster
Definition at line 113 of file KernelOperation.cpp.
References te::dt::DOUBLE_TYPE, 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, te::rst::RasterFactory::make(), and TE_UNKNOWN_SRS.
|
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 205 of file KernelOperation.cpp.
References te::da::DataSet::getNumProperties(), te::da::DataSet::getValue(), te::da::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::mem::DataSetItem::setDouble(), and te::mem::DataSetItem::setValue().
|
protected |
Function used to create the output dataset type
Definition at line 180 of file KernelOperation.cpp.
References te::dt::Property::clone(), te::dt::DOUBLE_TYPE, te::dt::CompositeProperty::getProperties(), te::dt::Property::setId(), and te::dt::Property::setParent().
|
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 83 of file KernelOperation.cpp.
References 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, te::sa::KernelInputParams::m_radiusPercentValue, and te::sa::KernelInputParams::m_useAdaptativeRadius.
|
protected |
Function used to run kernel when output data is a raster
Definition at line 64 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.
|
protected |
Function used to save the output dataset
Definition at line 153 of file KernelOperation.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), and te::da::DataSet::moveBeforeFirst().
void te::sa::KernelOperation::setOutputParameters | ( | te::sa::KernelOutputParams * | outParams | ) |
Definition at line 59 of file KernelOperation.cpp.
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.
|
protected |
Attribute with the kernel output parameters.
Definition at line 100 of file KernelOperation.h.