00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLSOURCE_H__
00018 #define __TLSOURCE_H__
00019
00020
00021 #include "tlVision.h"
00022
00023
00024 #define TL_MAX_SOURCE 10
00025
00026
00027
00028
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