GLPanosphereOverviewRenderer Class Reference

subclass for the panosphere overview mode More...

#include <GLRenderer.h>

Inheritance diagram for GLPanosphereOverviewRenderer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GLPanosphereOverviewRenderer (PT::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, PanosphereOverviewVisualizationState *visualization_state, PanosphereOverviewToolHelper *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

PanosphereOverviewVisualizationStatem_visualization_state

Detailed Description

subclass for the panosphere overview mode

Definition at line 101 of file GLRenderer.h.


Constructor & Destructor Documentation

GLPanosphereOverviewRenderer::GLPanosphereOverviewRenderer ( PT::Panorama pano,
TextureManager tex_man,
MeshManager mesh_man,
PanosphereOverviewVisualizationState visualization_state,
PanosphereOverviewToolHelper tool_helper,
const wxColour  backgroundColour 
)

Definition at line 79 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 GLPanosphereOverviewRenderer::Redraw (  )  [virtual]

Implements GLRenderer.

Definition at line 221 of file GLRenderer.cpp.

References ToolHelper::AfterDrawImageNumber(), ToolHelper::AfterDrawImages(), ToolHelper::BeforeDrawImageNumber(), ToolHelper::BeforeDrawImages(), TextureManager::Begin(), TextureManager::DisableTexture(), TextureManager::DrawImage(), TextureManager::End(), PanosphereOverviewVisualizationState::getAngX(), PanosphereOverviewVisualizationState::getAngY(), MeshManager::GetDisplayList(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), PanosphereOverviewVisualizationState::getR(), GLRenderer::m_mesh_man, GLRenderer::m_pano, GLRenderer::m_tex_man, GLRenderer::m_tool_helper, and m_visualization_state.

vigra::Diff2D GLPanosphereOverviewRenderer::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 373 of file GLRenderer.cpp.

References PanosphereOverviewVisualizationState::getFOV(), HuginBase::PanoramaOptions::getHeight(), PanosphereOverviewVisualizationState::GetOptions(), PanosphereOverviewVisualizationState::getR(), PanosphereOverviewVisualizationState::getSphereRadius(), HuginBase::PanoramaOptions::getWidth(), GLRenderer::height, GLRenderer::height_o, M_PI, m_visualization_state, VisualizationState::SetScale(), VisualizationState::SetVisibleArea(), GLRenderer::width, and GLRenderer::width_o.


Member Data Documentation

PanosphereOverviewVisualizationState* GLPanosphereOverviewRenderer::m_visualization_state [protected]

Definition at line 111 of file GLRenderer.h.

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


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