Hugintrunk
0.1
|
The renderer handles drawing the opengl scene. More...
#include <GLRenderer.h>
Public Member Functions | |
GLRenderer (const wxColour backgroundColour) | |
ctor. More... | |
virtual | ~GLRenderer () |
dtor. More... | |
virtual vigra::Diff2D | Resize (int width, int height)=0 |
Resize the viewport because the window's dimensions have changed. More... | |
virtual void | Redraw ()=0 |
void | SetBackground (unsigned char red, unsigned char green, unsigned char blue) |
void | SetPreviewBackgroundColor (const wxColour c) |
sets the preview background color More... | |
Public Attributes | |
float | width_o |
float | height_o |
Protected Attributes | |
HuginBase::Panorama * | m_pano |
TextureManager * | m_tex_man |
MeshManager * | m_mesh_man |
ToolHelper * | m_tool_helper |
int | width |
int | height |
wxColour | m_background_color |
The renderer handles drawing the opengl scene.
It is used by a GLViewer, which is a wxWidget. The work of generating textures to represent the image is done by a TextureManager, and the remappings are made in display lists by a MeshManager. The GLViewer gives us instances of those objects to use.
Definition at line 47 of file GLRenderer.h.
|
explicit |
|
virtual |
dtor.
Definition at line 65 of file GLRenderer.cpp.
|
pure virtual |
Implemented in GLPlaneOverviewRenderer, GLPanosphereOverviewRenderer, and GLPreviewRenderer.
Referenced by GLViewer::Redraw().
|
pure 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. |
Implemented in GLPlaneOverviewRenderer, GLPanosphereOverviewRenderer, and GLPreviewRenderer.
Referenced by GLViewer::Redraw(), and GLViewer::Resized().
void GLRenderer::SetBackground | ( | unsigned char | red, |
unsigned char | green, | ||
unsigned char | blue | ||
) |
Definition at line 60 of file GLRenderer.cpp.
Referenced by GLViewer::Redraw().
void GLRenderer::SetPreviewBackgroundColor | ( | const wxColour | c | ) |
sets the preview background color
Definition at line 55 of file GLRenderer.cpp.
References m_background_color.
Referenced by GLViewer::SetViewerBackground().
|
protected |
Definition at line 76 of file GLRenderer.h.
Referenced by GLPreviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), and GLPlaneOverviewRenderer::Resize().
float GLRenderer::height_o |
Definition at line 67 of file GLRenderer.h.
Referenced by GLPreviewRenderer::Redraw(), GLPreviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), and GLPlaneOverviewRenderer::Resize().
|
protected |
Definition at line 77 of file GLRenderer.h.
Referenced by GLRenderer(), GLPreviewRenderer::Redraw(), GLPlaneOverviewRenderer::Redraw(), and SetPreviewBackgroundColor().
|
protected |
Definition at line 74 of file GLRenderer.h.
Referenced by GLPanosphereOverviewRenderer::GLPanosphereOverviewRenderer(), GLPlaneOverviewRenderer::GLPlaneOverviewRenderer(), GLPreviewRenderer::GLPreviewRenderer(), GLPreviewRenderer::Redraw(), GLPanosphereOverviewRenderer::Redraw(), and GLPlaneOverviewRenderer::Redraw().
|
protected |
Definition at line 72 of file GLRenderer.h.
Referenced by GLPanosphereOverviewRenderer::GLPanosphereOverviewRenderer(), GLPlaneOverviewRenderer::GLPlaneOverviewRenderer(), GLPreviewRenderer::GLPreviewRenderer(), GLPreviewRenderer::Redraw(), GLPanosphereOverviewRenderer::Redraw(), and GLPlaneOverviewRenderer::Redraw().
|
protected |
Definition at line 73 of file GLRenderer.h.
Referenced by GLPanosphereOverviewRenderer::GLPanosphereOverviewRenderer(), GLPlaneOverviewRenderer::GLPlaneOverviewRenderer(), GLPreviewRenderer::GLPreviewRenderer(), GLPreviewRenderer::Redraw(), GLPanosphereOverviewRenderer::Redraw(), and GLPlaneOverviewRenderer::Redraw().
|
protected |
Definition at line 75 of file GLRenderer.h.
Referenced by GLPanosphereOverviewRenderer::GLPanosphereOverviewRenderer(), GLPlaneOverviewRenderer::GLPlaneOverviewRenderer(), GLPreviewRenderer::GLPreviewRenderer(), GLPreviewRenderer::Redraw(), GLPanosphereOverviewRenderer::Redraw(), and GLPlaneOverviewRenderer::Redraw().
|
protected |
Definition at line 76 of file GLRenderer.h.
Referenced by GLPreviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), and GLPlaneOverviewRenderer::Resize().
float GLRenderer::width_o |
Definition at line 67 of file GLRenderer.h.
Referenced by GLPreviewRenderer::Redraw(), GLPreviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), and GLPlaneOverviewRenderer::Resize().