[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GLRenderer Class Reference

The renderer handles drawing the preview. More...

#include <GLRenderer.h>

List of all members.

Public Member Functions

 GLRenderer (PT::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, ViewState *veiw_state, PreviewToolHelper *tool_helper)
 ctor.
virtual ~GLRenderer ()
 dtor.
vigra::Diff2D Resize (int width, int height)
 Resize the viewport because the window's dimensions have changed.
void Redraw ()
void SetBackground (unsigned char red, unsigned char green, unsigned char blue)

Public Attributes

float width_o
float height_o


Detailed Description

The renderer handles drawing the preview.

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.


Constructor & Destructor Documentation

GLRenderer::GLRenderer PT::Panorama pano,
TextureManager tex_man,
MeshManager mesh_man,
ViewState veiw_state,
PreviewToolHelper tool_helper
 

ctor.

GLRenderer::~GLRenderer  )  [virtual]
 

dtor.


Member Function Documentation

void GLRenderer::Redraw  ) 
 

vigra::Diff2D GLRenderer::Resize int  width,
int  height
 

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.

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


Member Data Documentation

float GLRenderer::height_o
 

float GLRenderer::width_o
 


The documentation for this class was generated from the following files:

Generated on Mon Sep 20 01:01:33 2010 for Hugintrunk by doxygen 1.3.9.1