All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::ClassifierDialog Class Reference

A dialog used to execute image classification. More...

#include <ClassifierDialog.h>

Inheritance diagram for te::qt::widgets::ClassifierDialog:

Public Member Functions

 ClassifierDialog (const te::rst::Raster *inputRasterPtr, std::vector< te::gm::Polygon * > inputPolygons, const std::string &outpuRasterDSType, const std::map< std::string, std::string > &outpuRasterInfo, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a basic dialog which is a child of parent, with widget flags set to f. More...
 
bool getOutputRaster (boost::shared_ptr< te::rst::Raster > &outputRasterPtr)
 Returns the output result raster. More...
 
 ~ClassifierDialog ()
 Destructor. More...
 

Protected Slots

void on_okPushButton_clicked ()
 

Private Attributes

std::vector< te::gm::Polygon * > m_inputPolygons
 Vector of input polygons. More...
 
const te::rst::Rasterm_inputRasterPtr
 Input raster pointer. More...
 
std::string m_outpuRasterDSType
 Output raster data source type (as described in te::rst::RasterFactory). More...
 
std::map< std::string,
std::string > 
m_outpuRasterInfo
 The necessary information to create the raster (as described in te::rst::RasterFactory). More...
 
boost::shared_ptr
< te::rst::Raster
m_outputRasterPtr
 Output raster pointer. More...
 
Ui::ClassifierForm * m_uiPtr
 User interface. More...
 

Detailed Description

A dialog used to execute image classification.

Definition at line 60 of file ClassifierDialog.h.

Constructor & Destructor Documentation

te::qt::widgets::ClassifierDialog::ClassifierDialog ( const te::rst::Raster inputRasterPtr,
std::vector< te::gm::Polygon * >  inputPolygons,
const std::string &  outpuRasterDSType,
const std::map< std::string, std::string > &  outpuRasterInfo,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructs a basic dialog which is a child of parent, with widget flags set to f.

Parameters
inputRasterPtrInput raster pointer.
inputPolygonsVector of input polygons.
outpuRasterDSTypeOutput raster data source type (as described in te::rst::RasterFactory).
outpuRasterInfoThe necessary information to create the raster (as described in te::rst::RasterFactory).
parentParent widget pointer.
fWidget flags.

Definition at line 38 of file ClassifierDialog.cpp.

References te::rst::Raster::getNumberOfBands(), m_uiPtr, and on_okPushButton_clicked().

te::qt::widgets::ClassifierDialog::~ClassifierDialog ( )

Destructor.

Definition at line 61 of file ClassifierDialog.cpp.

Member Function Documentation

bool te::qt::widgets::ClassifierDialog::getOutputRaster ( boost::shared_ptr< te::rst::Raster > &  outputRasterPtr)

Returns the output result raster.

Parameters
outputRasterPtrA pointer to the output result raster
Returns
true if OK, false on errors.

Definition at line 66 of file ClassifierDialog.cpp.

Member Data Documentation

std::vector<te::gm::Polygon*> te::qt::widgets::ClassifierDialog::m_inputPolygons
private

Vector of input polygons.

Definition at line 103 of file ClassifierDialog.h.

const te::rst::Raster* te::qt::widgets::ClassifierDialog::m_inputRasterPtr
private

Input raster pointer.

Definition at line 102 of file ClassifierDialog.h.

std::string te::qt::widgets::ClassifierDialog::m_outpuRasterDSType
private

Output raster data source type (as described in te::rst::RasterFactory).

Definition at line 104 of file ClassifierDialog.h.

std::map<std::string, std::string> te::qt::widgets::ClassifierDialog::m_outpuRasterInfo
private

The necessary information to create the raster (as described in te::rst::RasterFactory).

Definition at line 105 of file ClassifierDialog.h.

boost::shared_ptr<te::rst::Raster> te::qt::widgets::ClassifierDialog::m_outputRasterPtr
private

Output raster pointer.

Definition at line 106 of file ClassifierDialog.h.

Ui::ClassifierForm* te::qt::widgets::ClassifierDialog::m_uiPtr
private

User interface.

Definition at line 101 of file ClassifierDialog.h.

Referenced by ClassifierDialog().


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