GLPlaneOverviewRenderer Class Reference

subclass for the plane overview mode More...

#include <GLRenderer.h>

Inheritance diagram for GLPlaneOverviewRenderer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GLPlaneOverviewRenderer (PT::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, PlaneOverviewVisualizationState *visualization_state, PlaneOverviewToolHelper *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

PlaneOverviewVisualizationStatem_visualization_state

Detailed Description

subclass for the plane overview mode

Definition at line 118 of file GLRenderer.h.


Constructor & Destructor Documentation

GLPlaneOverviewRenderer::GLPlaneOverviewRenderer ( PT::Panorama pano,
TextureManager tex_man,
MeshManager mesh_man,
PlaneOverviewVisualizationState visualization_state,
PlaneOverviewToolHelper tool_helper,
const wxColour  backgroundColour 
)

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

Implements GLRenderer.

Definition at line 417 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(), PlaneOverviewVisualizationState::getR(), PlaneOverviewVisualizationState::getX(), PlaneOverviewVisualizationState::getY(), GLRenderer::m_background_color, GLRenderer::m_mesh_man, GLRenderer::m_pano, GLRenderer::m_tex_man, GLRenderer::m_tool_helper, m_visualization_state, X, and Y.

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

References PlaneOverviewVisualizationState::getFOV(), HuginBase::PanoramaOptions::getHeight(), ViewState::GetOptions(), PlaneOverviewVisualizationState::getR(), VisualizationState::getViewState(), HuginBase::PanoramaOptions::getWidth(), GLRenderer::height, GLRenderer::height_o, M_PI, m_visualization_state, MeshManager::PlaneOverviewMeshInfo::scale, VisualizationState::SetScale(), VisualizationState::SetVisibleArea(), GLRenderer::width, and GLRenderer::width_o.


Member Data Documentation

PlaneOverviewVisualizationState* GLPlaneOverviewRenderer::m_visualization_state [protected]

Definition at line 128 of file GLRenderer.h.

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


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