Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

draw_Filter.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002     Phission :
00003         Realtime Vision Processing System
00004 
00005     Copyright (C) 2003-2006 Philip D.S. Thoren (pthoren@cs.uml.edu)
00006     University of Massachusetts at Lowell,
00007     Laboratory for Artificial Intelligence and Robotics
00008 
00009  ---------------------------------------------------------------------------
00010     <Add other copyrights here> 
00011  ---------------------------------------------------------------------------
00012 
00013     This file is part of Phission.
00014 
00015     Phission is free software; you can redistribute it and/or modify
00016     it under the terms of the GNU Lesser General Public License as published by
00017     the Free Software Foundation; either version 2 of the License, or
00018     (at your option) any later version.
00019 
00020     Phission is distributed in the hope that it will be useful,
00021     but WITHOUT ANY WARRANTY; without even the implied warranty of
00022     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023     GNU Lesser General Public License for more details.
00024 
00025     You should have received a copy of the GNU Lesser General Public License
00026     along with Phission; if not, write to the Free Software
00027     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00028 
00029  ---------------------------------------------------------------------------*/
00030 #ifndef _DRAW_FILTER_H
00031 #define _DRAW_FILTER_H
00032 
00038 #include <phFilter.h>
00039 
00045 /* ------------------------------------------------------------------------ */
00070 PHAPI(class) draw_Filter : public phFilter
00071 {
00072 private:
00076     phDrawing m_drawing;
00077 
00078 protected:
00083     int filter();
00084 
00085 public:
00091     draw_Filter( phDrawing drawing = NULL);
00092     ~draw_Filter();
00093     
00102     int set( phDrawing drawing );
00103     
00111     phFilter *cloneFilter();
00112 
00113     /* transparency on a scale of 0-100 */
00114     void add( phPoint       point,
00115               phColor       color,
00116               uint8_t       size    = 1,
00117               uint8_t       transparency = 0 );
00118     void add( phLine        line,   
00119               phColor       color,
00120               uint8_t       size    = 1,
00121               uint8_t       transparency = 0 );
00122     void add( phCircle      circle,
00123               phColor       color,
00124               uint8_t       size    = 1,
00125               uint8_t       fill    = phDrawingHollow,
00126               uint8_t       transparency = 0 );
00127     void add( phRectangle   rectangle,
00128               phColor       color,
00129               uint8_t       size    = 1,
00130               uint8_t       fill    = phDrawingHollow,
00131               uint8_t       transparency = 0 );
00132     void add( phTriangle    triangle,
00133               phColor       color,
00134               uint8_t       size    = 1,
00135               uint8_t       fill    = phDrawingHollow,
00136               uint8_t       transparency = 0 );
00137     void add( phCross       cross,
00138               phColor       color,
00139               uint8_t       size    = 1,
00140               uint8_t       transparency = 0 );
00141 };
00142  /* ImageProcessing */
00144 
00145 #endif /* _DRAW_FILTER_H */
00146 




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:08 2007 for phission by  doxygen 1.4.4