Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
GLViewer Class Referenceabstract

A wxWidget to display the fast preview. More...

#include <GLViewer.h>

Inheritance diagram for GLViewer:
Inheritance graph

Public Member Functions

 GLViewer (wxWindow *parent, HuginBase::Panorama &pano, int args[], GLPreviewFrame *frame, wxGLContext *shared_context=NULL)
 
virtual ~GLViewer ()
 
void RedrawE (wxPaintEvent &e)
 
void Resized (wxSizeEvent &e)
 
void Redraw ()
 
void SetUpContext ()
 
void SetPhotometricCorrect (bool state)
 
virtual void SetLayoutMode (bool state)
 
virtual void SetLayoutScale (double scale)
 
void SetActive (bool active)
 
bool IsActive ()
 
wxGLContext * GetContext ()
 
void SetViewerBackground (wxColour col)
 
void MarkToolsDirty ()
 

Static Public Member Functions

static void RefreshWrapper (void *obj)
 

Public Attributes

VisualizationStatem_visualization_state
 

Static Public Attributes

static ViewStatem_view_state = NULL
 
static size_t m_view_state_observer = 0
 

Protected Member Functions

void OnEraseBackground (wxEraseEvent &e)
 
void MouseMotion (wxMouseEvent &e)
 
void MouseEnter (wxMouseEvent &e)
 
void MouseLeave (wxMouseEvent &e)
 
void MouseButtons (wxMouseEvent &e)
 
void MouseWheel (wxMouseEvent &e)
 
void KeyDown (wxKeyEvent &e)
 
void KeyUp (wxKeyEvent &e)
 
virtual void setUp ()=0
 

Protected Attributes

ToolHelperm_tool_helper
 
GLRendererm_renderer
 
wxGLContext * m_glContext
 
HuginBase::Panoramam_pano
 
bool started_creation
 
bool redrawing
 
bool m_toolsInitialized
 
vigra::Diff2D offset
 
double m_scale = 1.0
 
GLPreviewFrameframe
 
bool active
 
wxColour m_background_color
 

Static Protected Attributes

static bool initialised_glew =false
 

Detailed Description

A wxWidget to display the fast preview.

It is the OpenGL equivalent of PreviewPanel. The actual work in rendering the preview is done by a GLRenderer.

Definition at line 51 of file GLViewer.h.

Constructor & Destructor Documentation

GLViewer::GLViewer ( wxWindow *  parent,
HuginBase::Panorama pano,
int  args[],
GLPreviewFrame frame,
wxGLContext *  shared_context = NULL 
)

Definition at line 73 of file GLViewer.cpp.

GLViewer::~GLViewer ( )
virtual

Member Function Documentation

wxGLContext* GLViewer::GetContext ( )
inline

Definition at line 78 of file GLViewer.h.

References m_glContext.

Referenced by GLPreviewFrame::GLPreviewFrame().

bool GLViewer::IsActive ( )
inline

Definition at line 76 of file GLViewer.h.

References active.

Referenced by RedrawE(), and Resized().

void GLViewer::KeyDown ( wxKeyEvent &  e)
protected

Definition at line 467 of file GLViewer.cpp.

References ToolHelper::KeypressEvent(), m_renderer, and m_tool_helper.

void GLViewer::KeyUp ( wxKeyEvent &  e)
protected

Definition at line 473 of file GLViewer.cpp.

References ToolHelper::KeypressEvent(), m_renderer, and m_tool_helper.

void GLViewer::MarkToolsDirty ( )
void GLViewer::MouseButtons ( wxMouseEvent &  e)
protected

Definition at line 444 of file GLViewer.cpp.

References m_renderer, m_tool_helper, and ToolHelper::MouseButtonEvent().

void GLViewer::MouseEnter ( wxMouseEvent &  e)
protected
void GLViewer::MouseLeave ( wxMouseEvent &  e)
protected

Definition at line 438 of file GLViewer.cpp.

References m_renderer, m_tool_helper, and ToolHelper::MouseLeave().

void GLViewer::MouseMotion ( wxMouseEvent &  e)
protected
void GLViewer::MouseWheel ( wxMouseEvent &  e)
protected

Definition at line 459 of file GLViewer.cpp.

References m_renderer, m_tool_helper, and ToolHelper::MouseWheelEvent().

void GLViewer::OnEraseBackground ( wxEraseEvent &  e)
protected

Definition at line 419 of file GLViewer.cpp.

void GLViewer::Redraw ( )
void GLViewer::RedrawE ( wxPaintEvent &  e)
void GLViewer::RefreshWrapper ( void *  obj)
static

Definition at line 348 of file GLViewer.cpp.

References DEBUG_DEBUG.

Referenced by GLPreview::setUp(), and GLOverview::setUp().

void GLViewer::Resized ( wxSizeEvent &  e)
void GLViewer::SetActive ( bool  active)
inline
void GLViewer::SetLayoutMode ( bool  state)
virtual
void GLViewer::SetLayoutScale ( double  scale)
virtual
void GLViewer::SetPhotometricCorrect ( bool  state)
virtual void GLViewer::setUp ( )
protectedpure virtual

Implemented in GLOverview, and GLPreview.

Referenced by SetUpContext().

void GLViewer::SetUpContext ( )
void GLViewer::SetViewerBackground ( wxColour  col)

Member Data Documentation

bool GLViewer::active
protected

Definition at line 107 of file GLViewer.h.

Referenced by IsActive(), and SetActive().

GLPreviewFrame* GLViewer::frame
protected

Definition at line 105 of file GLViewer.h.

Referenced by RedrawE(), Resized(), GLPreview::setUp(), GLOverview::setUp(), and SetUpContext().

bool GLViewer::initialised_glew =false
staticprotected

Definition at line 102 of file GLViewer.h.

Referenced by SetUpContext().

wxColour GLViewer::m_background_color
protected

Definition at line 109 of file GLViewer.h.

Referenced by GLPreview::setUp(), GLOverview::setUp(), and SetViewerBackground().

wxGLContext* GLViewer::m_glContext
protected

Definition at line 96 of file GLViewer.h.

Referenced by GetContext(), SetUpContext(), and ~GLViewer().

HuginBase::Panorama* GLViewer::m_pano
protected

Definition at line 97 of file GLViewer.h.

Referenced by Redraw(), GLPreview::setUp(), and GLOverview::setUp().

GLRenderer* GLViewer::m_renderer
protected
double GLViewer::m_scale = 1.0
protected

Definition at line 104 of file GLViewer.h.

Referenced by MouseEnter(), MouseMotion(), Redraw(), and Resized().

ToolHelper* GLViewer::m_tool_helper
protected
bool GLViewer::m_toolsInitialized
protected

Definition at line 101 of file GLViewer.h.

Referenced by GLPreview::setUp(), and GLOverview::setUp().

ViewState * GLViewer::m_view_state = NULL
static
size_t GLViewer::m_view_state_observer = 0
static

Definition at line 73 of file GLViewer.h.

Referenced by GLPreview::setUp(), GLOverview::setUp(), and ~GLViewer().

VisualizationState* GLViewer::m_visualization_state
vigra::Diff2D GLViewer::offset
protected

Definition at line 103 of file GLViewer.h.

Referenced by MouseEnter(), MouseMotion(), Redraw(), and Resized().

bool GLViewer::redrawing
protected

Definition at line 101 of file GLViewer.h.

Referenced by RedrawE().

bool GLViewer::started_creation
protected

Definition at line 101 of file GLViewer.h.

Referenced by SetUpContext().


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