27#include "hugin_config.h"
28#if defined HAVE_EPOXY && HAVE_EPOXY
37#include <wx/settings.h>
38#include <wx/dcclient.h>
49#if !defined HAVE_EPOXY || !HAVE_EPOXY
134#if defined HAVE_EPOXY && HAVE_EPOXY
139 wxConfigBase::Get()->Write(
"DisableOpenGL", 1l);
140 wxConfigBase::Get()->Flush();
141 DEBUG_ERROR(
"Sorry, OpenGL 1.1 + GL_ARB_multitexture extension required.");
143 hugin_utils::HuginMessageBox(
_(
"Sorry, the fast preview window requires a system which supports OpenGL version 1.1 with the GL_ARB_multitexture extension.\nThe fast preview cannot be opened.\n\nHugin has been configured to start without fast preview.\nPlease restart Hugin."),
_(
"Hugin"),
wxOK |
wxICON_ERROR,
this);
167 wxConfigBase::Get()->Write(
"DisableOpenGL", 1l);
168 wxConfigBase::Get()->Flush();
169 DEBUG_ERROR(
"Sorry, OpenGL 1.1 + GL_ARB_multitexture extension required.");
171 hugin_utils::HuginMessageBox(
_(
"Sorry, the fast preview window requires a system which supports OpenGL version 1.1 with the GL_ARB_multitexture extension.\nThe fast preview cannot be opened.\n\nHugin has been configured to start without fast preview.\nPlease restart Hugin."),
_(
"Hugin"),
wxOK |
wxICON_ERROR,
this);
330 if(!IsShown())
return;
367 if(!IsShown())
return;
374#if defined __WXGTK3__ || defined __WXOSX__
405#if defined __WXGTK3__ || defined __WXOSX__
GLPlaneOverviewRenderer * plane_m_renderer
void SetMode(OverviewMode mode)
PanosphereOverviewToolHelper * panosphere_m_tool_helper
GLPanosphereOverviewRenderer * panosphere_m_renderer
PanosphereOverviewVisualizationState * panosphere_m_visualization_state
virtual void SetLayoutScale(double scale)
PlaneOverviewVisualizationState * plane_m_visualization_state
virtual void SetLayoutMode(bool state)
PlaneOverviewToolHelper * plane_m_tool_helper
subclass for the panosphere overview mode
subclass for the plane overview mode
The OpenGL preview frame.
void MakePlaneOverviewTools(PlaneOverviewToolHelper *helper)
void MakePreviewTools(PreviewToolHelper *helper)
wxColour GetPreviewBackgroundColor()
GLOverview * getOverview()
void MakePanosphereOverviewTools(PanosphereOverviewToolHelper *helper)
subclass for the preview canvas
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)
void SetPreviewBackgroundColor(const wxColour c)
sets the preview background color
A wxWidget to display the fast preview.
void MouseEnter(wxMouseEvent &e)
static size_t m_view_state_observer
virtual void SetLayoutMode(bool state)
void RedrawE(wxPaintEvent &e)
void MouseButtons(wxMouseEvent &e)
VisualizationState * m_visualization_state
void KeyUp(wxKeyEvent &e)
virtual void SetLayoutScale(double scale)
wxGLContext * m_glContext
void SetPhotometricCorrect(bool state)
void MouseMotion(wxMouseEvent &e)
static void RefreshWrapper(void *obj)
GLViewer(wxWindow *parent, HuginBase::Panorama &pano, int args[], GLPreviewFrame *frame, wxGLContext *shared_context=NULL)
ToolHelper * m_tool_helper
wxColour m_background_color
void MouseLeave(wxMouseEvent &e)
void SetViewerBackground(wxColour col)
void KeyDown(wxKeyEvent &e)
HuginBase::Panorama * m_pano
void Resized(wxSizeEvent &e)
static bool initialised_glew
void MouseWheel(wxMouseEvent &e)
void OnEraseBackground(wxEraseEvent &e)
static ViewState * m_view_state
const bool hasPendingChanges() const
return if the panorama class has pending changes normally all controls listen to panoramaChanges noti...
static const double scale_diff
scale factor to be used for the layout mode TODO: test this for more scenarios
void SetLayoutMode(bool state)
Turn layout mode on or off.
void SetLayoutScale(double scale)
void setInsideView(bool insideView)
void SetPhotometricCorrect(bool state)
TextureManager * GetTextureManager()
MeshManager * GetMeshManager()
bool RequireRecalculateViewport()
int HuginMessageBox(const wxString &message, const wxString &caption, int style, wxWindow *parent)
include file for the hugin project
include file for the hugin project
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.