ScatterDataWidget.h
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/charts/scatterDataWidget.h
22 
23  \brief A widget used to adjust a scatter's input data.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_SCATTERDATAWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_SCATTERDATAWIDGET_H
28 
29 //TerraLib
30 #include "../Config.h"
31 
32 // Qt
33 #include <QWidget>
34 
35 //STL
36 #include <memory>
37 
38 namespace Ui { class ScatterDataWidgetForm; }
39 
40 
41 namespace te
42 {
43  //forward declarations
44  namespace da { class DataSet; class DataSetType; }
45 
46  namespace qt
47  {
48  namespace widgets
49  {
50 
51  //forward declarations
52  class Scatter;
53  /*!
54  \class Scatter creator
55 
56  \brief A widget used to adjust a scatter's input data.
57  */
58  class TEQTWIDGETSEXPORT ScatterDataWidget : public QWidget
59  {
60 
61  Q_OBJECT
62 
63  public:
64 
65 
66  /*!
67  \brief Constructor
68 
69  \param dataSet The dataset that will be used to generate a histogram.
70  \param dataType The dataset that will be used to generate a histogram.
71  \param parent this widget's parent
72  \param f Window flags used to configure this widget
73  */
74  ScatterDataWidget(te::da::DataSet* dataSet, te::da::DataSetType* dataType, QWidget* parent = 0, Qt::WindowFlags f = 0);
75 
76  /*!
77  \brief Destructor
78  */
80 
81  /*!
82  \brief Returns a pointer to the widget's form
83 
84  \return A ScatterDataWidgetForm type pointer to the widget's form.
85  \note The caller will not take ownership of the returned pointer.
86  */
87  Ui::ScatterDataWidgetForm* getForm();
88 
89  /*!
90  \brief Returns a pointer to the widget's form
91 
92  \return A HistogramDataWidgetForm type pointer to the widget's form.
93  \note The caller will take ownership of the returned pointer.
94  */
95  te::qt::widgets::Scatter* getScatter();
96 
97  protected slots:
98 
99  private:
100 
101  std::auto_ptr<Ui::ScatterDataWidgetForm> m_ui; //!< THe widget Form.
102  std::auto_ptr<te::da::DataSet> m_dataSet; //!< The dataset that will be used to generate the Scatter graphic.
103  std::auto_ptr<te::da::DataSetType> m_dataType; //!< The type of the dataset that will be used to generate the Scatter graphic.
104  };
105  } // end namespace widgets
106  } // end namespace qt
107 } // end namespace te
108 
109 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_SCATTERDATAWIDGET_H
std::auto_ptr< Ui::ScatterDataWidgetForm > m_ui
THe widget Form.
A class that models the description of a dataset.
Definition: DataSetType.h:72
A class to represent a scatter.
Definition: Scatter.h:51
std::auto_ptr< te::da::DataSetType > m_dataType
The type of the dataset that will be used to generate the Scatter graphic.
URI C++ Library.
A dataset is the unit of information manipulated by the data access module of TerraLib.
Definition: DataSet.h:112
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
std::auto_ptr< te::da::DataSet > m_dataSet
The dataset that will be used to generate the Scatter graphic.