AbstractPointCoverageInterp.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 AbstractPointCoverageInterp.h
22 
23  \brief This file contains an abstract class for interpolation function
24  or interpolator that estimate values at non-observaved location within
25  a PointCoverage.
26 */
27 
28 #ifndef __TERRALIB_ST_INTERNAL_ABSTRACTPOINTCOVERAGEINTERP_H
29 #define __TERRALIB_ST_INTERNAL_ABSTRACTPOINTCOVERAGEINTERP_H
30 
31 // ST
32 #include "../../Config.h"
33 
34 //STL
35 #include <memory>
36 
37 // Forward declarations
38 namespace te { namespace dt { class AbstractData; } }
39 namespace te { namespace common { class AbstractParameters; } }
40 namespace te { namespace gm { class Point; } }
41 
42 namespace te
43 {
44  namespace st
45  {
46  // Forward declarations
47  class PointCoverage;
48 
49  /*!
50  \class AbstractPointCoverageInterp
51 
52  \brief An abstract class for interpolation function
53  or interpolator that estimate values at non-observaved location within
54  a PointCoverage.
55 
56  \ingroup st
57 
58  \sa PointCoverage
59  */
61  {
62 
63  public:
64 
65  /*!
66  \brief It gets the parameters associated to the interpolator.
67 
68  \return It returns the parameters associated to the interpolator.
69 
70  \note The caller will not take the ownership of the returned pointer.
71  */
72  virtual te::common::AbstractParameters* getParams() = 0;
73 
74  /*!
75  \brief It sets the parameters associated to the interpolator.
76 
77  \param p The parameters to be associated to the interpolator.
78 
79  \note It will take the ownership of the given pointer.
80  */
81  virtual void setParams(te::common::AbstractParameters* p) = 0;
82 
83  /*!
84  \brief It estimates a value at a given non-observed location, in a PointCoverage.
85 
86  \param cv A PointCoverage
87  \param p The index of the PointCoverage property to be estimated
88  \param l A given non-observed location.
89 
90  \return The estimated value.
91 
92  \note The caller will take the ownership of the output Geometry pointer.
93  */
94  virtual std::auto_ptr<te::dt::AbstractData> estimate(const PointCoverage& cv, unsigned int p, const te::gm::Point& l) = 0;
95 
96 
97  /*! \brief Virtual destructor. */
98  virtual ~AbstractPointCoverageInterp();
99 
100  protected:
101 
102  /*! \brief Constructor. */
104  };
105 
106  } // end namespace st
107 } // end namespace te
108 
109 #endif // __TERRALIB_ST_INTERNAL_ABSTRACTPOINTCOVERAGEINTERP_H
110 
#define TESTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:88
A concrete class to represent a point coverage.
Definition: PointCoverage.h:70
An abstract class for interpolation function or interpolator that estimate values at non-observaved l...
A point with x and y coordinate values.
Definition: Point.h:50
URI C++ Library.
Abstract parameters base interface.