GLPreviewRenderer Class Reference

subclass for the preview canvas More...

#include <GLRenderer.h>

Inheritance diagram for GLPreviewRenderer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GLPreviewRenderer (PT::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, VisualizationState *visualization_state, PreviewToolHelper *tool_helper, const wxColour backgroundColour)
vigra::Diff2D Resize (int width, int height)
 Resize the viewport because the window's dimensions have changed.
void Redraw ()

Protected Attributes

VisualizationStatem_visualization_state

Detailed Description

subclass for the preview canvas

Definition at line 84 of file GLRenderer.h.


Constructor & Destructor Documentation

GLPreviewRenderer::GLPreviewRenderer ( PT::Panorama pano,
TextureManager tex_man,
MeshManager mesh_man,
VisualizationState visualization_state,
PreviewToolHelper tool_helper,
const wxColour  backgroundColour 
)

Definition at line 68 of file GLRenderer.cpp.

References GLRenderer::m_mesh_man, GLRenderer::m_pano, GLRenderer::m_tex_man, GLRenderer::m_tool_helper, and m_visualization_state.


Member Function Documentation

void GLPreviewRenderer::Redraw (  )  [virtual]

Implements GLRenderer.

Definition at line 145 of file GLRenderer.cpp.

References ToolHelper::AfterDrawImageNumber(), ToolHelper::AfterDrawImages(), ToolHelper::BeforeDrawImageNumber(), ToolHelper::BeforeDrawImages(), TextureManager::Begin(), TextureManager::DisableTexture(), TextureManager::DrawImage(), TextureManager::End(), MeshManager::GetDisplayList(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), ViewState::GetOptions(), HuginBase::PanoramaOptions::getROI(), VisualizationState::getViewState(), GLRenderer::height_o, GLRenderer::m_background_color, GLRenderer::m_mesh_man, GLRenderer::m_pano, GLRenderer::m_tex_man, GLRenderer::m_tool_helper, m_visualization_state, and GLRenderer::width_o.

vigra::Diff2D GLPreviewRenderer::Resize ( int  width,
int  height 
) [virtual]

Resize the viewport because the window's dimensions have changed.

Returns:
the number of screen pixels from the corner of the widget to the start of the panorma, both horizontally and vertically.
Parameters:
width the width of the widget in screen pixels.
height the height of the widget in screen pixels.

Implements GLRenderer.

Definition at line 102 of file GLRenderer.cpp.

References HuginBase::PanoramaOptions::getHeight(), ViewState::GetOptions(), VisualizationState::getViewState(), HuginBase::PanoramaOptions::getWidth(), GLRenderer::height, GLRenderer::height_o, m_visualization_state, VisualizationState::SetScale(), VisualizationState::SetVisibleArea(), GLRenderer::width, and GLRenderer::width_o.


Member Data Documentation

VisualizationState* GLPreviewRenderer::m_visualization_state [protected]

Definition at line 95 of file GLRenderer.h.

Referenced by GLPreviewRenderer(), Redraw(), and Resize().


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