All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ClassifierDummyStrategy.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/rp/ClassifierDummyStrategy.h
22 
23  \brief Dummy strategy (just for testing purposes).
24 */
25 
26 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
27 #define __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
28 
29 #include "ClassifierStrategy.h"
31 #include "Config.h"
32 
33 namespace te
34 {
35  namespace rp
36  {
37  /*!
38  \class ClassifierDummyStrategy
39 
40  \brief Dummy strategy (just for testing purposes).
41 
42  \ingroup rp_class
43  */
45  {
46  public:
47 
48  /*!
49  \class Parameters
50 
51  \brief Classifier Parameters
52  */
54  {
55  public:
56 
57  unsigned int m_dummyParameter; //!< A dummy parameter.
58 
59  Parameters();
60 
61  ~Parameters();
62 
63  //overload
64  const Parameters& operator=(const Parameters& params);
65 
66  //overload
67  void reset() throw( te::rp::Exception );
68 
69  //overload
70  AbstractParameters* clone() const;
71  };
72 
73  public:
74 
76 
77  ~ClassifierDummyStrategy();
78 
79  //overload
80  bool initialize(StrategyParameters const* const strategyParams) throw(te::rp::Exception);
81 
82  //overload
83  bool execute(const te::rst::Raster& inputRaster, const std::vector<unsigned int>& inputRasterBands,
84  const std::vector<te::gm::Polygon*>& inputPolygons, te::rst::Raster& outputRaster,
85  const unsigned int outputRasterBand, const bool enableProgressInterface) throw(te::rp::Exception);
86 
87  protected:
88 
89  bool m_isInitialized; //!< True if this instance is initialized.
90  ClassifierDummyStrategy::Parameters m_parameters; //!< Internal execution parameters.
91  };
92 
93  /*!
94  \class ClassifierDummyStrategyFactory
95 
96  \brief Raster dummy Classifier strategy factory.
97 
98  \note Factory key: RegionGrowing
99  */
101  {
102  public:
103 
105 
107 
108  //overload
110  };
111 
112  } // end namespace rp
113 } // end namespace te
114 
115 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
116 
Raster classifier strategy factory base class.
Raster strategy parameters base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:141
Raster classifier strategy factory base class.
Configuration flags for the Raster Processing module of TerraLib.
Raster classifier strategy base class.
unsigned int m_dummyParameter
A dummy parameter.
Raster dummy Classifier strategy factory.
Raster classifier strategy base class.
Dummy strategy (just for testing purposes).