GLPreviewFrame.cpp File Reference

implementation of GLPreviewFrame Class More...

#include <bitset>
#include <limits>
#include <iostream>
#include <config.h>
#include <GL/glew.h>
#include "panoinc_WX.h"
#include "panoinc.h"
#include "base_wx/platform.h"
#include "base_wx/wxPlatform.h"
#include "base_wx/LensTools.h"
#include "algorithms/optimizer/ImageGraph.h"
#include "algorithms/basic/LayerStacks.h"
#include <algorithms/basic/CalculateOptimalROI.h>
#include <algorithms/basic/CalculateCPStatistics.h>
#include <algorithms/nona/FitPanorama.h>
#include <algorithms/basic/CalculateMeanExposure.h>
#include "base_wx/MyProgressDialog.h"
#include "base_wx/wxPanoCommand.h"
#include "hugin/config_defaults.h"
#include "hugin/GLPreviewFrame.h"
#include "hugin/huginApp.h"
#include "hugin/MainFrame.h"
#include "hugin/ImagesPanel.h"
#include "base_wx/CommandHistory.h"
#include "hugin/GLViewer.h"
#include "hugin/TextKillFocusHandler.h"
#include "hugin/PanoOperation.h"
#include "hugin/PanoOutputDialog.h"
#include "base_wx/PTWXDlg.h"
#include "vigra_ext/InterestPoints.h"
#include "vigra_ext/Correlation.h"
#include "algorithms/control_points/CleanCP.h"
#include "hugin_utils/openmp_lock.h"
#include <pano13/queryfeature.h>
#include "ToolHelper.h"
#include "Tool.h"
#include "DragTool.h"
#include "PreviewCropTool.h"
#include "PreviewIdentifyTool.h"
#include "PreviewDifferenceTool.h"
#include "PreviewPanoMaskTool.h"
#include "PreviewControlPointTool.h"
#include "PreviewLayoutLinesTool.h"
#include "PreviewColorPickerTool.h"
#include "PreviewGuideTool.h"
#include "PreviewEditCPTool.h"
#include "ProjectionGridTool.h"
#include "PanosphereSphereTool.h"
#include "OverviewCameraTool.h"
#include "OverviewOutlinesTool.h"
#include <wx/progdlg.h>

Include dependency graph for GLPreviewFrame.cpp:

Go to the source code of this file.

Classes

struct  FindStruct

Defines

#define USE_TOGGLE_BUTTON   1
#define GLEW_STATIC
#define PF_STYLE   (wxMAXIMIZE_BOX | wxMINIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN)
#define MAX_DIMENSION   1600

Typedefs

typedef std::vector< FindStructFindVector
typedef std::multimap< double,
vigra::Diff2D > 
MapPoints

Enumerations

enum  {
  ID_TOGGLE_BUT = wxID_HIGHEST+500, PROJ_PARAM_NAMES_ID = wxID_HIGHEST+1300, PROJ_PARAM_VAL_ID = wxID_HIGHEST+1400, PROJ_PARAM_SLIDER_ID = wxID_HIGHEST+1500,
  PROJ_PARAM_RESET_ID = wxID_HIGHEST+1550, ID_TOGGLE_BUT_LEAVE = wxID_HIGHEST+1600, ID_FULL_SCREEN = wxID_HIGHEST+1710, ID_SHOW_ALL = wxID_HIGHEST+1711,
  ID_SHOW_NONE = wxID_HIGHEST+1712, ID_HIDE_HINTS = wxID_HIGHEST+1715
}
enum  {
  mode_assistant = 0, mode_preview, mode_layout, mode_projection,
  mode_drag, mode_crop
}
 enum, which contains all different toolbar modes More...

