Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PreviewDifferenceTool.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
22 #ifndef _PREVIEWDIFFERENCETOOL_H
23 #define _PREVIEWDIFFERENCETOOL_H
24 
25 #include "Tool.h"
26 
35 {
36 public:
42  static bool CheckOpenGLCanDifference();
43  void Activate();
45  void AfterDrawImagesEvent();
46  void BeforeDrawImagesEvent();
47  bool BeforeDrawImageEvent(unsigned int image);
48 private:
49  unsigned int image_number;
50  bool over_image;
51 };
52 
53 #endif
54 
void Activate()
Switch on a tool.
PreviewDifferenceTool(ToolHelper *helper)
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition: Tool.h:102
Finds the topmost image underneath the mouse pontier, cancel it's normal drawing, and then subtract i...
Definition: Tool.h:42
bool BeforeDrawImageEvent(unsigned int image)
Draw what the tool requires just before a given image is drawn.
void ImagesUnderMouseChangedEvent()
Notify when the images directly underneath the mouse pointer have changed.
void BeforeDrawImagesEvent()
Draw using OpenGL anything the tool requires underneath the images.
static bool CheckOpenGLCanDifference()
check, if graphic card supports the necessary modes for difference tool call this procedure first...
void AfterDrawImagesEvent()
Draw (using OpenGL) images above the others.