[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PreviewDifferenceTool Class Reference

Finds the topmost image underneath the mouse pontier, cancel it's normal drawing, and then subtract it from the rest of the images. More...

#include <PreviewDifferenceTool.h>

Inheritance diagram for PreviewDifferenceTool:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PreviewDifferenceTool (PreviewToolHelper *helper)
void Activate ()
 Switch on a tool.
void ImagesUnderMouseChangedEvent ()
 Notify when the images directly underneath the mouse pointer have changed.
void AfterDrawImagesEvent ()
 Draw (using OpenGL) images above the others.
bool BeforeDrawImageEvent (unsigned int image)
 Draw what the tool requires just before a given image is drawn.

Static Public Member Functions

bool CheckOpenGLCanDifference ()
 check, if graphic card supports the necessary modes for difference tool call this procedure first, when there is a OpenGL context

Detailed Description

Finds the topmost image underneath the mouse pontier, cancel it's normal drawing, and then subtract it from the rest of the images.

It is meant to be the fast preview's equivalent of the accurate preview's difference mode.

Warning:
Since the fast preview is approximate, this will show errors that don't really exist.


Constructor & Destructor Documentation

PreviewDifferenceTool::PreviewDifferenceTool PreviewToolHelper helper  ) 
 


Member Function Documentation

void PreviewDifferenceTool::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 PreviewTool.

void PreviewDifferenceTool::AfterDrawImagesEvent  )  [virtual]
 

Draw (using OpenGL) images above the others.

Reimplemented from PreviewTool.

bool PreviewDifferenceTool::BeforeDrawImageEvent unsigned int  image  )  [virtual]
 

Draw what the tool requires just before a given image is drawn.

This can be used to modify how the images are drawn, prevent drawing of the image, or change the order of the image drawing (with another event to draw the image when it is needed).

Returns:
false if the tool does not want the image drawn normally, or true when the image should be drawn normally.

Reimplemented from PreviewTool.

bool PreviewDifferenceTool::CheckOpenGLCanDifference  )  [static]
 

check, if graphic card supports the necessary modes for difference tool call this procedure first, when there is a OpenGL context

Returns:
true, if graphic card supports difference mode

void PreviewDifferenceTool::ImagesUnderMouseChangedEvent  )  [virtual]
 

Notify when the images directly underneath the mouse pointer have changed.

It is monitored by the PreviewToolHelper.

Reimplemented from PreviewTool.


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

Generated on Mon Sep 20 01:01:34 2010 for Hugintrunk by doxygen 1.3.9.1