Functions

 EVT_BUTTON (XRCID("preview_center_tool"), GLPreviewFrame::OnCenterHorizontally) EVT_BUTTON(XRCID("preview_fit_pano_tool")
GLPreviewFrame::OnFitPano EVT_BUTTON (XRCID("preview_fit_pano_tool2"), GLPreviewFrame::OnFitPano) EVT_BUTTON(XRCID("preview_straighten_pano_tool")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten 
EVT_BUTTON (XRCID("apply_num_transform"), GLPreviewFrame::OnNumTransform) EVT_CHECKBOX(XRCID("preview_photometric_tool")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric 
EVT_TOOL (XRCID("preview_identify_tool"), GLPreviewFrame::OnIdentify) EVT_TOOL(XRCID("preview_color_picker_tool")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker 
EVT_TOOL (XRCID("preview_edit_cp_tool"), GLPreviewFrame::OnEditCPTool) EVT_CHECKBOX(XRCID("preview_control_point_tool")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint 
EVT_BUTTON (XRCID("preview_autocrop_tool"), GLPreviewFrame::OnAutocrop) EVT_BUTTON(XRCID("preview_stack_autocrop_tool")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop 
EVT_NOTEBOOK_PAGE_CHANGED (XRCID("mode_toolbar_notebook"), GLPreviewFrame::OnSelectMode) EVT_NOTEBOOK_PAGE_CHANGING(XRCID("mode_toolbar_notebook")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging 
EVT_BUTTON (XRCID("exposure_default_button"), GLPreviewFrame::OnDefaultExposure) EVT_SPIN_DOWN(XRCID("exposure_spin")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure 
EVT_SPIN_UP (XRCID("exposure_spin"), GLPreviewFrame::OnIncreaseExposure) EVT_CHOICE(XRCID("blend_mode_choice")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice 
EVT_CHOICE (XRCID("drag_mode_choice"), GLPreviewFrame::OnDragChoice) EVT_CHOICE(XRCID("projection_choice")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice 
EVT_CHOICE (XRCID("overview_mode_choice"), GLPreviewFrame::OnOverviewModeChoice) EVT_CHOICE(XRCID("preview_guide_choice_crop")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged 
EVT_CHOICE (XRCID("preview_guide_choice_drag"), GLPreviewFrame::OnGuideChanged) EVT_CHOICE(XRCID("preview_guide_choice_proj")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged 
EVT_MENU (XRCID("action_show_overview"), GLPreviewFrame::OnOverviewToggle) EVT_MENU(XRCID("action_show_grid")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid 
EVT_COMMAND_SCROLL (XRCID("layout_scale_slider"), GLPreviewFrame::OnLayoutScaleChange) EVT_COMMAND_SCROLL_CHANGED(XRCID("layout_scale_slider")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange 
EVT_TEXT_ENTER (XRCID("pano_text_hfov"), GLPreviewFrame::OnHFOVChanged) EVT_TEXT_ENTER(XRCID("pano_text_vfov")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged 
EVT_TEXT_ENTER (XRCID("pano_val_roi_left"), GLPreviewFrame::OnROIChanged) EVT_TEXT_ENTER(XRCID("pano_val_roi_top")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged 
EVT_TEXT_ENTER (XRCID("pano_val_roi_right"), GLPreviewFrame::OnROIChanged) EVT_TEXT_ENTER(XRCID("pano_val_roi_bottom")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged 
EVT_BUTTON (XRCID("reset_crop_button"), GLPreviewFrame::OnResetCrop) EVT_TEXT_ENTER(XRCID("exposure_text")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged 
EVT_COLOURPICKER_CHANGED (XRCID("preview_background"), GLPreviewFrame::OnPreviewBackgroundColorChanged) EVT_MENU(XRCID("ID_SHOW_FULL_SCREEN_PREVIEW")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen 
EVT_MENU (XRCID("action_show_main_frame"), GLPreviewFrame::OnShowMainFrame) EVT_MENU(XRCID("action_exit_preview")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit 
EVT_CHOICE (XRCID("ass_lens_type"), GLPreviewFrame::OnLensTypeChanged) EVT_TEXT_ENTER(XRCID("ass_focal_length")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit
GLPreviewFrame::OnFocalLengthChanged 
EVT_TEXT_ENTER (XRCID("ass_crop_factor"), GLPreviewFrame::OnCropFactorChanged) EVT_BUTTON(XRCID("ass_load_images_button")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit
GLPreviewFrame::OnFocalLengthChanged
GLPreviewFrame::OnLoadImages 
EVT_BUTTON (XRCID("ass_align_button"), GLPreviewFrame::OnAlign) EVT_BUTTON(XRCID("ass_create_button")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit
GLPreviewFrame::OnFocalLengthChanged
GLPreviewFrame::OnLoadImages
GLPreviewFrame::OnCreate 
EVT_MENU (XRCID("selectMenu_selectAll"), GLPreviewFrame::OnSelectAllMenu) EVT_MENU(XRCID("selectMenu_selectMedian")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit
GLPreviewFrame::OnFocalLengthChanged
GLPreviewFrame::OnLoadImages
GLPreviewFrame::OnCreate GLPreviewFrame::OnSelectMedianMenu 
EVT_MENU (XRCID("selectMenu_selectBrightest"), GLPreviewFrame::OnSelectDarkestMenu) EVT_MENU(XRCID("selectMenu_selectDarkest")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit
GLPreviewFrame::OnFocalLengthChanged
GLPreviewFrame::OnLoadImages
GLPreviewFrame::OnCreate GLPreviewFrame::OnSelectMedianMenu
GLPreviewFrame::OnSelectBrightestMenu 
EVT_MENU (XRCID("selectMenu_keepCurrentSelection"), GLPreviewFrame::OnSelectKeepSelection) EVT_MENU(XRCID("selectMenu_resetSelection")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnColorPicker
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnStackAutocrop
GLPreviewFrame::OnToolModeChanging
GLPreviewFrame::OnDecreaseExposure
GLPreviewFrame::OnBlendChoice
GLPreviewFrame::OnProjectionChoice
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnGuideChanged
GLPreviewFrame::OnSwitchPreviewGrid
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnExposureChanged
GLPreviewFrame::OnFullScreen
GLPreviewFrame::OnUserExit
GLPreviewFrame::OnFocalLengthChanged
GLPreviewFrame::OnLoadImages
GLPreviewFrame::OnCreate GLPreviewFrame::OnSelectMedianMenu
GLPreviewFrame::OnSelectBrightestMenu
GLPreviewFrame::OnSelectResetSelection
void 
AddLabelToBitmapButton (wxBitmapButton *button, wxString new_label, bool TextBelow=true)

Variables

static hugin_omp::Lock cpLock


Detailed Description

implementation of GLPreviewFrame Class

Author:
James Legg and Pablo d'Angelo <pablo.dangelo@web.de>

Darko Makreshanski

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software. If not, see <http://www.gnu.org/licenses/>.

Definition in file GLPreviewFrame.cpp.


Define Documentation

#define GLEW_STATIC

Definition at line 40 of file GLPreviewFrame.cpp.

#define MAX_DIMENSION   1600

Definition at line 3373 of file GLPreviewFrame.cpp.

Referenced by GLPreviewFrame::OnCreateCP().

#define PF_STYLE   (wxMAXIMIZE_BOX | wxMINIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN)

Definition at line 285 of file GLPreviewFrame.cpp.

#define USE_TOGGLE_BUTTON   1

Definition at line 29 of file GLPreviewFrame.cpp.


Typedef Documentation

typedef std::vector<FindStruct> FindVector

Definition at line 3381 of file GLPreviewFrame.cpp.

typedef std::multimap<double, vigra::Diff2D> MapPoints

Definition at line 3382 of file GLPreviewFrame.cpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
ID_TOGGLE_BUT 
PROJ_PARAM_NAMES_ID 
PROJ_PARAM_VAL_ID 
PROJ_PARAM_SLIDER_ID 
PROJ_PARAM_RESET_ID 
ID_TOGGLE_BUT_LEAVE 
ID_FULL_SCREEN 
ID_SHOW_ALL 
ID_SHOW_NONE 
ID_HIDE_HINTS 

Definition at line 107 of file GLPreviewFrame.cpp.

anonymous enum

enum, which contains all different toolbar modes

Enumerator:
mode_assistant 
mode_preview 
mode_layout 
mode_projection 
mode_drag 
mode_crop 

Definition at line 121 of file GLPreviewFrame.cpp.


Function Documentation

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit GLPreviewFrame::OnFocalLengthChanged GLPreviewFrame::OnLoadImages GLPreviewFrame::OnCreate GLPreviewFrame::OnSelectMedianMenu GLPreviewFrame::OnSelectBrightestMenu GLPreviewFrame::OnSelectResetSelection void AddLabelToBitmapButton ( wxBitmapButton *  button,
wxString  new_label,
bool  TextBelow = true 
)

Definition at line 239 of file GLPreviewFrame.cpp.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit GLPreviewFrame::OnFocalLengthChanged GLPreviewFrame::OnLoadImages EVT_BUTTON ( XRCID("ass_align_button")  ,
GLPreviewFrame::OnAlign   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged EVT_BUTTON ( XRCID("reset_crop_button")  ,
GLPreviewFrame::OnResetCrop   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging EVT_BUTTON ( XRCID("exposure_default_button")  ,
GLPreviewFrame::OnDefaultExposure   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint EVT_BUTTON ( XRCID("preview_autocrop_tool")  ,
GLPreviewFrame::OnAutocrop   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten EVT_BUTTON ( XRCID("apply_num_transform")  ,
GLPreviewFrame::OnNumTransform   
)

GLPreviewFrame::OnFitPano EVT_BUTTON ( XRCID("preview_fit_pano_tool2")  ,
GLPreviewFrame::OnFitPano   
)

EVT_BUTTON ( XRCID("preview_center_tool")  ,
GLPreviewFrame::OnCenterHorizontally   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit EVT_CHOICE ( XRCID("ass_lens_type")  ,
GLPreviewFrame::OnLensTypeChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged EVT_CHOICE ( XRCID("preview_guide_choice_drag")  ,
GLPreviewFrame::OnGuideChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice EVT_CHOICE ( XRCID("overview_mode_choice")  ,
GLPreviewFrame::OnOverviewModeChoice   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice EVT_CHOICE ( XRCID("drag_mode_choice")  ,
GLPreviewFrame::OnDragChoice   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged EVT_COLOURPICKER_CHANGED ( XRCID("preview_background")  ,
GLPreviewFrame::OnPreviewBackgroundColorChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid EVT_COMMAND_SCROLL ( XRCID("layout_scale_slider")  ,
GLPreviewFrame::OnLayoutScaleChange   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit GLPreviewFrame::OnFocalLengthChanged GLPreviewFrame::OnLoadImages GLPreviewFrame::OnCreate GLPreviewFrame::OnSelectMedianMenu GLPreviewFrame::OnSelectBrightestMenu EVT_MENU ( XRCID("selectMenu_keepCurrentSelection")  ,
GLPreviewFrame::OnSelectKeepSelection   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit GLPreviewFrame::OnFocalLengthChanged GLPreviewFrame::OnLoadImages GLPreviewFrame::OnCreate GLPreviewFrame::OnSelectMedianMenu EVT_MENU ( XRCID("selectMenu_selectBrightest")  ,
GLPreviewFrame::OnSelectDarkestMenu   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit GLPreviewFrame::OnFocalLengthChanged GLPreviewFrame::OnLoadImages GLPreviewFrame::OnCreate EVT_MENU ( XRCID("selectMenu_selectAll")  ,
GLPreviewFrame::OnSelectAllMenu   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen EVT_MENU ( XRCID("action_show_main_frame")  ,
GLPreviewFrame::OnShowMainFrame   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged EVT_MENU ( XRCID("action_show_overview")  ,
GLPreviewFrame::OnOverviewToggle   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop EVT_NOTEBOOK_PAGE_CHANGED ( XRCID("mode_toolbar_notebook")  ,
GLPreviewFrame::OnSelectMode   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure EVT_SPIN_UP ( XRCID("exposure_spin")  ,
GLPreviewFrame::OnIncreaseExposure   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnExposureChanged GLPreviewFrame::OnFullScreen GLPreviewFrame::OnUserExit GLPreviewFrame::OnFocalLengthChanged EVT_TEXT_ENTER ( XRCID("ass_crop_factor")  ,
GLPreviewFrame::OnCropFactorChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged EVT_TEXT_ENTER ( XRCID("pano_val_roi_right")  ,
GLPreviewFrame::OnROIChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged EVT_TEXT_ENTER ( XRCID("pano_val_roi_left")  ,
GLPreviewFrame::OnROIChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker GLPreviewFrame::OnControlPoint GLPreviewFrame::OnStackAutocrop GLPreviewFrame::OnToolModeChanging GLPreviewFrame::OnDecreaseExposure GLPreviewFrame::OnBlendChoice GLPreviewFrame::OnProjectionChoice GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnGuideChanged GLPreviewFrame::OnSwitchPreviewGrid GLPreviewFrame::OnLayoutScaleChange EVT_TEXT_ENTER ( XRCID("pano_text_hfov")  ,
GLPreviewFrame::OnHFOVChanged   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnColorPicker EVT_TOOL ( XRCID("preview_edit_cp_tool")  ,
GLPreviewFrame::OnEditCPTool   
)

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric EVT_TOOL ( XRCID("preview_identify_tool")  ,
GLPreviewFrame::OnIdentify   
)


Variable Documentation

hugin_omp::Lock cpLock [static]

Definition at line 3384 of file GLPreviewFrame.cpp.

Referenced by GLPreviewFrame::OnCreateCP().


Generated on 31 Jul 2015 for Hugintrunk by  doxygen 1.4.7