00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLCAMERA_H__
00018 #define __TLCAMERA_H__
00019
00020
00021 #include "tlVision.h"
00022 #include "tlSource.h"
00023
00024
00025
00026
00027
00028 class tlCamera : public tlSource
00029 {
00030 protected:
00031 int Tx, Ty, Tz;
00032 int Rx, Ry, Rz;
00033 bool calibrated;
00034
00035 public:
00036 tlCamera ();
00037 virtual ~tlCamera ();
00038
00039 int setPosition (int Tx, int Ty, int Tz);
00040 int setOrientation (int Rx, int Ry, int Rz);
00041
00042 bool isCalibrated () { return calibrated; };
00043 int getTx () { return Tx; };
00044 int getTy () { return Ty; };
00045 int getTz () { return Tz; };
00046 int getRx () { return Rx; };
00047 int getRy () { return Ry; };
00048 int getRz () { return Rz; };
00049
00050 virtual int grab (tlImage *image) = 0;
00051 virtual int grab (tlImage *image, tlRect *rect) = 0;
00052 virtual int grabQueued (tlImage *image) = 0;
00053 virtual int grabQueued (tlImage *image, tlRect *rect) = 0;
00054 };
00055
00056 #endif
00057