[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

hugin1/hugin/GLViewer.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00022 #ifndef _GL_VIEWER_H
00023 #define _GL_VIEWER_H
00024 
00025 #include "ViewState.h"
00026 #include "base_wx/platform.h"
00027 #include <wx/glcanvas.h>
00028 #include <utility>
00029 #include <vigra/diff2d.hxx>
00030 
00031 class GLRenderer;
00032 class TextureManager;
00033 class MeshManager;
00034 class PreviewToolHelper;
00035 class GLPreviewFrame;
00036 
00041 class GLViewer: public wxGLCanvas
00042 {
00043 public:
00044     GLViewer(wxFrame* parent, PT::Panorama &pano, int args[], GLPreviewFrame *frame);
00045     virtual ~GLViewer();
00046     void RedrawE(wxPaintEvent& e);
00047     void Resized(wxSizeEvent& e);
00048     void Redraw();
00049     static void RefreshWrapper(void *obj);
00050     void SetUpContext();
00051     void SetPhotometricCorrect(bool state);
00052     void SetLayoutMode(bool state);
00053     void SetLayoutScale(double scale);
00054     
00055     ViewState * m_view_state;
00056 protected:
00057     void OnEraseBackground(wxEraseEvent& e);
00058     void MouseMotion(wxMouseEvent& e);
00059     void MouseLeave(wxMouseEvent & e);
00060     void LeftDown(wxMouseEvent& e);
00061     void LeftUp(wxMouseEvent& e);
00062     void RightDown(wxMouseEvent& e);
00063     void RightUp(wxMouseEvent& e);
00064     void KeyDown(wxKeyEvent & e);
00065     void KeyUp(wxKeyEvent & e);
00066     
00067     DECLARE_EVENT_TABLE()
00068     
00069     PreviewToolHelper *m_tool_helper;
00070     GLRenderer *m_renderer;
00071     wxGLContext *m_glContext;
00072     PT::Panorama  * m_pano;
00073     
00074     bool started_creation, initialised_glew, redrawing;
00075     vigra::Diff2D offset;
00076     GLPreviewFrame *frame;
00077 };
00078 
00079 #endif
00080 

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