PreviewColorPickerTool.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00009 /*  This program is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU General Public
00011  *  License as published by the Free Software Foundation; either
00012  *  version 2 of the License, or (at your option) any later version.
00013  *
00014  *  This software is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  *  General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public
00020  *  License along with this software; if not, write to the Free Software
00021  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022  *
00023  */
00024 
00025 #ifndef _PREVIEWCOLORPICKERTOOL_H
00026 #define _PREVIEWCOLORPICKERTOOL_H
00027 
00028 #include "Tool.h"
00029 #include "hugin_utils/utils.h"
00030 
00036 class PreviewColorPickerTool : public Tool
00037 {
00038 public:
00040     PreviewColorPickerTool(ToolHelper *helper):Tool(helper) {};
00041     void Activate();
00043     void MouseButtonEvent(wxMouseEvent &e);
00044 private:
00045     double m_red;
00046     double m_blue;
00047     unsigned int m_count;
00048     void CalcCorrection(hugin_utils::FDiff2D pos);
00049     void CalcCorrectionForImage(unsigned int i,vigra::Point2D pos);
00050 };
00051 
00052 #endif
00053 

Generated on Wed Jul 16 01:25:35 2014 for Hugintrunk by  doxygen 1.3.9.1