Hugintrunk
0.1
|
#include <GLViewer.h>
Public Types | |
enum | OverviewMode { PANOSPHERE_OUTSIDE, PANOSPHERE_INSIDE, PLANE } |
Public Member Functions | |
GLOverview (wxWindow *parent, HuginBase::Panorama &pano, int args[], GLPreviewFrame *frame, wxGLContext *shared_context=NULL) | |
~GLOverview () | |
void | setUp () |
virtual void | SetLayoutMode (bool state) |
virtual void | SetLayoutScale (double scale) |
void | SetMode (OverviewMode mode) |
OverviewMode | GetMode () |
Public Member Functions inherited from GLViewer | |
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) |
void | SetActive (bool active) |
bool | IsActive () |
wxGLContext * | GetContext () |
void | SetViewerBackground (wxColour col) |
void | MarkToolsDirty () |
Protected Attributes | |
OverviewMode | mode |
PanosphereOverviewVisualizationState * | panosphere_m_visualization_state |
PanosphereOverviewToolHelper * | panosphere_m_tool_helper |
GLPanosphereOverviewRenderer * | panosphere_m_renderer |
PlaneOverviewVisualizationState * | plane_m_visualization_state |
PlaneOverviewToolHelper * | plane_m_tool_helper |
GLPlaneOverviewRenderer * | plane_m_renderer |
Protected Attributes inherited from GLViewer | |
ToolHelper * | m_tool_helper |
GLRenderer * | m_renderer |
wxGLContext * | m_glContext |
HuginBase::Panorama * | m_pano |
bool | started_creation |
bool | redrawing |
bool | m_toolsInitialized |
vigra::Diff2D | offset |
double | m_scale = 1.0 |
GLPreviewFrame * | frame |
bool | active |
wxColour | m_background_color |
Additional Inherited Members | |
Static Public Member Functions inherited from GLViewer | |
static void | RefreshWrapper (void *obj) |
Public Attributes inherited from GLViewer | |
VisualizationState * | m_visualization_state |
Static Public Attributes inherited from GLViewer | |
static ViewState * | m_view_state = NULL |
static size_t | m_view_state_observer = 0 |
Protected Member Functions inherited from GLViewer | |
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) |
Static Protected Attributes inherited from GLViewer | |
static bool | initialised_glew =false |
Definition at line 126 of file GLViewer.h.
Enumerator | |
---|---|
PANOSPHERE_OUTSIDE | |
PANOSPHERE_INSIDE | |
PLANE |
Definition at line 146 of file GLViewer.h.
|
inline |
Definition at line 129 of file GLViewer.h.
GLOverview::~GLOverview | ( | ) |
Definition at line 216 of file GLViewer.cpp.
References GLViewer::m_renderer, panosphere_m_renderer, panosphere_m_tool_helper, panosphere_m_visualization_state, plane_m_renderer, plane_m_tool_helper, and plane_m_visualization_state.
|
inline |
Definition at line 153 of file GLViewer.h.
Referenced by GLPreviewFrame::KeyDown(), GLPreviewFrame::KeyUp(), GLPreviewFrame::OnOverviewModeChoice(), GLPreviewFrame::panoramaImagesChanged(), and GLPreviewFrame::UpdateOverviewMode().
|
virtual |
Reimplemented from GLViewer.
Definition at line 306 of file GLViewer.cpp.
References VisualizationState::GetMeshManager(), panosphere_m_visualization_state, plane_m_visualization_state, and MeshManager::SetLayoutMode().
Referenced by GLPreviewFrame::SetMode().
|
virtual |
Reimplemented from GLViewer.
Definition at line 313 of file GLViewer.cpp.
References VisualizationState::GetMeshManager(), panosphere_m_visualization_state, plane_m_visualization_state, MeshManager::PanosphereOverviewMeshInfo::scale_diff, and MeshManager::SetLayoutScale().
Referenced by GLPreviewFrame::OnLayoutScaleChange().
void GLOverview::SetMode | ( | OverviewMode | mode | ) |
Definition at line 491 of file GLViewer.cpp.
References GLViewer::m_renderer, GLViewer::m_tool_helper, GLViewer::m_visualization_state, mode, PANOSPHERE_INSIDE, panosphere_m_renderer, panosphere_m_tool_helper, panosphere_m_visualization_state, PANOSPHERE_OUTSIDE, PLANE, plane_m_renderer, plane_m_tool_helper, plane_m_visualization_state, and PanosphereOverviewVisualizationState::setInsideView().
Referenced by GLPreviewFrame::GLPreviewFrame(), GLPreviewFrame::panoramaImagesChanged(), GLPreviewFrame::SetGuiLevel(), and GLPreviewFrame::UpdateOverviewMode().
|
virtual |
Implements GLViewer.
Definition at line 235 of file GLViewer.cpp.
References DEBUG_DEBUG, GLViewer::frame, VisualizationState::GetMeshManager(), ViewState::GetTextureManager(), GLViewer::m_background_color, GLViewer::m_pano, GLViewer::m_renderer, GLViewer::m_tool_helper, GLViewer::m_toolsInitialized, GLViewer::m_view_state, GLViewer::m_view_state_observer, GLViewer::m_visualization_state, GLPreviewFrame::MakePanosphereOverviewTools(), GLPreviewFrame::MakePlaneOverviewTools(), mode, PANOSPHERE_INSIDE, panosphere_m_renderer, panosphere_m_tool_helper, panosphere_m_visualization_state, PANOSPHERE_OUTSIDE, PLANE, plane_m_renderer, plane_m_tool_helper, plane_m_visualization_state, GLViewer::RefreshWrapper(), and PanosphereOverviewVisualizationState::setInsideView().
Referenced by GLViewer::SetUpContext().
|
protected |
Definition at line 157 of file GLViewer.h.
|
protected |
Definition at line 161 of file GLViewer.h.
Referenced by SetMode(), setUp(), and ~GLOverview().
|
protected |
Definition at line 160 of file GLViewer.h.
Referenced by SetMode(), setUp(), and ~GLOverview().
|
protected |
Definition at line 159 of file GLViewer.h.
Referenced by SetLayoutMode(), SetLayoutScale(), SetMode(), setUp(), and ~GLOverview().
|
protected |
Definition at line 165 of file GLViewer.h.
Referenced by SetMode(), setUp(), and ~GLOverview().
|
protected |
Definition at line 164 of file GLViewer.h.
Referenced by SetMode(), setUp(), and ~GLOverview().
|
protected |
Definition at line 163 of file GLViewer.h.
Referenced by SetLayoutMode(), SetLayoutScale(), SetMode(), setUp(), and ~GLOverview().