Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
GLPlaneOverviewRenderer Class Reference

subclass for the plane overview mode More...

#include <GLRenderer.h>

Inheritance diagram for GLPlaneOverviewRenderer:
Inheritance graph

Public Member Functions

 GLPlaneOverviewRenderer (HuginBase::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. More...
 
void Redraw ()
 
- Public Member Functions inherited from GLRenderer
 GLRenderer (const wxColour backgroundColour)
 ctor. More...
 
virtual ~GLRenderer ()
 dtor. More...
 
void SetBackground (unsigned char red, unsigned char green, unsigned char blue)
 
void SetPreviewBackgroundColor (const wxColour c)
 sets the preview background color More...
 

Protected Attributes

PlaneOverviewVisualizationStatem_visualization_state
 
- Protected Attributes inherited from GLRenderer
HuginBase::Panoramam_pano
 
TextureManagerm_tex_man
 
MeshManagerm_mesh_man
 
ToolHelperm_tool_helper
 
int width
 
int height
 
wxColour m_background_color
 

Additional Inherited Members

- Public Attributes inherited from GLRenderer
float width_o
 
float height_o
 

Detailed Description

subclass for the plane overview mode

Definition at line 118 of file GLRenderer.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void GLPlaneOverviewRenderer::Redraw ( )
virtual
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 panorama, both horizontally and vertically.
Parameters
widththe width of the widget in screen pixels.
heightthe height of the widget in screen pixels.

Implements GLRenderer.

Definition at line 598 of file GLRenderer.cpp.

References PlaneOverviewVisualizationState::getFOV(), HuginBase::PanoramaOptions::getHeight(), ViewState::GetOptions(), PlaneOverviewVisualizationState::getR(), VisualizationState::GetViewer(), VisualizationState::getViewState(), HuginBase::PanoramaOptions::getWidth(), vigra_ext::EMoR::h, GLRenderer::height, GLRenderer::height_o, M_PI, m_visualization_state, GLViewer::MarkToolsDirty(), 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: