PreviewProjectionGridTool Class Reference

#include <ProjectionGridTool.h>

Inheritance diagram for PreviewProjectionGridTool:

Inheritance graph
List of all members.

Public Member Functions

void Activate ()
 Switch on a tool.
 PreviewProjectionGridTool (PreviewToolHelper *helper)
void createMesh ()
void AfterDrawImagesEvent ()
 Draw (using OpenGL) images above the others.
void BeforeDrawImagesEvent ()
 Draw using OpenGL anything the tool requires underneath the images.

Detailed Description

Definition at line 49 of file ProjectionGridTool.h.

Constructor & Destructor Documentation

PreviewProjectionGridTool::PreviewProjectionGridTool ( PreviewToolHelper helper  )  [inline, explicit]

Definition at line 53 of file ProjectionGridTool.h.

Member Function Documentation

void PreviewProjectionGridTool::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 56 of file ProjectionGridTool.cpp.

References ToolHelper::DRAW_OVER_IMAGES, ToolHelper::DRAW_UNDER_IMAGES, Tool::helper, and ToolHelper::NotifyMe().

void PreviewProjectionGridTool::AfterDrawImagesEvent (  )  [virtual]

Draw (using OpenGL) images above the others.

Reimplemented from Tool.

Definition at line 66 of file ProjectionGridTool.cpp.

References MeshManager::MeshInfo::CallList(), createMesh(), ProjectionGridTool::createTexture(), DEBUG_DEBUG, ViewState::GetSupportMultiTexture(), ToolHelper::GetViewStatePtr(), Tool::helper, ProjectionGridTool::mesh_info, ProjectionGridTool::texture_created, ProjectionGridTool::texture_num, and MeshManager::MeshInfo::Update().

void PreviewProjectionGridTool::BeforeDrawImagesEvent (  )  [virtual]

Draw using OpenGL anything the tool requires underneath the images.

Reimplemented from Tool.

Definition at line 62 of file ProjectionGridTool.cpp.

void PreviewProjectionGridTool::createMesh (  ) 

Definition at line 220 of file ProjectionGridTool.cpp.

References HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, ToolHelper::GetPanoramaPtr(), ToolHelper::GetVisualizationStatePtr(), Tool::helper, ProjectionGridTool::mesh_info, HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setProjection(), and HuginBase::SrcPanoImage::setSize().

Referenced by AfterDrawImagesEvent().

The documentation for this class was generated from the following files:
Generated on 18 Jan 2017 for Hugintrunk by  doxygen 1.4.7