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