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

A dialog used to execute mixture model decomposition. More...

#include <MixtureModelDialog.h>

Inheritance diagram for te::qt::widgets::MixtureModelDialog:

Public Member Functions

bool getOutputRaster (boost::shared_ptr< te::rst::Raster > &outputRasterPtr)
 Returns the output result raster. More...
 
 MixtureModelDialog (const te::map::DataSetLayerPtr &inputLayerPtr, 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...
 
 ~MixtureModelDialog ()
 Destructor. More...
 

Protected Slots

void on_coordTracked_changed (QPointF &coordinate)
 
void on_keyPressedOverMapDisplay (int key)
 
void on_mapDisplay_extentChanged ()
 
void on_okPushButton_clicked ()
 
void on_removeButton_clicked ()
 
void updateComponentsGrid ()
 

Private Attributes

int currentColumn
 The column position of mouse in map display. More...
 
int currentRow
 The row position of mouse in map display. More...
 
std::map< std::string,
std::vector< double > > 
m_components
 The map of selected components (name -> values). More...
 
std::map< std::string,
te::gm::Coord2D
m_coordinates
 The map of selected coordinates (name -> coordinates). More...
 
CoordTrackingm_coordTracking
 Coordinate tracking for map display. More...
 
const te::rst::Rasterm_inputRasterPtr
 Input raster pointer. More...
 
MixtureModelDialogMDEventFilterm_keyboardPressTracking
 The event filter to detect when user press space bar. More...
 
te::qt::widgets::MapDisplaym_mapDisplay
 The map display to show the input raster. More...
 
unsigned int m_maxComponentsInserted
 The maximum number of components inserted. 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...
 
te::qt::widgets::Panm_panClickEvent
 Pan click event for map display. More...
 
te::color::RGBAColor ** m_selectedPointPattern
 The display draw pattern used for selected points. More...
 
Ui::MixtureModelForm * m_uiPtr
 User interface. More...
 
te::qt::widgets::ZoomWheelm_zoomScroolEvent
 Zoom event using mouse scrool for map display. More...
 

Detailed Description

A dialog used to execute mixture model decomposition.

Definition at line 97 of file MixtureModelDialog.h.

Constructor & Destructor Documentation

te::qt::widgets::MixtureModelDialog::MixtureModelDialog ( const te::map::DataSetLayerPtr inputLayerPtr,
const std::string &  outpuRasterDSType,
const std::map< std::string, std::string > &  outpuRasterInfo,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::widgets::MixtureModelDialog::~MixtureModelDialog ( )

Destructor.

Definition at line 167 of file MixtureModelDialog.cpp.

References PATTERN_W.

Member Function Documentation

bool te::qt::widgets::MixtureModelDialog::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 179 of file MixtureModelDialog.cpp.

void te::qt::widgets::MixtureModelDialog::on_coordTracked_changed ( QPointF &  coordinate)
protectedslot

Definition at line 290 of file MixtureModelDialog.cpp.

References te::gm::Coord2D::x, and te::gm::Coord2D::y.

Referenced by MixtureModelDialog().

void te::qt::widgets::MixtureModelDialog::on_keyPressedOverMapDisplay ( int  key)
protectedslot

Definition at line 298 of file MixtureModelDialog.cpp.

Referenced by MixtureModelDialog().

void te::qt::widgets::MixtureModelDialog::on_removeButton_clicked ( )
protectedslot

Definition at line 326 of file MixtureModelDialog.cpp.

void te::qt::widgets::MixtureModelDialog::updateComponentsGrid ( )
protectedslot

Definition at line 371 of file MixtureModelDialog.cpp.

Member Data Documentation

int te::qt::widgets::MixtureModelDialog::currentColumn
private

The column position of mouse in map display.

Definition at line 147 of file MixtureModelDialog.h.

int te::qt::widgets::MixtureModelDialog::currentRow
private

The row position of mouse in map display.

Definition at line 148 of file MixtureModelDialog.h.

std::map<std::string, std::vector<double> > te::qt::widgets::MixtureModelDialog::m_components
private

The map of selected components (name -> values).

Definition at line 154 of file MixtureModelDialog.h.

std::map<std::string, te::gm::Coord2D> te::qt::widgets::MixtureModelDialog::m_coordinates
private

The map of selected coordinates (name -> coordinates).

Definition at line 155 of file MixtureModelDialog.h.

CoordTracking* te::qt::widgets::MixtureModelDialog::m_coordTracking
private

Coordinate tracking for map display.

Definition at line 152 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

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

Input raster pointer.

Definition at line 143 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

MixtureModelDialogMDEventFilter* te::qt::widgets::MixtureModelDialog::m_keyboardPressTracking
private

The event filter to detect when user press space bar.

Definition at line 153 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

te::qt::widgets::MapDisplay* te::qt::widgets::MixtureModelDialog::m_mapDisplay
private

The map display to show the input raster.

Definition at line 149 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

unsigned int te::qt::widgets::MixtureModelDialog::m_maxComponentsInserted
private

The maximum number of components inserted.

Definition at line 156 of file MixtureModelDialog.h.

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

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

Definition at line 144 of file MixtureModelDialog.h.

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

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

Definition at line 145 of file MixtureModelDialog.h.

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

Output raster pointer.

Definition at line 146 of file MixtureModelDialog.h.

te::qt::widgets::Pan* te::qt::widgets::MixtureModelDialog::m_panClickEvent
private

Pan click event for map display.

Definition at line 150 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

te::color::RGBAColor** te::qt::widgets::MixtureModelDialog::m_selectedPointPattern
private

The display draw pattern used for selected points.

Definition at line 157 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

Ui::MixtureModelForm* te::qt::widgets::MixtureModelDialog::m_uiPtr
private

User interface.

Definition at line 142 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().

te::qt::widgets::ZoomWheel* te::qt::widgets::MixtureModelDialog::m_zoomScroolEvent
private

Zoom event using mouse scrool for map display.

Definition at line 151 of file MixtureModelDialog.h.

Referenced by MixtureModelDialog().


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