Fawkes API  Fawkes Development Version
roidraw.h
1 
2 /***************************************************************************
3  * roidraw.h - Header of ROI draw filter
4  *
5  * Created: Thu Jul 14 15:59:22 2005
6  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef __FIREVISION_FILTER_ROIDRAW_H_
25 #define __FIREVISION_FILTER_ROIDRAW_H_
26 
27 #include <fvfilters/filter.h>
28 #include <list>
29 
30 namespace firevision {
31 #if 0 /* just to make Emacs auto-indent happy */
32 }
33 #endif
34 
35 class ROI;
36 class Drawer;
37 
38 class FilterROIDraw : public Filter
39 {
40  public: // Typedefs
41  /** Defines the possible border styles to display a ROI */
42  typedef enum {
43  INVERTED, /**< Displays border with inverted Y-value */
44  DASHED_HINT /**< Displays border dashed black and color of hint*/
46 
47  public:
48  FilterROIDraw(const std::list<ROI> *rois = 0, border_style_t style = INVERTED);
49  virtual ~FilterROIDraw();
50 
51  virtual void apply();
52 
53  void set_rois(const std::list<ROI> *rois);
54  void set_style(border_style_t style);
55 
56  private:
57  void draw_roi(const ROI *roi);
58 
59  const std::list<ROI> *__rois;
60  Drawer *__drawer;
61  border_style_t __border_style;
62 };
63 
64 } // end namespace firevision
65 
66 #endif
Displays border with inverted Y-value.
Definition: roidraw.h:43
Draw to an image.
Definition: drawer.h:34
ROI Drawing filter.
Definition: roidraw.h:38
Region of interest.
Definition: roi.h:58
Displays border dashed black and color of hint.
Definition: roidraw.h:44
Filter interface.
Definition: filter.h:35
FilterROIDraw(const std::list< ROI > *rois=0, border_style_t style=INVERTED)
Constructor.
Definition: roidraw.cpp:45
virtual ~FilterROIDraw()
Destructor.
Definition: roidraw.cpp:54
virtual void apply()
Apply the filter.
Definition: roidraw.cpp:124
border_style_t
Defines the possible border styles to display a ROI.
Definition: roidraw.h:42
void set_rois(const std::list< ROI > *rois)
Set ROIs.
Definition: roidraw.cpp:143
void set_style(border_style_t style)
Sets the preferred style.
Definition: roidraw.cpp:153