Hugin trunk 0.1
Loading...
Searching...
No Matches
GLRenderer.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
23#ifndef _GLRENDERER_H
24#define _GLRENDERER_H
25
26
27// TODO needed?
28//#include <vector>
29/* something messed up... temporary fix :-( */
30#include "base_wx/wxutils.h"
32#include <vigra_ext/ROIImage.h>
33#include <vigra/diff2d.hxx>
34#include <utility>
35
36class ToolHelper;
41
48{
49public:
52 explicit GLRenderer(const wxColour backgroundColour);
53
56 virtual ~GLRenderer();
63 virtual vigra::Diff2D Resize(int width, int height) = 0;
64 virtual void Redraw() = 0;
65
66 void SetBackground(unsigned char red, unsigned char green, unsigned char blue);
70
71protected:
78
79};
80
85{
86public:
88 MeshManager *mesh_man, VisualizationState *visualization_state,
90
91 vigra::Diff2D Resize(int width, int height);
92 void Redraw();
93
94protected:
96};
97
114
131
132#endif
subclass for the panosphere overview mode
Definition GLRenderer.h:102
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window's dimensions have changed.
PanosphereOverviewVisualizationState * m_visualization_state
Definition GLRenderer.h:111
subclass for the plane overview mode
Definition GLRenderer.h:119
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window's dimensions have changed.
PlaneOverviewVisualizationState * m_visualization_state
Definition GLRenderer.h:128
subclass for the preview canvas
Definition GLRenderer.h:85
VisualizationState * m_visualization_state
Definition GLRenderer.h:95
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window's dimensions have changed.
The renderer handles drawing the opengl scene.
Definition GLRenderer.h:48
virtual vigra::Diff2D Resize(int width, int height)=0
Resize the viewport because the window's dimensions have changed.
void SetBackground(unsigned char red, unsigned char green, unsigned char blue)
MeshManager * m_mesh_man
Definition GLRenderer.h:74
float height_o
Definition GLRenderer.h:67
void SetPreviewBackgroundColor(const wxColour c)
sets the preview background color
wxColour m_background_color
Definition GLRenderer.h:77
ToolHelper * m_tool_helper
Definition GLRenderer.h:75
virtual void Redraw()=0
TextureManager * m_tex_man
Definition GLRenderer.h:73
virtual ~GLRenderer()
dtor.
float width_o
Definition GLRenderer.h:67
HuginBase::Panorama * m_pano
Definition GLRenderer.h:72
Model for a panorama.
Definition Panorama.h:153
A MeshManager handles the graphics system representation of a remapping, by creating OpenGL display l...
Definition MeshManager.h:38
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41