KernelMapOperation.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/sa/core/KernelMapOperation.h
22 
23  \brief This file contains a class that represents the kernel map operation.
24 
25  \reference Adapted from TerraLib4.
26 */
27 
28 #ifndef __TERRALIB_SA_INTERNAL_KERNELMAPOPERATION_H
29 #define __TERRALIB_SA_INTERNAL_KERNELMAPOPERATION_H
30 
31 // Terralib Includes
32 #include "../Config.h"
33 #include "KernelFunctions.h"
34 #include "KernelOperation.h"
35 #include "KernelParams.h"
36 
37 // STL Includes
38 #include <map>
39 #include <memory>
40 
41 
42 namespace te
43 {
44  namespace sa
45  {
46  /*!
47  \class KernelMapOperation
48 
49  \brief Class used to calculate the kernel map of a dataset
50 
51  \sa KernelOperation
52  */
54  {
55  public:
56 
57  /*! \brief Default constructor. */
59 
60  /*! \brief Virtual destructor. */
62 
63  public:
64 
65  /*! \brief Function to execute the kernel operation. */
66  virtual void execute();
67 
68  void setInputParameters(te::sa::KernelInputParams* inParams);
69 
70  protected:
71 
72  /*! Function used to build the tree with data set information */
73  virtual void buildTree();
74 
75  protected:
76 
77  te::sa::KernelMap m_kMap; //!< Kernel map with input data.
78 
79  std::auto_ptr<te::sa::KernelInputParams> m_inputParams; //!< Kernel input parameters.
80  };
81  } // end namespace sa
82 } // end namespace te
83 
84 #endif //__TERRALIB_SA_INTERNAL_KERNELMAPOPERATION_H
std::auto_ptr< te::sa::KernelInputParams > m_inputParams
Kernel input parameters.
Class that represents the kernel input parameters.
Definition: KernelParams.h:54
Class used to calculate the kernel map of a dataset.
std::map< int, std::pair< te::gm::Geometry *, double > > KernelMap
Virtual class used to execute the kernel operations.
This file contains a functions used by the kernel operation.
This file contains a class that represents the kernel parameters.
URI C++ Library.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:133
This file contains a class that represents the kernel operation.
te::sa::KernelMap m_kMap
Kernel map with input data.