Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PreviewControlPointTool Class Reference

The PreviewCropTool shows lines between the ends of control points in the fast preview. More...

#include <PreviewControlPointTool.h>

Inheritance diagram for PreviewControlPointTool:
Inheritance graph

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::Transformtransforms
 
GreatCircles m_greatCircles
 

Additional Inherited Members

- Protected Attributes inherited from Tool
ToolHelperhelper
 The PreviewToolHelper that uses the same preview window and panorama as the tool should. More...
 

Detailed Description

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.

Todo:
: Delete control points when clicked and show the control point window on right click / middle click / modifier-key click? Perhaps not - not responding to user input allows us to show the control points while using the interactive tools.

Definition at line 44 of file PreviewControlPointTool.h.

Constructor & Destructor Documentation

PreviewControlPointTool::PreviewControlPointTool ( ToolHelper helper)
explicit

Member Function Documentation

void PreviewControlPointTool::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 Tool.

Definition at line 48 of file PreviewControlPointTool.cpp.

References ToolHelper::DRAW_OVER_IMAGES, Tool::helper, and ToolHelper::NotifyMe().

void PreviewControlPointTool::AfterDrawImagesEvent ( )
virtual
void PreviewControlPointTool::MakeTransforms ( )
private

Member Data Documentation

GreatCircles PreviewControlPointTool::m_greatCircles
private

Definition at line 53 of file PreviewControlPointTool.h.

Referenced by AfterDrawImagesEvent(), and PreviewControlPointTool().

HuginBase::PTools::Transform* PreviewControlPointTool::transforms
private

Definition at line 51 of file PreviewControlPointTool.h.

Referenced by AfterDrawImagesEvent(), and MakeTransforms().


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