|
Hugintrunk
0.1
|
Draws guide lines over the panorama in fast preview window. More...
#include <PreviewGuideTool.h>

Public Types | |
| enum | Guides { NONE =0, THIRDS =1, GOLDENRATIO =2, DIAGONAL =3, DIAGONAL_METHOD =4, TRIANGLE_DOWN =5, TRIANGLE_UP =6 } |
Public Member Functions | |
| PreviewGuideTool (PreviewToolHelper *helper) | |
| constructor More... | |
| void | Activate () |
| activate the tool More... | |
| void | ReallyAfterDrawImagesEvent () |
| draws the lines More... | |
| void | SetGuideStyle (const Guides newGuideStyle) |
| sets the guide style to the given style More... | |
| const Guides | GetGuideStyle () const |
| returns the current guide style 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 | BeforeDrawImagesEvent () |
| Draw using OpenGL anything the tool requires underneath the images. 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 () |
Private Attributes | |
| Guides | m_guide |
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... | |
Draws guide lines over the panorama in fast preview window.
Definition at line 34 of file PreviewGuideTool.h.
| Enumerator | |
|---|---|
| NONE | |
| THIRDS | |
| GOLDENRATIO | |
| DIAGONAL | |
| DIAGONAL_METHOD | |
| TRIANGLE_DOWN | |
| TRIANGLE_UP | |
Definition at line 37 of file PreviewGuideTool.h.
|
explicit |
constructor
Definition at line 37 of file PreviewGuideTool.cpp.
|
virtual |
activate the tool
Implements Tool.
Definition at line 41 of file PreviewGuideTool.cpp.
References Tool::helper, ToolHelper::NotifyMe(), and ToolHelper::REALLY_DRAW_OVER_IMAGES.
| const PreviewGuideTool::Guides PreviewGuideTool::GetGuideStyle | ( | ) | const |
returns the current guide style
Definition at line 206 of file PreviewGuideTool.cpp.
References m_guide.
|
virtual |
draws the lines
Reimplemented from Tool.
Definition at line 164 of file PreviewGuideTool.cpp.
References DIAGONAL, DIAGONAL_METHOD, DrawDiagonal(), DrawDiagonalMethod(), DrawGoldenRatio(), DrawThirds(), DrawTriangle(), ViewState::GetOptions(), HuginBase::PanoramaOptions::getROI(), ToolHelper::GetViewStatePtr(), GOLDENRATIO, Tool::helper, m_guide, NONE, THIRDS, TRIANGLE_DOWN, and TRIANGLE_UP.
| void PreviewGuideTool::SetGuideStyle | ( | const Guides | newGuideStyle | ) |
sets the guide style to the given style
Definition at line 200 of file PreviewGuideTool.cpp.
References ToolHelper::GetViewStatePtr(), Tool::helper, m_guide, and ViewState::Redraw().
Referenced by GLPreviewFrame::MakePreviewTools(), and GLPreviewFrame::OnGuideChanged().
|
private |
Definition at line 58 of file PreviewGuideTool.h.
Referenced by GetGuideStyle(), ReallyAfterDrawImagesEvent(), and SetGuideStyle().
1.8.5