Hugintrunk
0.1
|
subclass for the panosphere overview mode More...
#include <GLRenderer.h>
Public Member Functions | |
GLPanosphereOverviewRenderer (HuginBase::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. 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 | |
PanosphereOverviewVisualizationState * | m_visualization_state |
Protected Attributes inherited from GLRenderer | |
HuginBase::Panorama * | m_pano |
TextureManager * | m_tex_man |
MeshManager * | m_mesh_man |
ToolHelper * | m_tool_helper |
int | width |
int | height |
wxColour | m_background_color |
Additional Inherited Members | |
Public Attributes inherited from GLRenderer | |
float | width_o |
float | height_o |
subclass for the panosphere overview mode
Definition at line 101 of file GLRenderer.h.
GLPanosphereOverviewRenderer::GLPanosphereOverviewRenderer | ( | HuginBase::Panorama * | pano, |
TextureManager * | tex_man, | ||
MeshManager * | mesh_man, | ||
PanosphereOverviewVisualizationState * | visualization_state, | ||
PanosphereOverviewToolHelper * | tool_helper, | ||
const wxColour | backgroundColour | ||
) |
Definition at line 80 of file GLRenderer.cpp.
References GLRenderer::m_mesh_man, GLRenderer::m_pano, GLRenderer::m_tex_man, GLRenderer::m_tool_helper, and m_visualization_state.
|
virtual |
Implements GLRenderer.
Definition at line 238 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(), PanosphereOverviewVisualizationState::isInsideView(), GLRenderer::m_mesh_man, GLRenderer::m_pano, GLRenderer::m_tex_man, GLRenderer::m_tool_helper, and m_visualization_state.
|
virtual |
Resize the viewport because the window's dimensions have changed.
width | the width of the widget in screen pixels. |
height | the height of the widget in screen pixels. |
Implements GLRenderer.
Definition at line 433 of file GLRenderer.cpp.
References DEG_TO_RAD, PanosphereOverviewVisualizationState::getFOV(), HuginBase::PanoramaOptions::getHeight(), PanosphereOverviewVisualizationState::GetOptions(), PanosphereOverviewVisualizationState::getR(), PanosphereOverviewVisualizationState::getSphereRadius(), VisualizationState::GetViewer(), HuginBase::PanoramaOptions::getWidth(), vigra_ext::EMoR::h, GLRenderer::height, GLRenderer::height_o, PanosphereOverviewVisualizationState::isInsideView(), M_PI, m_visualization_state, GLViewer::MarkToolsDirty(), VisualizationState::SetScale(), VisualizationState::SetVisibleArea(), GLRenderer::width, and GLRenderer::width_o.
|
protected |
Definition at line 111 of file GLRenderer.h.
Referenced by GLPanosphereOverviewRenderer(), Redraw(), and Resize().