TLIB documentation
 

tlCamera.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 __TLCAMERA_H__
00018 #define __TLCAMERA_H__
00019 
00020 
00021 #include "tlVision.h"
00022 #include "tlSource.h"
00023 
00024 
00025 
00026 
00027 // interface
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 


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.