[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/GLPreviewFrame.cpp File Reference

implementation of GLPreviewFrame Class More...

#include <config.h>
#include <GL/glew.h>
#include "panoinc_WX.h"
#include "panoinc.h"
#include "base_wx/platform.h"
#include "base_wx/MyProgressDialog.h"
#include "hugin/config_defaults.h"
#include "hugin/GLPreviewFrame.h"
#include "hugin/huginApp.h"
#include "hugin/ImagesPanel.h"
#include "hugin/CommandHistory.h"
#include "hugin/GLViewer.h"
#include "hugin/TextKillFocusHandler.h"
#include "hugin_utils/utils.h"
#include <pano13/queryfeature.h>
#include "PreviewToolHelper.h"
#include "PreviewTool.h"
#include "PreviewCropTool.h"
#include "PreviewDragTool.h"
#include "PreviewIdentifyTool.h"
#include "PreviewDifferenceTool.h"
#include "PreviewPanoMaskTool.h"
#include "PreviewControlPointTool.h"
#include "PreviewLayoutLinesTool.h"
#include <wx/progdlg.h>
#include <iostream>

Include dependency graph for GLPreviewFrame.cpp:

Include dependency graph

Defines

#define USE_TOGGLE_BUTTON   1
#define GLEW_STATIC
#define DEBUG_HEADER   ""
#define PF_STYLE   (wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN)

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_UNDO = wxID_HIGHEST+1713, ID_REDO = wxID_HIGHEST+1714
}
enum  {
  mode_preview = 0, 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_CHECKBOX(XRCID("preview_control_point_tool")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint 
EVT_BUTTON (XRCID("preview_autocrop_tool"), GLPreviewFrame::OnAutocrop) EVT_NOTEBOOK_PAGE_CHANGED(XRCID("mode_toolbar_notebook")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode 
EVT_NOTEBOOK_PAGE_CHANGING (XRCID("mode_toolbar_notebook"), GLPreviewFrame::OnToolModeChanging) EVT_BUTTON(XRCID("exposure_default_button")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure 
EVT_SPIN_DOWN (XRCID("exposure_spin"), GLPreviewFrame::OnDecreaseExposure) EVT_SPIN_UP(XRCID("exposure_spin")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure 
EVT_CHOICE (XRCID("blend_mode_choice"), GLPreviewFrame::OnBlendChoice) EVT_CHOICE(XRCID("drag_mode_choice")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice 
EVT_CHOICE (XRCID("projection_choice"), GLPreviewFrame::OnProjectionChoice) EVT_COMMAND_SCROLL(XRCID("layout_scale_slider")
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice
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::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice
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::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice
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::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged 
EVT_TEXT_ENTER (XRCID("exposure_text"), GLPreviewFrame::OnExposureChanged) void AddLabelToBitmapButton(wxBitmapButton *button

Variables

GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
wxString 
new_label
GLPreviewFrame::OnFitPano
GLPreviewFrame::OnStraighten
GLPreviewFrame::OnPhotometric
GLPreviewFrame::OnControlPoint
GLPreviewFrame::OnSelectMode
GLPreviewFrame::OnDefaultExposure
GLPreviewFrame::OnIncreaseExposure
GLPreviewFrame::OnDragChoice
GLPreviewFrame::OnLayoutScaleChange
GLPreviewFrame::OnVFOVChanged
GLPreviewFrame::OnROIChanged
GLPreviewFrame::OnROIChanged
wxString bool 
TextBelow

Detailed Description

implementation of GLPreviewFrame Class

Author:
James Legg and Pablo d'Angelo <pablo.dangelo@web.de>
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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Define Documentation

#define DEBUG_HEADER   ""
 

#define GLEW_STATIC
 

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

#define USE_TOGGLE_BUTTON   1
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
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_UNDO 
ID_REDO 

anonymous enum
 

enum, which contains all different toolbar modes

Enumeration values:
mode_preview 
mode_layout 
mode_projection 
mode_drag 
mode_crop 


Function Documentation

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric 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::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice EVT_CHOICE XRCID("projection_choice")  ,
GLPreviewFrame::OnProjectionChoice 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure EVT_CHOICE XRCID("blend_mode_choice")  ,
GLPreviewFrame::OnBlendChoice 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode EVT_NOTEBOOK_PAGE_CHANGING XRCID("mode_toolbar_notebook")  ,
GLPreviewFrame::OnToolModeChanging 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure EVT_SPIN_DOWN XRCID("exposure_spin")  ,
GLPreviewFrame::OnDecreaseExposure 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged EVT_TEXT_ENTER XRCID("exposure_text")  ,
GLPreviewFrame::OnExposureChanged 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged EVT_TEXT_ENTER XRCID("pano_val_roi_right")  ,
GLPreviewFrame::OnROIChanged 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged EVT_TEXT_ENTER XRCID("pano_val_roi_left")  ,
GLPreviewFrame::OnROIChanged 
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice GLPreviewFrame::OnLayoutScaleChange EVT_TEXT_ENTER XRCID("pano_text_hfov")  ,
GLPreviewFrame::OnHFOVChanged 
 

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


Variable Documentation

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged wxString new_label
 

GLPreviewFrame::OnFitPano GLPreviewFrame::OnStraighten GLPreviewFrame::OnPhotometric GLPreviewFrame::OnControlPoint GLPreviewFrame::OnSelectMode GLPreviewFrame::OnDefaultExposure GLPreviewFrame::OnIncreaseExposure GLPreviewFrame::OnDragChoice GLPreviewFrame::OnLayoutScaleChange GLPreviewFrame::OnVFOVChanged GLPreviewFrame::OnROIChanged GLPreviewFrame::OnROIChanged wxString bool TextBelow
 


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