#include <PreviewDifferenceTool.h>
Inheritance diagram for PreviewDifferenceTool:

Public Member Functions | |
| PreviewDifferenceTool (ToolHelper *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. | |
| void | BeforeDrawImagesEvent () |
| Draw using OpenGL anything the tool requires underneath the images. | |
| 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 | |
Private Attributes | |
| unsigned int | image_number |
| bool | over_image |
It is meant to be the fast preview's equivalent of the accurate preview's difference mode.
Definition at line 34 of file PreviewDifferenceTool.h.
|
|
Definition at line 40 of file PreviewDifferenceTool.cpp. |
|
|
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 56 of file PreviewDifferenceTool.cpp. References CheckOpenGLCanDifference(), ToolHelper::NotifyMe(), and over_image. |
|
|
Draw (using OpenGL) images above the others.
Reimplemented from Tool. Definition at line 110 of file PreviewDifferenceTool.cpp. References TextureManager::BindTexture(), TextureManager::DisableTexture(), HuginBase::SrcPanoImage::getExposure(), VisualizationState::GetMeshDisplayList(), HuginBase::Panorama::getOptions(), ToolHelper::GetPanoramaPtr(), TextureManager::GetPhotometricCorrect(), ViewState::GetSrcImage(), ViewState::GetTextureManager(), ToolHelper::GetViewStatePtr(), ToolHelper::GetVisualizationStatePtr(), image_number, and vigra_ext::pow(). |
|
|
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).
Reimplemented from Tool. Definition at line 167 of file PreviewDifferenceTool.cpp. |
|
|
Draw using OpenGL anything the tool requires underneath the images.
Reimplemented from Tool. Definition at line 160 of file PreviewDifferenceTool.cpp. References TextureManager::DrawImage(), VisualizationState::GetMeshDisplayList(), ViewState::GetTextureManager(), ToolHelper::GetViewStatePtr(), ToolHelper::GetVisualizationStatePtr(), and image_number. |
|
|
check, if graphic card supports the necessary modes for difference tool call this procedure first, when there is a OpenGL context
Definition at line 47 of file PreviewDifferenceTool.cpp. Referenced by Activate(), and GLPreviewFrame::FillBlendChoice(). |
|
|
Notify when the images directly underneath the mouse pointer have changed. It is monitored by the PreviewToolHelper. Reimplemented from Tool. Definition at line 70 of file PreviewDifferenceTool.cpp. References ToolHelper::DoNotNotifyMe(), ToolHelper::DoNotNotifyMeBeforeDrawing(), VisualizationState::ForceRequireRedraw(), ToolHelper::GetImageNumbersUnderMouse(), ToolHelper::GetVisualizationStatePtr(), image_number, ToolHelper::NotifyMe(), ToolHelper::NotifyMeBeforeDrawing(), over_image, and VisualizationState::Redraw(). |
|
|
Definition at line 49 of file PreviewDifferenceTool.h. Referenced by AfterDrawImagesEvent(), BeforeDrawImagesEvent(), and ImagesUnderMouseChangedEvent(). |
|
|
Definition at line 50 of file PreviewDifferenceTool.h. Referenced by Activate(), and ImagesUnderMouseChangedEvent(). |
1.3.9.1