GLRenderer Class Reference

The renderer handles drawing the opengl scene. More...

#include <GLRenderer.h>

Inheritance diagram for GLRenderer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GLRenderer (const wxColour backgroundColour)
 ctor.
virtual ~GLRenderer ()
 dtor.
virtual vigra::Diff2D Resize (int width, int height)=0
 Resize the viewport because the window's dimensions have changed.
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

Public Attributes

float width_o
float height_o

Protected Attributes

PT::Panoramam_pano
TextureManagerm_tex_man
MeshManagerm_mesh_man
ToolHelperm_tool_helper
int width
int height
wxColour m_background_color

Detailed Description

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.


Constructor & Destructor Documentation

GLRenderer::GLRenderer const wxColour  backgroundColour  ) 
 

ctor.

Definition at line 49 of file GLRenderer.cpp.

References m_background_color.

GLRenderer::~GLRenderer  )  [virtual]
 

dtor.

Definition at line 64 of file GLRenderer.cpp.


Member Function Documentation

virtual void GLRenderer::Redraw  )  [pure virtual]
 

Implemented in GLPreviewRenderer, GLPanosphereOverviewRenderer, and GLPlaneOverviewRenderer.

Referenced by GLViewer::Redraw().

virtual vigra::Diff2D GLRenderer::Resize int  width,
int  height
[pure 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.

Implemented in GLPreviewRenderer, GLPanosphereOverviewRenderer, and GLPlaneOverviewRenderer.

Referenced by GLViewer::Redraw(), and GLViewer::Resized().

void GLRenderer::SetBackground unsigned char  red,
unsigned char  green,
unsigned char  blue
 

Definition at line 59 of file GLRenderer.cpp.

Referenced by GLViewer::Redraw().

void GLRenderer::SetPreviewBackgroundColor const wxColour  c  ) 
 

sets the preview background color

Definition at line 54 of file GLRenderer.cpp.

References m_background_color.

Referenced by GLViewer::SetViewerBackground().


Member Data Documentation

int GLRenderer::height [protected]
 

Definition at line 76 of file GLRenderer.h.

float GLRenderer::height_o
 

Definition at line 67 of file GLRenderer.h.

wxColour GLRenderer::m_background_color [protected]
 

Definition at line 77 of file GLRenderer.h.

Referenced by GLRenderer(), and SetPreviewBackgroundColor().

MeshManager* GLRenderer::m_mesh_man [protected]
 

Definition at line 74 of file GLRenderer.h.

PT::Panorama* GLRenderer::m_pano [protected]
 

Definition at line 72 of file GLRenderer.h.

TextureManager* GLRenderer::m_tex_man [protected]
 

Definition at line 73 of file GLRenderer.h.

ToolHelper* GLRenderer::m_tool_helper [protected]
 

Definition at line 75 of file GLRenderer.h.

int GLRenderer::width [protected]
 

Definition at line 76 of file GLRenderer.h.

float GLRenderer::width_o
 

Definition at line 67 of file GLRenderer.h.


The documentation for this class was generated from the following files:
Generated on Wed Apr 16 01:25:45 2014 for Hugintrunk by  doxygen 1.3.9.1