Fawkes API  Fawkes Development Version
hor_search.h
1 
2 /***************************************************************************
3  * hor_search.h - Header of horizontal search filter
4  *
5  * Created: Wed Jul 06 11:52:27 2005
6  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7  * 2005 Yuxiao Hu (Yuxiao.Hu@rwth-aachen.de)
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef __FIREVISION_FILTERS_HOR_SEARCH_H_
26 #define __FIREVISION_FILTERS_HOR_SEARCH_H_
27 
28 #include <fvfilters/filter.h>
29 #include <fvmodels/color/colormodel.h>
30 
31 namespace firevision {
32 #if 0 /* just to make Emacs auto-indent happy */
33 }
34 #endif
35 
36 class FilterHSearch : public Filter
37 {
38 
39  public:
40  FilterHSearch(ColorModel *cm, color_t what);
41 
42  virtual void apply();
43 
44  private:
45  ColorModel *cm;
46  color_t what;
47 
48 };
49 
50 } // end namespace firevision
51 
52 #endif // __FIREVISION_FILTERS_HOR_SEARCH_H_
53 
Color model interface.
Definition: colormodel.h:34
Search horizontally for a color change.
Definition: hor_search.h:36
virtual void apply()
Apply the filter.
Definition: hor_search.cpp:58
Filter interface.
Definition: filter.h:35
FilterHSearch(ColorModel *cm, color_t what)
Constructor.
Definition: hor_search.cpp:49