Hugintrunk
0.1
|
The PreviewCropTool shows lines between the ends of control points in the fast preview. More...
#include <PreviewControlPointTool.h>
Public Member Functions | |
PreviewControlPointTool (ToolHelper *helper) | |
void | Activate () |
Switch on a tool. More... | |
void | AfterDrawImagesEvent () |
Draw (using OpenGL) images above the others. 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 | 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 | BeforeDrawImagesEvent () |
Draw using OpenGL anything the tool requires underneath the images. 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 | MakeTransforms () |
Private Attributes | |
HuginBase::PTools::Transform * | transforms |
GreatCircles | m_greatCircles |
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... | |
The PreviewCropTool shows lines between the ends of control points in the fast preview.
Regular control points are drawn in orange, blue control points are drawn in sky blue.
Definition at line 44 of file PreviewControlPointTool.h.
|
explicit |
Definition at line 41 of file PreviewControlPointTool.cpp.
References ToolHelper::GetVisualizationStatePtr(), m_greatCircles, and GreatCircles::setVisualizationState().
|
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 48 of file PreviewControlPointTool.cpp.
References ToolHelper::DRAW_OVER_IMAGES, Tool::helper, and ToolHelper::NotifyMe().
|
virtual |
Draw (using OpenGL) images above the others.
Reimplemented from Tool.
Definition at line 54 of file PreviewControlPointTool.cpp.
References hugin_utils::ControlPointErrorColour(), TextureManager::DisableTexture(), GreatCircles::drawLineFromSpherical(), HuginBase::ControlPoint::error, HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), ToolHelper::GetPanoramaPtr(), ViewState::GetTextureManager(), ToolHelper::GetViewStatePtr(), Tool::helper, HuginBase::ControlPoint::image1Nr, HuginBase::ControlPoint::image2Nr, celeste::line, m_greatCircles, MakeTransforms(), HuginBase::ControlPoint::mode, HuginBase::PTools::Transform::transformImgCoord(), transforms, HuginBase::ControlPoint::x1, HuginBase::ControlPoint::x2, HuginBase::ControlPoint::X_Y, HuginBase::ControlPoint::y1, and HuginBase::ControlPoint::y2.
|
private |
Definition at line 99 of file PreviewControlPointTool.cpp.
References HuginBase::PTools::Transform::createInvTransform(), HuginBase::Panorama::getNrOfImages(), ToolHelper::GetPanoramaPtr(), VisualizationState::GetSrcImage(), ToolHelper::GetVisualizationStatePtr(), Tool::helper, HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setWidth(), and transforms.
Referenced by AfterDrawImagesEvent().
|
private |
Definition at line 53 of file PreviewControlPointTool.h.
Referenced by AfterDrawImagesEvent(), and PreviewControlPointTool().
|
private |
Definition at line 51 of file PreviewControlPointTool.h.
Referenced by AfterDrawImagesEvent(), and MakeTransforms().