te::qt::widgets::PCAWizardPage Class Reference

#include <PCAWizardPage.h>

Inheritance diagram for te::qt::widgets::PCAWizardPage:
QWizardPage

Public Member Functions

std::string getMatrixFileName () const
 This function returns the bands from the raster taht will be used. More...
 
int getOutputRasterDataType () const
 This function returns the output raster data type. More...
 
std::vector< unsigned intgetSelectedBands () const
 This function returns the bands from the raster taht will be used. More...
 
bool inversePCASelected () const
 Returnes true the inverse PCA option is selected. More...
 
bool isComplete () const
 
 PCAWizardPage (QWidget *parent=0)
 Constructor. More...
 
void setLayer (te::map::AbstractLayerPtr layer)
 This function sets the layer that contains the raster that will be sliced. More...
 
 ~PCAWizardPage ()
 Destructor. More...
 

Protected Slots

void inversePCACheckBoxToggled (bool checked)
 
void loadPCAMatrixFilePushButtonClicked (bool checked)
 

Protected Attributes

std::unique_ptr< te::rst::Rasterm_raster
 The raster that will be processed. More...
 
te::map::AbstractLayerPtr m_rasterLayer
 Testing a better way to show the chart. More...
 
std::unique_ptr< Ui::PCAWizardPageForm > m_ui
 The wizard page form. More...
 

Private Member Functions

PCAWizardPageoperator= (const PCAWizardPage &rhs)
 
 PCAWizardPage (const PCAWizardPage &rhs)
 

Detailed Description

Definition at line 54 of file PCAWizardPage.h.

Constructor & Destructor Documentation

te::qt::widgets::PCAWizardPage::PCAWizardPage ( QWidget parent = 0)
te::qt::widgets::PCAWizardPage::~PCAWizardPage ( )
default

Destructor.

Referenced by PCAWizardPage().

te::qt::widgets::PCAWizardPage::PCAWizardPage ( const PCAWizardPage rhs)
private

Member Function Documentation

std::string te::qt::widgets::PCAWizardPage::getMatrixFileName ( ) const

This function returns the bands from the raster taht will be used.

Returns
A vector of band indexes.

Definition at line 84 of file PCAWizardPage.cpp.

References m_ui.

int te::qt::widgets::PCAWizardPage::getOutputRasterDataType ( ) const

This function returns the output raster data type.

Returns
The output raster data type.

Definition at line 89 of file PCAWizardPage.cpp.

References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, m_ui, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, and te::dt::UINT32_TYPE.

std::vector< unsigned int > te::qt::widgets::PCAWizardPage::getSelectedBands ( ) const

This function returns the bands from the raster taht will be used.

Returns
A vector of band indexes.

Definition at line 66 of file PCAWizardPage.cpp.

References m_ui.

void te::qt::widgets::PCAWizardPage::inversePCACheckBoxToggled ( bool  checked)
protectedslot

Definition at line 180 of file PCAWizardPage.cpp.

References m_ui.

Referenced by PCAWizardPage().

bool te::qt::widgets::PCAWizardPage::inversePCASelected ( ) const

Returnes true the inverse PCA option is selected.

Returns
Returnes true the inverse PCA option is selected.

Definition at line 175 of file PCAWizardPage.cpp.

References m_ui.

bool te::qt::widgets::PCAWizardPage::isComplete ( ) const

In order for this function to return true:

The color map taht will be used on the output layer can not be empty.

Parameters
Aboolean that indicates if the page is complete.

Definition at line 153 of file PCAWizardPage.cpp.

References m_ui.

void te::qt::widgets::PCAWizardPage::loadPCAMatrixFilePushButtonClicked ( bool  checked)
protectedslot

Definition at line 201 of file PCAWizardPage.cpp.

References m_ui.

Referenced by PCAWizardPage().

PCAWizardPage& te::qt::widgets::PCAWizardPage::operator= ( const PCAWizardPage rhs)
private
void te::qt::widgets::PCAWizardPage::setLayer ( te::map::AbstractLayerPtr  layer)

This function sets the layer that contains the raster that will be sliced.

Parameters
layerThe layer from which the raster will be obtained.

Definition at line 123 of file PCAWizardPage.cpp.

References band, ds, te::da::GetFirstPropertyPos(), m_raster, m_rasterLayer, m_ui, and te::dt::RASTER_TYPE.

Member Data Documentation

std::unique_ptr<te::rst::Raster> te::qt::widgets::PCAWizardPage::m_raster
protected

The raster that will be processed.

Definition at line 114 of file PCAWizardPage.h.

Referenced by setLayer().

te::map::AbstractLayerPtr te::qt::widgets::PCAWizardPage::m_rasterLayer
protected

Testing a better way to show the chart.

Definition at line 115 of file PCAWizardPage.h.

Referenced by setLayer().

std::unique_ptr<Ui::PCAWizardPageForm> te::qt::widgets::PCAWizardPage::m_ui
protected

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