Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PreviewColorPickerTool Class Reference

The PreviewColorPickerTool allows to select a region in the panorama which should be grey. More...

#include <PreviewColorPickerTool.h>

Inheritance diagram for PreviewColorPickerTool:
Inheritance graph

Public Member Functions

 PreviewColorPickerTool (ToolHelper *helper)
 constructor More...
 
void Activate ()
 Switch on a tool. More...
 
void MouseButtonEvent (wxMouseEvent &e)
 process mouse button events More...
 
- Public Member Functions inherited from Tool
 Tool (ToolHelper *helper)
 Construct keeping a pointer to a PreviewToolHelper. More...
 
virtual ~Tool ()
 
virtual void MouseMoveEvent (double x, double y, wxMouseEvent &e)
 Notify when the mouse pointer has moved over the panorama preview. More...
 
virtual void MouseWheelEvent (wxMouseEvent &e)
 Notify of a mouse wheel event on the panorama preview. More...
 
virtual void ImagesUnderMouseChangedEvent ()
 Notify when the images directly underneath the mouse pointer have changed. More...
 
virtual void KeypressEvent (int keycode, int modifiers, bool pressed)
 Notify of a Keypress event. More...
 
virtual void BeforeDrawImagesEvent ()
 Draw using OpenGL anything the tool requires underneath the images. More...
 
virtual void AfterDrawImagesEvent ()
 Draw (using OpenGL) images above the others. More...
 
virtual void ReallyAfterDrawImagesEvent ()
 Draw (using OpenGL) the overlays, e.g. crop highlights, guides. More...
 
virtual bool BeforeDrawImageEvent (unsigned int image)
 Draw what the tool requires just before a given image is drawn. More...
 
virtual void AfterDrawImageEvent (unsigned int image)
 Notification called just after the image was drawn normally. More...
 
virtual void MarkDirty ()
 

Private Member Functions

void CalcCorrection (hugin_utils::FDiff2D pos)
 
void CalcCorrectionForImage (unsigned int i, vigra::Point2D pos)
 

Private Attributes

double m_red
 
double m_blue
 
unsigned int m_count
 

Additional Inherited Members

- Protected Attributes inherited from Tool
ToolHelperhelper
 The PreviewToolHelper that uses the same preview window and panorama as the tool should. More...
 

Detailed Description

The PreviewColorPickerTool allows to select a region in the panorama which should be grey.

In the selected region it calculates the new red multiplier and blue multiplier to get a grey region.

Definition at line 36 of file PreviewColorPickerTool.h.

Constructor & Destructor Documentation

PreviewColorPickerTool::PreviewColorPickerTool ( ToolHelper helper)
inlineexplicit

constructor

Definition at line 40 of file PreviewColorPickerTool.h.

Member Function Documentation

void PreviewColorPickerTool::Activate ( )
virtual

Switch on a tool.

Inherited classes also register events they want to respond to with the PreviewToolHelper. As events are lost when the tool is deactivated without notification to the PreviewTool, things from the last activation can be cleaned up here too.

Implements Tool.

Definition at line 42 of file PreviewColorPickerTool.cpp.

References Tool::helper, ToolHelper::MOUSE_PRESS, ToolHelper::NotifyMe(), and ToolHelper::SetStatusMessage().

void PreviewColorPickerTool::CalcCorrection ( hugin_utils::FDiff2D  pos)
private
void PreviewColorPickerTool::CalcCorrectionForImage ( unsigned int  i,
vigra::Point2D  pos 
)
private
void PreviewColorPickerTool::MouseButtonEvent ( wxMouseEvent &  e)
virtual

Member Data Documentation

double PreviewColorPickerTool::m_blue
private
unsigned int PreviewColorPickerTool::m_count
private
double PreviewColorPickerTool::m_red
private

The documentation for this class was generated from the following files: