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

 NONE = 0
 THIRDS = 1
 GOLDENRATIO = 2
 DIAGONAL = 3
 DIAGONAL_METHOD = 4
 TRIANGLE_DOWN = 5
 TRIANGLE_UP = 6
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

Enumerator:
NONE 
THIRDS 
GOLDENRATIO 
DIAGONAL 
DIAGONAL_METHOD 
TRIANGLE_DOWN 
TRIANGLE_UP 

Definition at line 37 of file PreviewGuideTool.h.


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 Tool::helper, ToolHelper::NotifyMe(), and ToolHelper::REALLY_DRAW_OVER_IMAGES.

const PreviewGuideTool::Guides PreviewGuideTool::GetGuideStyle (  )  const

returns the current guide style

Definition at line 201 of file PreviewGuideTool.cpp.

References m_guide.

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, 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 195 of file PreviewGuideTool.cpp.

References ToolHelper::GetViewStatePtr(), Tool::helper, 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 GetGuideStyle(), ReallyAfterDrawImagesEvent(), and SetGuideStyle().


The documentation for this class was generated from the following files:
Generated on 31 Oct 2014 for Hugintrunk by  doxygen 1.4.7