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

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

#include <PreviewGuideTool.h>

Inheritance diagram for PreviewGuideTool:
Inheritance graph

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
ToolHelperhelper
 The PreviewToolHelper that uses the same preview window and panorama as the tool should. More...
 

Detailed Description

Draws guide lines over the panorama in fast preview window.

Definition at line 34 of file PreviewGuideTool.h.

Member Enumeration Documentation

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

constructor

Definition at line 37 of file PreviewGuideTool.cpp.

Member Function Documentation

void PreviewGuideTool::Activate ( )
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.

void PreviewGuideTool::ReallyAfterDrawImagesEvent ( )
virtual
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().

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: