[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PreviewLayoutLinesTool Class Reference

The PreviewLayoutLinesTool handles the lines connecting images in the layout view of the fast preview. More...

#include <PreviewLayoutLinesTool.h>

Inheritance diagram for PreviewLayoutLinesTool:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PreviewLayoutLinesTool (PreviewToolHelper *helper)
 ~PreviewLayoutLinesTool ()
void panoramaChanged (HuginBase::PanoramaData &pano)
 This just sets a flag when the panorama is changed.
void panoramaImagesChanged (HuginBase::PanoramaData &, const HuginBase::UIntSet &)
void Activate ()
 Start using the PreviewLayoutLinesTool.
virtual void MouseMoveEvent (double x, double y, wxMouseEvent &e)
 Revaluate the lines under the mouse pointer when it moves.
void MouseButtonEvent (wxMouseEvent &e)
 Capture clicks on lines, and load up the relavent images in the control point tab.
void BeforeDrawImagesEvent ()
 Draw all the lines between images that indicate the quality and quantity of control points.
bool BeforeDrawImageEvent (unsigned int image)
 Draw what the tool requires just before a given image is drawn.
void AfterDrawImagesEvent ()
 Draw a border over the images when a line is hilighted, similar to the identify tool.

Detailed Description

The PreviewLayoutLinesTool handles the lines connecting images in the layout view of the fast preview.

These are its functions:

  1. Draw the coloured lines indicating control point error behind the images.
  2. Draw the grey lines for images overlapping that share no control points.
  3. Interprate clicks on lines and load up the relevant pair in the control point tab.

Todo:
Update line information when control point informations changes, and only when it changes. The main preview system doesn't redraw when control points change. This should save on the draw time, since we don't always need to examine the control points to draw the preview.


Constructor & Destructor Documentation

PreviewLayoutLinesTool::PreviewLayoutLinesTool PreviewToolHelper helper  ) 
 

PreviewLayoutLinesTool::~PreviewLayoutLinesTool  ) 
 


Member Function Documentation

void PreviewLayoutLinesTool::Activate  )  [virtual]
 

Start using the PreviewLayoutLinesTool.

Implements PreviewTool.

void PreviewLayoutLinesTool::AfterDrawImagesEvent  )  [virtual]
 

Draw a border over the images when a line is hilighted, similar to the identify tool.

Reimplemented from PreviewTool.

bool PreviewLayoutLinesTool::BeforeDrawImageEvent unsigned int  image  )  [virtual]
 

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).

Returns:
false if the tool does not want the image drawn normally, or true when the image should be drawn normally.

Reimplemented from PreviewTool.

void PreviewLayoutLinesTool::BeforeDrawImagesEvent  )  [virtual]
 

Draw all the lines between images that indicate the quality and quantity of control points.

Reimplemented from PreviewTool.

void PreviewLayoutLinesTool::MouseButtonEvent wxMouseEvent &  e  )  [virtual]
 

Capture clicks on lines, and load up the relavent images in the control point tab.

Reimplemented from PreviewTool.

void PreviewLayoutLinesTool::MouseMoveEvent double  x,
double  y,
wxMouseEvent &  e
[virtual]
 

Revaluate the lines under the mouse pointer when it moves.

Reimplemented from PreviewTool.

void PreviewLayoutLinesTool::panoramaChanged HuginBase::PanoramaData pano  ) 
 

This just sets a flag when the panorama is changed.

When we next redraw, we recalculate the statistics for the lines if the flag is set.

void PreviewLayoutLinesTool::panoramaImagesChanged HuginBase::PanoramaData ,
const HuginBase::UIntSet
 


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

Generated on Mon Sep 20 01:01:35 2010 for Hugintrunk by doxygen 1.3.9.1