InterpolationPoint.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/InterpolationPoint.h
22 
23  \brief They are used to define a graph of points.
24 */
25 
26 #ifndef __TERRALIB_SE_INTERNAL_INTERPOLATIONPOINT_H
27 #define __TERRALIB_SE_INTERNAL_INTERPOLATIONPOINT_H
28 
29 // TerraLib
30 #include "../fe/Expression.h"
31 #include "Config.h"
32 
33 namespace te
34 {
35  namespace se
36  {
37 // Forward declarations
38  class ParameterValue;
39 
40  /*!
41  \class InterpolationPoint
42 
43  \brief They are used to define a graph of points.
44 
45  \sa Interpolate, te::fe::Expression, ParameterValue
46  */
48  {
49  public:
50 
51  /** @name Initializer Methods
52  * Methods related to instantiation and destruction.
53  */
54  //@{
55 
56  /*! \brief It initializes a new InterpolationPoint. */
58 
59  /*!
60  \brief Copy constructor.
61 
62  \param rhs The other InterpolationPoint.
63  */
65 
66  /*! \brief Destructor. */
68 
69  /*!
70  \brief It returns a clone of this object.
71 
72  \return A clone of this object.
73  */
74  virtual InterpolationPoint* clone() const;
75 
76  //@}
77 
78  /** @name Accessor methods
79  * Methods used to get or set properties.
80  */
81  //@{
82 
83  void setData(const double& d);
84  double getData() const;
85 
86  void setValue(ParameterValue* v);
87  ParameterValue* getValue() const;
88 
89  //@}
90 
91  private:
92 
93  /** @name Not Allowed Methods
94  * No copy allowed.
95  */
96  //@{
97 
98  /*!
99  \brief No assignment operator allowed.
100 
101  \param rhs The other InterpolationPoint.
102 
103  \return A reference for this.
104  */
105  InterpolationPoint& operator=(const InterpolationPoint& rhs);
106 
107  //@}
108 
109  private:
110 
111  double m_data; //!< Mandatory.
112  ParameterValue* m_value; //!< Mandatory.
113  };
114 
115  } // end namespace se
116 } // end namespace te
117 
118 #endif // __TERRALIB_SE_INTERNAL_INTERPOLATIONPOINT_H
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
TerraLib.
This is an abstract class that models a Filter Encoding expression.
Definition: Expression.h:50
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:201
Configuration flags for the Symbology Encoding support of TerraLib.
They are used to define a graph of points.
ParameterValue * m_value
Mandatory.