TLIB documentation
 

tlSource.h

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////////////////
00002 //
00003 //  This file is part of the TLIB computer vision library.
00004 //  Copyright (C) 2003-2008 Sebastien Grange
00005 //  Copyright (C) 2003-2007 VRAI Group, EPFL
00006 //  All rights reserved.
00007 // 
00008 //  This library is free software; you can redistribute it and/or modify
00009 //  it under the terms of the GNU General Public License("GPL") version 2
00010 //  as published by the Free Software Foundation.
00011 // 
00012 //  <http://www.tuyphon.com/tlib>
00013 //
00014 /////////////////////////////////////////////////////////////////////////////////
00015 
00016 
00017 #ifndef __TLSOURCE_H__
00018 #define __TLSOURCE_H__
00019 
00020 
00021 #include "tlVision.h"
00022 
00023 // maximum number of image sources allowed
00024 #define TL_MAX_SOURCE     10
00025 
00026 
00027 
00028 // interface
00029 class tlSource
00030 {
00031 protected:
00032   int       ID;
00033   int       width,height;
00034   tl_format format;
00035   static int count;
00036 
00037 public:
00038   tlSource  ();
00039   virtual ~tlSource ();
00040 
00041   static int getCount () { return count; }
00042 
00043   int       getWidth  () { return width;  }
00044   int       getHeight () { return height; }
00045   int       getID     () { return ID;     }
00046   tl_format getFormat () { return format; }
00047 
00048   virtual int grab        (tlImage *image)                = 0;
00049   virtual int grab        (tlImage *image, tlRect *rect)  = 0;
00050   virtual int grabQueued  (tlImage *image)                = 0;
00051   virtual int grabQueued  (tlImage *image, tlRect *rect)  = 0;
00052 };
00053 
00054 #endif
00055 


TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.