te::qt::widgets::ContrastDialog Class Reference

A dialog used to execute image contrast enhencement. More...

#include <ContrastDialog.h>

Inheritance diagram for te::qt::widgets::ContrastDialog:

Public Member Functions

 ContrastDialog (te::rst::Raster const *inputRasterPtr, 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...
 
 ContrastDialog (te::rst::Raster const *rasterPtr, 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...
 
 ~ContrastDialog ()
 Destructor. More...
 

Protected Slots

void on_okPushButton_clicked ()
 

Private Attributes

te::rst::Raster const * m_inputRasterPtr
 User interface. More...
 
std::string m_outpuRasterDSType
 true if the output raster is the input raster. More...
 
std::map< std::string, std::string > m_outpuRasterInfo
 Output raster data source type (as described in te::raster::RasterFactory ). More...
 
bool m_outputRasterIsInputRaster
 Input raster pointer. More...
 
boost::shared_ptr< te::rst::Rasterm_outputRasterPtr
 The necessary information to create the raster (as described in te::raster::RasterFactory). More...
 
Ui::ContrastForm * m_uiPtr
 

Detailed Description

A dialog used to execute image contrast enhencement.

Definition at line 66 of file ContrastDialog.h.

Constructor & Destructor Documentation

te::qt::widgets::ContrastDialog::ContrastDialog ( te::rst::Raster const *  inputRasterPtr,
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.
outpuRasterDSTypeOutput raster data source type (as described in te::raster::RasterFactory ).
outpuRasterInfoThe necessary information to create the raster (as described in te::raster::RasterFactory).
parentParent widget pointer.
fWidget flags.
te::qt::widgets::ContrastDialog::ContrastDialog ( te::rst::Raster const *  rasterPtr,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

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

Parameters
rasterPtrRaster pointer (this is both input and output raster, the result be written to this raster).
parentParent widget pointer.
fWidget flags.
te::qt::widgets::ContrastDialog::~ContrastDialog ( )

Destructor.

Member Function Documentation

bool te::qt::widgets::ContrastDialog::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.
void te::qt::widgets::ContrastDialog::on_okPushButton_clicked ( )
protectedslot

Member Data Documentation

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

User interface.

Definition at line 120 of file ContrastDialog.h.

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

true if the output raster is the input raster.

Definition at line 122 of file ContrastDialog.h.

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

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

Definition at line 123 of file ContrastDialog.h.

bool te::qt::widgets::ContrastDialog::m_outputRasterIsInputRaster
private

Input raster pointer.

Definition at line 121 of file ContrastDialog.h.

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

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

Definition at line 124 of file ContrastDialog.h.

Ui::ContrastForm* te::qt::widgets::ContrastDialog::m_uiPtr
private

Definition at line 119 of file ContrastDialog.h.


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