Hugintrunk
0.1
|
For projections where the output range is limited, but the approximatly remaped images can extend this, we mask out the off-panorama bits with a stencil. More...
#include <PreviewPanoMaskTool.h>
Public Member Functions | |
PreviewPanoMaskTool (PreviewToolHelper *helper) | |
void | Activate () |
Switch on a tool. More... | |
void | BeforeDrawImagesEvent () |
Draw using OpenGL anything the tool requires underneath the images. More... | |
void | ReallyAfterDrawImagesEvent () |
Draw (using OpenGL) the overlays, e.g. crop highlights, guides. More... | |
Public Member Functions inherited from PreviewTool | |
PreviewTool (PreviewToolHelper *helper) | |
virtual | ~PreviewTool () |
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 | MouseButtonEvent (wxMouseEvent &e) |
Notify of a mouse button press on 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 | AfterDrawImagesEvent () |
Draw (using OpenGL) images above the others. 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 () |
Additional Inherited Members | |
Protected Attributes inherited from Tool | |
ToolHelper * | helper |
The PreviewToolHelper that uses the same preview window and panorama as the tool should. More... | |
For projections where the output range is limited, but the approximatly remaped images can extend this, we mask out the off-panorama bits with a stencil.
Definition at line 31 of file PreviewPanoMaskTool.h.
|
explicit |
Definition at line 33 of file PreviewPanoMaskTool.cpp.
|
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 38 of file PreviewPanoMaskTool.cpp.
References Tool::helper, ToolHelper::NotifyMe(), and ToolHelper::REALLY_DRAW_OVER_IMAGES.
|
virtual |
Draw using OpenGL anything the tool requires underneath the images.
Reimplemented from Tool.
Definition at line 46 of file PreviewPanoMaskTool.cpp.
|
virtual |
Draw (using OpenGL) the overlays, e.g. crop highlights, guides.
Reimplemented from Tool.
Definition at line 50 of file PreviewPanoMaskTool.cpp.
References HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC, OutputProjectionInfo::AngularToImage(), TextureManager::DisableTexture(), ViewState::GetOptions(), HuginBase::PanoramaOptions::getProjection(), getSize(), ViewState::GetTextureManager(), ToolHelper::GetViewStatePtr(), Tool::helper, celeste::info(), and HuginBase::PanoramaOptions::SINUSOIDAL.