All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ClassifierDummyStrategy.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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  */
43  {
44  public:
45 
46  /*!
47  \class Parameters
48 
49  \brief Classifier Parameters
50  */
52  {
53  public:
54 
55  unsigned int m_dummyParameter; //!< A dummy parameter.
56 
57  Parameters();
58 
59  ~Parameters();
60 
61  //overload
62  const Parameters& operator=(const Parameters& params);
63 
64  //overload
65  void reset() throw( te::rp::Exception );
66 
67  //overload
68  AbstractParameters* clone() const;
69  };
70 
71  public:
72 
74 
75  ~ClassifierDummyStrategy();
76 
77  //overload
78  bool initialize(StrategyParameters const* const strategyParams) throw(te::rp::Exception);
79 
80  //overload
81  bool execute(const te::rst::Raster& inputRaster, const std::vector<unsigned int>& inputRasterBands,
82  const std::vector<te::gm::Polygon*>& inputPolygons, te::rst::Raster& outputRaster,
83  const unsigned int outputRasterBand, const bool enableProgressInterface) throw(te::rp::Exception);
84 
85  protected:
86 
87  bool m_isInitialized; //!< True if this instance is initialized.
88  ClassifierDummyStrategy::Parameters m_parameters; //!< Internal execution parameters.
89  };
90 
91  /*!
92  \class ClassifierDummyStrategyFactory
93 
94  \brief Raster dummy Classifier strategy factory.
95 
96  \note Factory key: RegionGrowing
97  */
99  {
100  public:
101 
103 
105 
106  //overload
108  };
109 
110  } // end namespace rp
111 } // end namespace te
112 
113 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
114 
Raster strategy parameters base class.
Dummy strategy (just for testing purposes).
unsigned int m_dummyParameter
A dummy parameter.
Raster classifier strategy base class.
Raster classifier strategy factory base class.
Configuration flags for the Raster Processing module of TerraLib.
Raster classifier strategy base class.
Raster dummy Classifier strategy factory.
Raster classifier strategy factory base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:91