color.h
00001 00002 /*************************************************************************** 00003 * color.h - Abstract class defining a camera color controller 00004 * 00005 * Created: Wed Apr 22 11:19:04 2009 00006 * Copyright 2009 Tobias Kellner 00007 * 2005-2009 Tim Niemueller [www.niemueller.de] 00008 * 00009 ****************************************************************************/ 00010 00011 /* This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. A runtime exception applies to 00015 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU Library General Public License for more details. 00021 * 00022 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00023 */ 00024 00025 #ifndef __FIREVISION_CAMS_CONTROL_COLOR_H_ 00026 #define __FIREVISION_CAMS_CONTROL_COLOR_H_ 00027 00028 #include <cams/control/control.h> 00029 00030 class CameraControlColor : virtual public CameraControl 00031 { 00032 public: 00033 virtual ~CameraControlColor(); 00034 00035 virtual bool auto_gain() = 0; 00036 virtual void set_auto_gain(bool enabled) = 0; 00037 virtual bool auto_white_balance() = 0; 00038 virtual void set_auto_white_balance(bool enabled) = 0; 00039 virtual bool auto_exposure() = 0; 00040 virtual void set_auto_exposure(bool enabled) = 0; 00041 virtual void set_auto_all(bool enabled); 00042 00043 virtual int red_balance() = 0; 00044 virtual void set_red_balance(int red_balance) = 0; 00045 virtual int blue_balance() = 0; 00046 virtual void set_blue_balance(int blue_balance) = 0; 00047 00048 virtual int u_balance() = 0; 00049 virtual void set_u_balance(int u_balance) = 0; 00050 virtual int v_balance() = 0; 00051 virtual void set_v_balance(int v_balance) = 0; 00052 00053 virtual unsigned int brightness() = 0; 00054 virtual void set_brightness(unsigned int brightness) = 0; 00055 virtual unsigned int contrast() = 0; 00056 virtual void set_contrast(unsigned int contrast) = 0; 00057 virtual unsigned int saturation() = 0; 00058 virtual void set_saturation(unsigned int saturation) = 0; 00059 virtual int hue() = 0; 00060 virtual void set_hue(int hue) = 0; 00061 virtual unsigned int exposure() = 0; 00062 virtual void set_exposure(unsigned int exposure) = 0; 00063 virtual unsigned int gain() = 0; 00064 virtual void set_gain(unsigned int gain) = 0; 00065 }; 00066 00067 #endif // __FIREVISION_CAMS_CONTROL_COLOR_H_

