All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SegmenterAdvancedOptionsWizardPage.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/qt/widgets/rp/SegmenterAdvancedOptionsWizardPage.h
22 
23  \brief This file defines a class for a Segmenter Advanced Options Wizard page.
24 */
25 
26 // TerraLib
27 #include "../../../rp/Segmenter.h"
29 #include "ui_SegmenterAdvancedOptionsWizardPageForm.h"
30 
32  : QWizardPage(parent),
33  m_ui(new Ui::SegmenterAdvancedOptionsWizardPageForm)
34 {
35 // setup controls
36  m_ui->setupUi(this);
37 
38 //configure page
39  this->setTitle(tr("Segmenter Advanced Options"));
40  this->setSubTitle(tr("Used to set the segmenter advanced options."));
41 
43 
44  QString threadNumber;
45  threadNumber.setNum(input.m_maxSegThreads);
46 
47  QString maxBlockSize;
48  maxBlockSize.setNum(input.m_maxBlockSize);
49 
50  m_ui->m_enableThreadedProcessingcheckBox->setChecked(input.m_enableThreadedProcessing);
51  m_ui->m_maximumThreadsNumberLineEdit->setText(threadNumber);
52  m_ui->m_enableBlockProcessingcheckBox->setChecked(input.m_enableBlockProcessing);
53  m_ui->m_blockOverlapPercentSpinBox->setValue(input.m_blocksOverlapPercent);
54  m_ui->m_maximumBlockSizeLineEdit->setText(maxBlockSize);
55 }
56 
58 {
59 }
60 
61 Ui::SegmenterAdvancedOptionsWizardPageForm* te::qt::widgets::SegmenterAdvancedOptionsWizardPage::getForm() const
62 {
63  return m_ui.get();
64 }
unsigned char m_blocksOverlapPercent
The percentage of blocks overlapped area (valid range:0-25, defaul:10).
Definition: Segmenter.h:99
std::auto_ptr< Ui::SegmenterAdvancedOptionsWizardPageForm > m_ui
This file defines a class for a Segmenter Advanced Options Wizard page.
unsigned int m_maxBlockSize
The input image will be split into blocks with this width for processing, this parameter tells the ma...
Definition: Segmenter.h:97
Ui::SegmenterAdvancedOptionsWizardPageForm * getForm() const
Segmenter Input Parameters.
Definition: Segmenter.h:81
bool m_enableThreadedProcessing
If true, threaded processing will be performed (best with multi-core or multi-processor systems (defa...
Definition: Segmenter.h:91
unsigned int m_maxSegThreads
The maximum number of concurrent segmenter threads (default:0 - automatically found).
Definition: Segmenter.h:93
bool m_enableBlockProcessing
If true, the original raster will be splitted into small blocks, each one will be segmented independe...
Definition: Segmenter.h:95