Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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"
31 #include <base_wx/wxImageCache.h>
32 #include <vigra_ext/ROIImage.h>
33 #include <vigra/diff2d.hxx>
34 #include <utility>
35 
36 class ToolHelper;
37 class OverviewToolHelper;
38 class PreviewToolHelper;
41 
48 {
49 public:
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);
67  float width_o, height_o;
69  void SetPreviewBackgroundColor(const wxColour c);
70 
71 protected:
76  int width, height;
78 
79 };
80 
85 {
86 public:
88  MeshManager *mesh_man, VisualizationState *visualization_state,
89  PreviewToolHelper *tool_helper, const wxColour backgroundColour);
90 
91  vigra::Diff2D Resize(int width, int height);
92  void Redraw();
93 
94 protected:
96 };
97 
102 {
103 public:
105  MeshManager *mesh_man, PanosphereOverviewVisualizationState *visualization_state,
106  PanosphereOverviewToolHelper *tool_helper, const wxColour backgroundColour);
107 
108  vigra::Diff2D Resize(int width, int height);
109  void Redraw();
110 protected:
112 
113 };
114 
119 {
120 public:
122  MeshManager *mesh_man, PlaneOverviewVisualizationState *visualization_state,
123  PlaneOverviewToolHelper *tool_helper, const wxColour backgroundColour);
124 
125  vigra::Diff2D Resize(int width, int height);
126  void Redraw();
127 protected:
129 
130 };
131 
132 #endif
virtual vigra::Diff2D Resize(int width, int height)=0
Resize the viewport because the window&#39;s dimensions have changed.
subclass for the preview canvas
Definition: GLRenderer.h:84
GLRenderer(const wxColour backgroundColour)
ctor.
Definition: GLRenderer.cpp:50
ToolHelper * m_tool_helper
Definition: GLRenderer.h:75
virtual void Redraw()=0
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window&#39;s dimensions have changed.
Definition: GLRenderer.cpp:433
Model for a panorama.
Definition: Panorama.h:152
int height
Definition: GLRenderer.h:76
HuginBase::Panorama * m_pano
Definition: GLRenderer.h:72
subclass for the plane overview mode
Definition: GLRenderer.h:118
The renderer handles drawing the opengl scene.
Definition: GLRenderer.h:47
GLPlaneOverviewRenderer(HuginBase::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, PlaneOverviewVisualizationState *visualization_state, PlaneOverviewToolHelper *tool_helper, const wxColour backgroundColour)
Definition: GLRenderer.cpp:91
float height_o
Definition: GLRenderer.h:67
PlaneOverviewVisualizationState * m_visualization_state
Definition: GLRenderer.h:128
GLPreviewRenderer(HuginBase::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, VisualizationState *visualization_state, PreviewToolHelper *tool_helper, const wxColour backgroundColour)
Definition: GLRenderer.cpp:69
virtual ~GLRenderer()
dtor.
Definition: GLRenderer.cpp:65
wxColour m_background_color
Definition: GLRenderer.h:77
subclass for the panosphere overview mode
Definition: GLRenderer.h:101
A MeshManager handles the graphics system representation of a remapping, by creating OpenGL display l...
Definition: MeshManager.h:37
MeshManager * m_mesh_man
Definition: GLRenderer.h:74
void SetBackground(unsigned char red, unsigned char green, unsigned char blue)
Definition: GLRenderer.cpp:60
float width_o
Definition: GLRenderer.h:67
GLPanosphereOverviewRenderer(HuginBase::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, PanosphereOverviewVisualizationState *visualization_state, PanosphereOverviewToolHelper *tool_helper, const wxColour backgroundColour)
Definition: GLRenderer.cpp:80
VisualizationState * m_visualization_state
Definition: GLRenderer.h:95
void SetPreviewBackgroundColor(const wxColour c)
sets the preview background color
Definition: GLRenderer.cpp:55
TextureManager * m_tex_man
Definition: GLRenderer.h:73
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window&#39;s dimensions have changed.
Definition: GLRenderer.cpp:598
PanosphereOverviewVisualizationState * m_visualization_state
Definition: GLRenderer.h:111
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window&#39;s dimensions have changed.
Definition: GLRenderer.cpp:103