PreviewGuideTool Class Reference

Draws guide lines over the panorama in fast preview window. More...

#include <PreviewGuideTool.h>

Inheritance diagram for PreviewGuideTool:

Inheritance graph
[legend]
List of all members.

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
void Activate ()
 activate the tool
void ReallyAfterDrawImagesEvent ()
 draws the lines
void SetGuideStyle (const Guides newGuideStyle)
 sets the guide style to the given style
const Guides GetGuideStyle () const
 returns the current guide style

Private Attributes

Guides m_guide

Detailed Description

Draws guide lines over the panorama in fast preview window.

Definition at line 34 of file PreviewGuideTool.h.


Member Enumeration Documentation

enum PreviewGuideTool::Guides
 

Enumeration values:
NONE 
THIRDS 
GOLDENRATIO 
DIAGONAL 
DIAGONAL_METHOD 
TRIANGLE_DOWN 
TRIANGLE_UP 

Definition at line 37 of file PreviewGuideTool.h.

Referenced by GetGuideStyle().


Constructor & Destructor Documentation

PreviewGuideTool::PreviewGuideTool PreviewToolHelper helper  ) 
 

constructor

Definition at line 34 of file PreviewGuideTool.cpp.


Member Function Documentation

void PreviewGuideTool::Activate  )  [virtual]
 

activate the tool

Implements Tool.

Definition at line 38 of file PreviewGuideTool.cpp.

References ToolHelper::NotifyMe().

const PreviewGuideTool::Guides PreviewGuideTool::GetGuideStyle  )  const
 

returns the current guide style

Definition at line 201 of file PreviewGuideTool.cpp.

References Guides.

void PreviewGuideTool::ReallyAfterDrawImagesEvent  )  [virtual]
 

draws the lines

Reimplemented from Tool.

Definition at line 161 of file PreviewGuideTool.cpp.

References DIAGONAL, DIAGONAL_METHOD, DrawDiagonal(), DrawDiagonalMethod(), DrawGoldenRatio(), DrawThirds(), DrawTriangle(), ViewState::GetOptions(), HuginBase::PanoramaOptions::getROI(), ToolHelper::GetViewStatePtr(), GOLDENRATIO, m_guide, THIRDS, TRIANGLE_DOWN, and TRIANGLE_UP.

void PreviewGuideTool::SetGuideStyle const Guides  newGuideStyle  ) 
 

sets the guide style to the given style

Definition at line 195 of file PreviewGuideTool.cpp.

References ToolHelper::GetViewStatePtr(), m_guide, and ViewState::Redraw().

Referenced by GLPreviewFrame::MakePreviewTools(), and GLPreviewFrame::OnGuideChanged().


Member Data Documentation

Guides PreviewGuideTool::m_guide [private]
 

Definition at line 58 of file PreviewGuideTool.h.

Referenced by ReallyAfterDrawImagesEvent(), and SetGuideStyle().


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 01:25:49 2014 for Hugintrunk by  doxygen 1.3.9.1