Loading...
Searching...
No Matches
HistogramStyle.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/HistogramStyle.h
22
23 \brief A class used to define the style of a histogram's chart
24*/
25
26#ifndef __TERRALIB_QT_WIDGETS_INTERNAL_HISTOGRAMSTYLE_H
27#define __TERRALIB_QT_WIDGETS_INTERNAL_HISTOGRAMSTYLE_H
28
29//TerraLib
30#include "../Config.h"
31
32//QT
33#include "qcolor.h"
34
35namespace 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 */
58
59 /*!
60 \brief Constructor
61
62 \param fill The histogram bar's fill
63 \param stroke The histogram bar's stroke
64 */
66
67 /*!
68 \brief Destructor.
69 */
71
72 /*!
73 \brief Returns a pointer to a clone of this HistogramStyle.
74
75 \return A HistogramStyle type clone of this HistogramStyle.
76 \note The caller will take ownership of the returned pointer.
77 */
79
80 /*!
81 \brief Returns a pointer to the histogram bar's fill
82
83 \return A Fill type pointer to the histogram bar's fill.
84 \note The caller will not take ownership of the returned pointer.
85 */
87
88 /*!
89 \brief It sets the histogram bar's fill
90
91 \param newFill The new fill.
92 \note It will take ownership of the given pointer
93 */
94 void setFill(te::se::Fill* newFill);
95
96 /*!
97 \brief Returns a pointer to the histogram bar's stroke
98
99 \return A Fill type pointer to the histogram bar's stroke.
100 \note The caller will not take ownership of the returned pointer.
101 */
103
104 /*!
105 \brief It sets the histogram bar's stroke
106
107 \param newStroke The new stroke.
108 \note It will take ownership of the given pointer
109 */
110 void setStroke(te::se::Stroke* newStroke);
111
112 private:
113
115
116 private:
117
118 te::se::Fill* m_fill; //!< The bar's fill .
119 te::se::Stroke* m_stroke; //!< The bar's stroke.
120
121 };
122 } //end namespace widgets
123 } //end namespace qt
124} // end namespace te
125
126#endif // __TERRALIB_QT_WIDGETS_INTERNAL_HISTOGRAMSTYLE_H
HistogramStyle(te::se::Fill *fill, te::se::Stroke *stroke)
Constructor.
HistogramStyle * clone()
Returns a pointer to a clone of this HistogramStyle.
te::se::Fill * m_fill
The bar's fill .
te::se::Fill * getFill()
Returns a pointer to the histogram bar's fill.
void setStroke(te::se::Stroke *newStroke)
It sets the histogram bar's stroke.
te::se::Stroke * m_stroke
The bar's stroke.
void setFill(te::se::Fill *newFill)
It sets the histogram bar's fill.
te::se::Stroke * getStroke()
Returns a pointer to the histogram bar's stroke.
A Fill specifies the pattern for filling an area geometry.
Definition: Fill.h:60
A Stroke specifies the appearance of a linear geometry.
Definition: Stroke.h:68
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63