PreviewPanoMaskTool Class Reference

For projections where the output range is limited, but the approximatly remaped images can extend this, we mask out the off-panorama bits with a stencil. More...

#include <PreviewPanoMaskTool.h>

Inheritance diagram for PreviewPanoMaskTool:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PreviewPanoMaskTool (PreviewToolHelper *helper)
void Activate ()
 Switch on a tool.
void BeforeDrawImagesEvent ()
 Draw using OpenGL anything the tool requires underneath the images.
void ReallyAfterDrawImagesEvent ()
 Draw (using OpenGL) the overlays, e.g. crop highlights, guides.

Detailed Description

For projections where the output range is limited, but the approximatly remaped images can extend this, we mask out the off-panorama bits with a stencil.

Definition at line 31 of file PreviewPanoMaskTool.h.


Constructor & Destructor Documentation

PreviewPanoMaskTool::PreviewPanoMaskTool PreviewToolHelper helper  ) 
 

Definition at line 30 of file PreviewPanoMaskTool.cpp.


Member Function Documentation

void PreviewPanoMaskTool::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 35 of file PreviewPanoMaskTool.cpp.

References ToolHelper::NotifyMe().

void PreviewPanoMaskTool::BeforeDrawImagesEvent  )  [virtual]
 

Draw using OpenGL anything the tool requires underneath the images.

Reimplemented from Tool.

Definition at line 43 of file PreviewPanoMaskTool.cpp.

void PreviewPanoMaskTool::ReallyAfterDrawImagesEvent  )  [virtual]
 

Draw (using OpenGL) the overlays, e.g. crop highlights, guides.

Reimplemented from Tool.

Definition at line 47 of file PreviewPanoMaskTool.cpp.

References OutputProjectionInfo::AngularToImage(), TextureManager::DisableTexture(), ViewState::GetOptions(), HuginBase::PanoramaOptions::getProjection(), ViewState::GetTextureManager(), and ToolHelper::GetViewStatePtr().


The documentation for this class was generated from the following files:
Generated on Sun Sep 21 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1