Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GeometricOpOutputWizardPage.h
Go to the documentation of this file.
1
/* Copyright (C) 2011-2012 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/vp/qt/BasicGeometricOpWizardPage.h
22
23
\brief This file defines a class for a Basic Geometric Operation Wizard Page.
24
*/
25
26
#ifndef __TERRALIB_VP_INTERNAL_GEOMETRICOPOUTPUTWIZARDPAGE_H
27
#define __TERRALIB_VP_INTERNAL_GEOMETRICOPOUTPUTWIZARDPAGE_H
28
29
// TerraLib
30
#include "../../dataaccess/datasource/DataSourceInfo.h"
31
#include "../../maptools/AbstractLayer.h"
32
#include "../Config.h"
33
#include "../Enums.h"
34
35
// STL
36
#include <memory>
37
38
// Qt
39
#include <QWizardPage>
40
41
// Forward declaration
42
namespace
Ui {
class
GeometricOpOutputWizardPageForm; }
43
44
namespace
te
45
{
46
namespace
vp
47
{
48
/*!
49
\class GeometricOpOutputWizardPage
50
51
\brief This class is GUI used to define the basic geometric operator parameters for the VP operation.
52
*/
53
class
TEVPEXPORT
GeometricOpOutputWizardPage
:
public
QWizardPage
54
{
55
Q_OBJECT
56
57
public
:
58
59
GeometricOpOutputWizardPage
(QWidget* parent = 0);
60
61
~
GeometricOpOutputWizardPage
();
62
63
public
:
64
65
bool
hasConvexHull();
66
67
bool
hasCentroid();
68
69
bool
hasMBR();
70
71
bool
hasArea();
72
73
bool
hasLine();
74
75
bool
hasPerimeter();
76
77
std::string getAttribute();
78
79
void
setAttributes(std::vector<std::string> attributes);
80
81
te::vp::GeometricOpObjStrategy
getObjectStrategy();
82
83
std::string getOutDsName();
84
85
bool
hasOutputLayer();
86
87
bool
getToFile();
88
89
te::da::DataSourceInfoPtr
getDsInfoPtr();
90
91
std::string getPath();
92
93
public
slots:
94
95
void
onAllObjectsToggled();
96
97
void
onSimpleOperationToggled();
98
99
void
onAttributeOperationToggled();
100
101
void
onAttributeComboBoxChanged(
int
index);
102
103
void
onTargetDatasourceToolButtonPressed();
104
105
void
onTargetFileToolButtonPressed();
106
107
protected
:
108
109
// void loadAttributes();
110
111
private
:
112
113
std::auto_ptr<Ui::GeometricOpOutputWizardPageForm>
m_ui
;
114
115
te::da::DataSourceInfoPtr
m_outputDatasource
;
//!< DataSource information.
116
std::string
m_dsName
;
117
bool
m_toFile
;
118
std::string
m_attribute
;
119
std::string
m_path
;
120
121
};
122
123
}
// end namespace qt
124
}
// end namespace te
125
126
#endif // __TERRALIB_VP_INTERNAL_GEOMETRICOPOUTPUTWIZARDPAGE_H
TEVPEXPORT
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition:
Config.h:64
te::vp::GeometricOpOutputWizardPage::m_dsName
std::string m_dsName
Definition:
GeometricOpOutputWizardPage.h:116
te::vp::GeometricOpOutputWizardPage::m_toFile
bool m_toFile
Definition:
GeometricOpOutputWizardPage.h:117
te::vp::GeometricOpOutputWizardPage
This class is GUI used to define the basic geometric operator parameters for the VP operation...
Definition:
GeometricOpOutputWizardPage.h:53
te::vp::GeometricOpObjStrategy
GeometricOpObjStrategy
Defines the strategy used for the processing of the input geometries.
Definition:
Enums.h:115
te::vp::GeometricOpOutputWizardPage::m_attribute
std::string m_attribute
Definition:
GeometricOpOutputWizardPage.h:118
te::vp::GeometricOpOutputWizardPage::m_path
std::string m_path
Definition:
GeometricOpOutputWizardPage.h:119
te::vp::GeometricOpOutputWizardPage::m_outputDatasource
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
Definition:
GeometricOpOutputWizardPage.h:115
te::vp::GeometricOpOutputWizardPage::m_ui
std::auto_ptr< Ui::GeometricOpOutputWizardPageForm > m_ui
Definition:
GeometricOpOutputWizardPage.h:113
te::da::DataSourceInfoPtr
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
Definition:
DataSourceInfo.h:103
BB_TL5
terralib5
src
terralib
vp
qt
GeometricOpOutputWizardPage.h
Generated on Mon Sep 29 2014 13:47:07 for TerraLib by
1.8.7