TimeSeriesStyle.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/TimeSeriesStyle.h
22 
23  \brief A class used to define the style of a TimeSeries's chart
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESSTYLE_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESSTYLE_H
28 
29 //TerraLib
30 #include "../Config.h"
31 
32 //QT
33 #include "qcolor.h"
34 
35 namespace te
36 {
37  namespace se
38  {
39  //forward declarations
40  class Fill;
41  class Stroke;
42  }
43 
44  namespace qt
45  {
46 
47  namespace widgets
48  {
50  {
51 
52  public:
53 
54  /*!
55  \brief Constructor
56  */
57  TimeSeriesStyle();
58 
59  /*!
60  \brief Constructor
61 
62  \param stroke The line's stroke
63  */
65 
66  /*!
67  \brief Destructor.
68  */
69  ~TimeSeriesStyle();
70 
71  /*!
72  \brief Returns a pointer to a clone of this TimeSeriesStyle.
73 
74  \return A TimeSeriesStyle type clone of this TimeSeriesStyle.
75  \note The caller will take ownership of the returned pointer.
76  */
77  TimeSeriesStyle* clone();
78 
79 
80  /*!
81  \brief Returns a pointer to the line's stroke
82 
83  \return A Fill type pointer to the histogram bar's stroke.
84  \note The caller will not take ownership of the returned pointer.
85  */
86  te::se::Stroke* getStroke();
87 
88  /*!
89  \brief It sets the line's stroke
90 
91  \param newStroke The new stroke.
92  \note It will take ownership of the given pointer
93  */
94  void setStroke(te::se::Stroke* newStroke);
95 
96  private:
97 
98  void adjustSymbol();
99 
100  private:
101 
102  te::se::Stroke* m_stroke; //!< The bar's stroke.
103 
104  };
105  } //end namespace widgets
106  } //end namespace qt
107 } // end namespace te
108 
109 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_TIMESERIESSTYLE_H
te::se::Stroke * m_stroke
The bar's stroke.
URI C++ Library.
A Stroke specifies the appearance of a linear geometry.
Definition: Stroke.h:67
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63