Loading...
Searching...
No Matches
MapItem.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/se/MapItem.h
22
23 \brief
24*/
25
26#ifndef __TERRALIB_SE_INTERNAL_MAPITEM_H
27#define __TERRALIB_SE_INTERNAL_MAPITEM_H
28
29// TerraLib
30#include "../fe/Expression.h"
31#include "Config.h"
32
33// STL
34#include <string>
35
36namespace te
37{
38 namespace se
39 {
40// Forward declaration
41 class ParameterValue;
42
43 /*!
44 \class MapItem
45
46 \brief
47
48 \sa te::fe::Expression, ParameterValue, Recode
49 */
51 {
52 public:
53
54 /** @name Initializer Methods
55 * Methods related to instantiation and destruction.
56 */
57 //@{
58
59 /*! \brief It initializes a new MapItem. */
61
62 /*! \brief Destructor. */
64
65 //@}
66
67 /*!
68 \brief It returns a clone of this object.
69
70 \return A clone of this object.
71 */
72 virtual MapItem* clone() const;
73
74 /*!
75 \brief No copy constructor allowed.
76
77 \param rhs The other MapItem.
78 */
79 MapItem(const MapItem& rhs);
80
81 /** @name Accessor methods
82 * Methods used to get or set properties.
83 */
84 //@{
85
86 double getData() const;
87
88 void setData(const double& d);
89
91
93
94 std::string getTitle() const;
95
96 void setTitle(const std::string& title);
97
98 //@}
99
100 private:
101
102 /** @name Not Allowed Methods
103 * No copy allowed.
104 */
105 //@{
106
107 /*!
108 \brief No assignment operator allowed.
109
110 \param rhs The other MapItem.
111
112 \return A reference for this.
113 */
115
116 //@}
117
118 private:
119
120 double m_data; //!< Mandatory.
121 ParameterValue* m_value; //!< Mandatory.
122 std::string m_title;
123 };
124
125 } // end namespace se
126} // end namespace te
127
128#endif // __TERRALIB_SE_INTERNAL_MAPITEM_H
This is an abstract class that models a Filter Encoding expression.
Definition Expression.h:51
void setValue(ParameterValue *v)
std::string m_title
Definition MapItem.h:122
std::string getTitle() const
virtual MapItem * clone() const
It returns a clone of this object.
MapItem()
It initializes a new MapItem.
ParameterValue * getValue() const
double getData() const
void setData(const double &d)
void setTitle(const std::string &title)
ParameterValue * m_value
Mandatory.
Definition MapItem.h:121
double m_data
Mandatory.
Definition MapItem.h:120
MapItem(const MapItem &rhs)
No copy constructor allowed.
MapItem & operator=(const MapItem &rhs)
No assignment operator allowed.
~MapItem()
Destructor.
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters.
TerraLib.
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition Config.h:201
Proxy configuration file for TerraView (see terraview_config.h).