|
Hugin trunk 0.1
|
The main window frame. More...
#include <MainFrame.h>

Public Types | |
| enum | CloseReason { CLOSE_PROGRAM , LOAD_NEW_PROJECT , NEW_PROJECT } |
Public Member Functions | |
| MainFrame (wxWindow *parent, HuginBase::Panorama &pano) | |
| ctor. | |
| virtual | ~MainFrame () |
| dtor. | |
| virtual void | panoramaChanged (HuginBase::Panorama &pano) |
| Enable or disable undo and redo. | |
| void | panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr) |
| notifies about changes to images | |
| const HuginBase::Panorama & | getPanorama () |
| returns panorama object | |
| void | ShowCtrlPoint (unsigned int cpNr) |
| const wxString & | GetXRCPath () |
| get the path to the xrc directory | |
| const wxString & | GetDataPath () |
| get the path to data directory | |
| void | SetOptimizeOnlyActiveImages (const bool onlyActive) |
| sets the status of the "optimize only active images" menu item | |
| const bool | GetOptimizeOnlyActiveImages () const |
| void | SetOptimizeIgnoreLineCp (const bool ignoreLineCP) |
| sets the status of the "ignore line cp" menu item | |
| const bool | GetOptimizeIgnoreLineCp () const |
| void | OnTipOfDay (wxCommandEvent &e) |
| void | LoadProjectFile (const wxString &filename) |
| void | RunAssistant (wxWindow *mainWin, const wxString &userdefinedAssistant=wxEmptyString) |
| void | DisableOpenGLTools () |
| disables all OpenGL related menu items and toobar buttons | |
| bool | CloseProject (bool cancelable, CloseReason reason) |
| void | OnOptimize (wxCommandEvent &e) |
| void | OnOnlyActiveImages (wxCommandEvent &e) |
| void | OnIgnoreLineCp (wxCommandEvent &e) |
| void | OnPhotometricOptimize (wxCommandEvent &e) |
| void | OnDoStitch (wxCommandEvent &e) |
| void | OnUserDefinedStitch (wxCommandEvent &e) |
| void | OnUserDefinedStitchSaved (wxCommandEvent &e) |
| void | OnTogglePreviewFrame (wxCommandEvent &e) |
| void | OnToggleGLPreviewFrame (wxCommandEvent &e) |
| void | OnAddImages (wxCommandEvent &e) |
| void | OnSaveProject (wxCommandEvent &e) |
| void | OnSetGuiSimple (wxCommandEvent &e) |
| void | OnSetGuiAdvanced (wxCommandEvent &e) |
| void | OnSetGuiExpert (wxCommandEvent &e) |
| void | DisplayHelp (wxString section=wxEmptyString) |
| call help browser with given file | |
| void | ShowCtrlPointEditor (unsigned int img1, unsigned int img2) |
| opens the control points tab with the both images selected | |
| void | ShowMaskEditor (size_t imgNr, bool switchToCropMode=false) |
| opens the mask/crop editor with the given image selected | |
| void | ShowStitcherTab () |
| opens the stitcher tab | |
| void | OnCPListFrameClosed () |
| CPDetectorSetting & | GetDefaultSetting () |
| returns default cp detector setting | |
| void | RunCPGenerator (CPDetectorSetting &setting, const HuginBase::UIntSet &img) |
| run the cp generator with the given setting on selected images | |
| void | RunCPGenerator (const HuginBase::UIntSet &img) |
| runs the currently selected cp generator on given images | |
| const wxString | GetSelectedCPGenerator () |
| return the currently selected cp generator description | |
| wxString | getProjectName () |
| bool | IsShowingCorrelation () const |
| struct celeste::svm_model * | GetSVMModel () |
| GLPreviewFrame * | getGLPreview () |
| wxHelpController & | GetHelpController () |
| void | SetGuiLevel (GuiLevel newLevel) |
| const GuiLevel | GetGuiLevel () const |
| wxFileHistory * | GetFileHistory () |
| wxString | GetCurrentOptimizerString () |
| returns the string which describes the current selected optimizer setting | |
Public Member Functions inherited from HuginBase::PanoramaObserver | |
| virtual | ~PanoramaObserver () |
Public Member Functions inherited from AppBase::ProgressDisplay | |
| virtual | ~ProgressDisplay () |
| void | setMessage (const std::string &message, const std::string &filename="") |
| sets the message to given string | |
| void | taskFinished () |
| call when a task has finished and the status message should be cleared | |
| bool | updateDisplay () |
| updates the display, return true, if update was successful, false if cancel was pressed | |
| bool | updateDisplay (const std::string &message) |
| bool | updateDisplayValue () |
| void | setMaximum (int newMaximum) |
| sets the new maximum value of the progress value | |
| bool | wasCancelled () |
| return true, if process should be canceled by user e.g. | |
Static Public Member Functions | |
| static MainFrame * | Get () |
| hack.. kind of a pseudo singleton... | |
Protected Member Functions | |
| void | updateProgressDisplay () |
| receive notification about progress. | |
Protected Member Functions inherited from AppBase::ProgressDisplay | |
| ProgressDisplay (int maximum=0) | |
| constructor | |
Private Member Functions | |
| void | OnExit (wxCloseEvent &e) |
| void | OnUserQuit (wxCommandEvent &e) |
| void | OnAbout (wxCommandEvent &e) |
| void | OnHelp (wxCommandEvent &e) |
| void | OnKeyboardHelp (wxCommandEvent &e) |
| void | OnFAQ (wxCommandEvent &e) |
| void | OnShowPrefs (wxCommandEvent &e) |
| void | OnUndo (wxCommandEvent &e) |
| void | OnRedo (wxCommandEvent &e) |
| void | OnSaveProjectAs (wxCommandEvent &e) |
| void | OnSavePTStitcherAs (wxCommandEvent &e) |
| void | OnLoadProject (wxCommandEvent &e) |
| void | OnBrowseProjects (wxCommandEvent &e) |
| void | OnNewProject (wxCommandEvent &e) |
| void | OnAddTimeImages (wxCommandEvent &e) |
| void | OnRunAssistant (wxCommandEvent &e) |
| void | OnRunAssistantUserdefined (wxCommandEvent &e) |
| void | OnFineTuneAll (wxCommandEvent &e) |
| void | OnRemoveCPinMasks (wxCommandEvent &e) |
| void | OnMergeProject (wxCommandEvent &e) |
| void | OnReadPapywizard (wxCommandEvent &e) |
| void | OnApplyTemplate (wxCommandEvent &e) |
| void | OnSendToBatch (wxCommandEvent &e) |
| void | OnSendToAssistantQueue (wxCommandEvent &e) |
| void | OnOpenPTBatcher (wxCommandEvent &e) |
| void | OnShowCPFrame (wxCommandEvent &e) |
| void | OnMRUFiles (wxCommandEvent &e) |
| event handler for recently used files | |
| void | OnFullScreen (wxCommandEvent &e) |
| event handler for full screen | |
| void | OnSize (wxSizeEvent &e) |
| void | enableTools (bool option) |
| void | AddImages (wxArrayString &filenameArray) |
| adds the given files to the projects, with checking for invalid filenames | |
| void | OnShowPanel (wxCommandEvent &e) |
| void | OnLoadingFailed (wxCommandEvent &e) |
| event handler called when loading of image file failed | |
Static Private Attributes | |
| static MainFrame * | m_this = 0 |
Additional Inherited Members | |
Protected Attributes inherited from AppBase::ProgressDisplay | |
| bool | m_canceled |
| std::string | m_message |
| std::string | m_filename |
| int | m_maximum |
| int | m_progress |
The main window frame.
It contains the menu & statusbar and a big notebook with the different tabs. It also holds the Panorama model.
it therefore also hold operations that determine the lifecycle of the panorama object (new, open, save, quit).
Definition at line 83 of file MainFrame.h.
| Enumerator | |
|---|---|
| CLOSE_PROGRAM | |
| LOAD_NEW_PROJECT | |
| NEW_PROJECT | |
Definition at line 132 of file MainFrame.h.
| MainFrame::MainFrame | ( | wxWindow * | parent, |
| HuginBase::Panorama & | pano | ||
| ) |
ctor.
Definition at line 234 of file MainFrame.cpp.
References HuginBase::Panorama::addObserver(), GLPreviewFrame::AddUserDefinedAssistant(), GLPreviewFrame::AddUserDefinedSequence(), comparePluginItem(), cpe, DEBUG_ASSERT, DEBUG_TRACE, DisableOpenGLTools(), enableTools(), FixHelpSettings(), PanoOperation::GeneratePanoOperationVector(), huginApp::Get(), GetDataPath(), hugin_utils::GetHuginVersion(), HuginQueue::GetSettingStringTranslated(), hugin_utils::GetUserAppDataDir(), huginApp::GetXRCPath(), GetXRCPath(), gl_preview_frame, GUI_ADVANCED, GUI_SIMPLE, images_panel, CPEditorPanel::Init(), ImagesPanel::Init(), MaskEditorPanel::Init(), OptimizePanel::Init(), OptimizePhotometricPanel::Init(), PanoPanel::Init(), m_assistantUserMenu, m_guiLevel, m_menu_file_advanced, m_menu_file_simple, m_mruFiles, m_notebook, m_optIgnoreLineCp, m_optOnlyActiveImages, m_outputUserMenu, m_show_opt_panel, m_show_opt_photo_panel, m_this, m_userAssistant, m_userOutput, mask_panel, OnAbout(), OnAddImages(), OnAddTimeImages(), OnApplyTemplate(), OnBrowseProjects(), OnDoStitch(), OnExit(), OnFAQ(), OnFineTuneAll(), OnFullScreen(), OnHelp(), OnIgnoreLineCp(), OnKeyboardHelp(), OnLoadingFailed(), OnLoadProject(), OnMergeProject(), OnMRUFiles(), OnNewProject(), OnOnlyActiveImages(), OnOpenPTBatcher(), OnOptimize(), OnReadPapywizard(), OnRedo(), OnRemoveCPinMasks(), OnRunAssistant(), OnRunAssistantUserdefined(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), OnSendToAssistantQueue(), OnSetGuiAdvanced(), OnSetGuiExpert(), OnSetGuiSimple(), OnShowCPFrame(), OnShowPanel(), OnShowPrefs(), OnSize(), OnTipOfDay(), OnToggleGLPreviewFrame(), OnTogglePreviewFrame(), OnUndo(), OnUserDefinedStitch(), OnUserDefinedStitchSaved(), OnUserQuit(), opt_panel, opt_photo_panel, pano, pano_panel, PanoPanel::panoramaChanged(), preview_frame, SetGuiLevel(), SetOptimizeOnlyActiveImages(), svmModel, threshold(), wxIDPYTHONSCRIPTS, wxIDUSERASSISTANT, and wxIDUSEROUTPUTSEQUENCE.
|
virtual |
dtor.
Definition at line 731 of file MainFrame.cpp.
References PanoOperation::CleanPanoOperationVector(), DEBUG_DEBUG, DEBUG_TRACE, celeste::destroySVMmodel(), PanoCommand::GlobalCmdHist::getInstance(), GUI_SIMPLE, m_guiLevel, m_menu_file_advanced, m_menu_file_simple, m_mruFiles, m_optOnlyActiveImages, pano, HuginBase::Panorama::removeObserver(), hugin_utils::StoreFramePosition(), svmModel, and threshold().
|
private |
adds the given files to the projects, with checking for invalid filenames
Definition at line 1268 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), containsInvalidCharacters(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, pano, ShowFilenameWarning(), and threshold().
Referenced by OnLoadProject().
| bool MainFrame::CloseProject | ( | bool | cancelable, |
| CloseReason | reason | ||
| ) |
Definition at line 848 of file MainFrame.cpp.
References CLOSE_PROGRAM, hugin_utils::GetMessageDialog(), HuginBase::Panorama::isDirty(), LOAD_NEW_PROJECT, NEW_PROJECT, OnSaveProject(), pano, and threshold().
Referenced by OnBrowseProjects(), OnExit(), OnLoadProject(), OnMRUFiles(), and OnNewProject().
| void MainFrame::DisableOpenGLTools | ( | ) |
disables all OpenGL related menu items and toobar buttons
Definition at line 2339 of file MainFrame.cpp.
References threshold().
Referenced by MainFrame().
| void MainFrame::DisplayHelp | ( | wxString | section = wxEmptyString | ) |
call help browser with given file
Definition at line 1443 of file MainFrame.cpp.
References GetHelpController(), and threshold().
Referenced by PanoPanel::OnBlenderOptions(), OnFAQ(), PanoPanel::OnFusionOptions(), ImageVariableDialog::OnHelp(), OnHelp(), PreferencesDialog::OnHelp(), and OnKeyboardHelp().
Definition at line 2025 of file MainFrame.cpp.
References m_assistantUserMenu, m_menu_file_advanced, m_outputUserMenu, and threshold().
Referenced by MainFrame(), and panoramaImagesChanged().
|
static |
hack.. kind of a pseudo singleton...
Definition at line 2099 of file MainFrame.cpp.
References DEBUG_ASSERT, DEBUG_FATAL, and m_this.
Referenced by CPEditorPanel::changeState(), PanoPanel::CheckFreeSpace(), PanoPanel::CheckGoodSize(), CPListCtrl::Create(), CPEditorPanel::CreateNewPoint(), CPListCtrl::DeleteSelected(), PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), PanoPanel::DoUserDefinedStitch(), CPEditorPanel::estimateAndAddOtherPoint(), BrowsePTOFilesDialog::GeneratePreview(), PanoOperation::AddImageOperation::GetInternalCommand(), PanoOperation::CelesteOperation::GetInternalCommand(), GLPreviewFrame::GLPreviewFrame(), PreviewIdentifyTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), CPEditorPanel::NewPointChange(), CPEditorPanel::OnActionContextMenu(), GLPreviewFrame::OnAlign(), PanoPanel::OnBlenderOptions(), CPEditorPanel::OnCelesteButton(), ImagesTreeCtrl::OnChar(), OptimizePanel::OnCheckIgnoreLineCP(), OptimizePanel::OnCheckOnlyActiveImages(), OptimizePhotometricPanel::OnCheckOnlyActiveImages(), GLPreviewFrame::OnClose(), CPListFrame::OnClose(), CPEditorPanel::OnCPEvent(), CPListCtrl::OnCPListSelectionChanged(), GLPreviewFrame::OnCreate(), GLPreviewFrame::OnCreateCP(), CPEditorPanel::OnCreateCPButton(), BrowsePTOFilesDialog::OnDirectoryChanged(), PanoDropTarget::OnDropFiles(), PreferencesDialog::OnExifArgfile2Edit(), PreferencesDialog::OnExifArgfileEdit(), PanoPanel::OnFusionOptions(), ImageVariableDialog::OnHelp(), PreferencesDialog::OnHelp(), MaskImageCtrl::OnLeftMouseDblClick(), ImagesTreeCtrl::OnLeftUp(), ImagesPanel::OnLensTypeChanged(), MaskEditorPanel::OnMaskAdd(), MaskEditorPanel::OnMaskLoad(), ImagesPanel::OnOptimizeButton(), ImagesPanel::OnPhotometricOptimizeButton(), GLPreviewFrame::OnRemoveCP(), OptimizePanel::OnReset(), OptimizePhotometricPanel::OnReset(), MaskImageCtrl::OnRightMouseUp(), CPListFrame::OnSelectButton(), GLPreviewFrame::OnShowMainFrame(), PreferencesDialog::OnUpdateOutputFilename(), PreferencesDialog::OnUpdateProjectFilename(), CPEditorPanel::panoramaChanged(), CPListCtrl::panoramaChanged(), GLPreviewFrame::panoramaChanged(), CPEditorPanel::PointFineTune(), GLPreviewFrame::SetGuiLevel(), MaskImageCtrl::setImage(), and ShowFisheyeCropHint().
| wxString MainFrame::GetCurrentOptimizerString | ( | ) |
returns the string which describes the current selected optimizer setting
Definition at line 2532 of file MainFrame.cpp.
References ImagesPanel::GetCurrentOptimizerString(), and images_panel.
get the path to data directory
Definition at line 2093 of file MainFrame.cpp.
References threshold().
Referenced by MainFrame().
| CPDetectorSetting & MainFrame::GetDefaultSetting | ( | ) |
returns default cp detector setting
Definition at line 2068 of file MainFrame.cpp.
References ImagesPanel::GetDefaultSetting(), and images_panel.
|
inline |
Definition at line 187 of file MainFrame.h.
References m_mruFiles.
Referenced by GLPreviewFrame::GLPreviewFrame().
| GLPreviewFrame * MainFrame::getGLPreview | ( | ) |
Definition at line 2180 of file MainFrame.cpp.
References gl_preview_frame.
Referenced by huginApp::OnInit(), and ImagesTreeCtrl::OnLeftUp().
Definition at line 185 of file MainFrame.h.
References m_guiLevel.
Referenced by huginApp::OnInit(), OptimizePanel::OnReset(), and OptimizePhotometricPanel::OnReset().
|
inline |
Definition at line 183 of file MainFrame.h.
References m_HelpController.
Referenced by DisplayHelp(), and huginApp::OnInit().
Definition at line 1609 of file MainFrame.cpp.
References m_optIgnoreLineCp.
Definition at line 1584 of file MainFrame.cpp.
References m_optOnlyActiveImages.
Referenced by CPListCtrl::panoramaChanged().
|
inline |
| wxString MainFrame::getProjectName | ( | ) |
Definition at line 2110 of file MainFrame.cpp.
References m_filename.
Referenced by PanoPanel::DoSendToBatch(), and OnSendToAssistantQueue().
return the currently selected cp generator description
Definition at line 2083 of file MainFrame.cpp.
References ImagesPanel::GetSelectedCPGenerator(), and images_panel.
| struct celeste::svm_model * MainFrame::GetSVMModel | ( | ) |
Definition at line 2156 of file MainFrame.cpp.
References huginApp::Get(), huginApp::GetDataPath(), HUGIN_CELESTE_MODEL, HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), celeste::loadSVMmodel(), svmModel, and threshold().
Referenced by PanoOperation::CelesteOperation::GetInternalCommand(), and CPEditorPanel::OnCelesteButton().
get the path to the xrc directory
Definition at line 2088 of file MainFrame.cpp.
References huginApp::Get(), and huginApp::GetXRCPath().
Referenced by MainFrame(), and OnTipOfDay().
| bool MainFrame::IsShowingCorrelation | ( | ) | const |
Definition at line 2115 of file MainFrame.cpp.
References m_showCorrelation.
Referenced by CPListFrame::OnSelectButton(), and CPListCtrl::panoramaChanged().
Definition at line 1053 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::CommandHistory::clear(), PanoCommand::CommandHistory::clearRedoQueue(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, deregisterPTWXDlgFcn(), PanoCommand::GlobalCmdHist::getInstance(), GetMinimumGuiLevel(), HuginBase::Panorama::getNrOfImages(), gl_preview_frame, GUI_SIMPLE, HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), m_filename, m_guiLevel, m_mruFiles, PreviewFrame::OnUpdate(), pano, panoramaChanged(), preview_frame, registerPTWXDlgFcn(), GLPreviewFrame::ResetPreviewZoom(), SetGuiLevel(), threshold(), and PanoCommand::CommandHistory::undo().
Referenced by OnBrowseProjects(), huginApp::OnInit(), OnLoadProject(), and OnMRUFiles().
|
private |
| void MainFrame::OnAddImages | ( | wxCommandEvent & | e | ) |
Definition at line 1254 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), DEBUG_TRACE, PanoOperation::PanoOperation::GetCommand(), PanoCommand::GlobalCmdHist::getInstance(), m_guiLevel, pano, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1301 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), m_guiLevel, pano, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1706 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, pano, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1203 of file MainFrame.cpp.
References CloseProject(), LOAD_NEW_PROJECT, LoadProjectFile(), and threshold().
Referenced by MainFrame().
| void MainFrame::OnCPListFrameClosed | ( | ) |
Definition at line 1553 of file MainFrame.cpp.
References cp_frame.
Referenced by CPListFrame::OnClose().
| void MainFrame::OnDoStitch | ( | wxCommandEvent & | e | ) |
Definition at line 1620 of file MainFrame.cpp.
References DEBUG_TRACE, PanoPanel::GetStitchButton(), pano_panel, and threshold().
Referenced by MainFrame(), and GLPreviewFrame::OnCreate().
|
private |
Definition at line 904 of file MainFrame.cpp.
References CLOSE_PROGRAM, CloseProject(), DEBUG_TRACE, gl_preview_frame, GUI_SIMPLE, m_guiLevel, preview_frame, GLPreviewFrame::StorePositionAndSize(), and threshold().
Referenced by MainFrame().
|
private |
|
private |
Definition at line 1761 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), vigra_ext::CorrelationResult::corrPos, vigra_ext::CorrelationResult::curv, DEBUG_DEBUG, DEBUG_TRACE, HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HUGIN_FT_CORR_THRESHOLD, HUGIN_FT_CURV_THRESHOLD, HUGIN_FT_LOCAL_SEARCH_WIDTH, HUGIN_FT_TEMPLATE_SIZE, hugin_utils::HuginMessageBox(), image1Nr, image2Nr, m_showCorrelation, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, pano, PointFineTuneProjectionAware(), hugin_utils::roundi(), threshold(), hugin_utils::TDiff2D< T >::x, HuginBase::ControlPoint::X_Y, and hugin_utils::TDiff2D< T >::y.
Referenced by MainFrame().
|
private |
event handler for full screen
Definition at line 2147 of file MainFrame.cpp.
References threshold().
Referenced by MainFrame().
|
private |
| void MainFrame::OnIgnoreLineCp | ( | wxCommandEvent & | e | ) |
Definition at line 1589 of file MainFrame.cpp.
References HuginBase::Panorama::changeFinished(), m_optIgnoreLineCp, opt_panel, pano, OptimizePanel::SetIgnoreLineCP(), and threshold().
Referenced by MainFrame().
|
private |
|
private |
event handler called when loading of image file failed
Definition at line 1357 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::Panorama::getImage(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), pano, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1158 of file MainFrame.cpp.
References AddImages(), CloseProject(), DEBUG_TRACE, HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), LOAD_NEW_PROJECT, LoadProjectFile(), and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1646 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), HuginBase::PanoramaMemento::loadPTScript(), m_mruFiles, PreviewFrame::OnUpdate(), pano, preview_frame, HuginBase::Panorama::setMemento(), and threshold().
Referenced by MainFrame().
|
private |
event handler for recently used files
Definition at line 2120 of file MainFrame.cpp.
References CloseProject(), hugin_utils::HuginMessageBox(), LOAD_NEW_PROJECT, LoadProjectFile(), m_mruFiles, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1224 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::CommandHistory::clear(), CloseProject(), PanoCommand::GlobalCmdHist::getInstance(), gl_preview_frame, GUI_SIMPLE, m_filename, m_guiLevel, NEW_PROJECT, PreviewFrame::OnUpdate(), pano, preview_frame, GLPreviewFrame::ResetPreviewZoom(), and threshold().
Referenced by MainFrame().
| void MainFrame::OnOnlyActiveImages | ( | wxCommandEvent & | e | ) |
Definition at line 1565 of file MainFrame.cpp.
References SetOptimizeOnlyActiveImages(), and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1729 of file MainFrame.cpp.
References hugin_utils::HuginMessageBox(), and threshold().
Referenced by MainFrame().
| void MainFrame::OnOptimize | ( | wxCommandEvent & | e | ) |
Definition at line 1558 of file MainFrame.cpp.
References DEBUG_TRACE, OptimizePanel::OnOptimizeButton(), opt_panel, and threshold().
Referenced by MainFrame(), and ImagesPanel::OnOptimizeButton().
| void MainFrame::OnPhotometricOptimize | ( | wxCommandEvent & | e | ) |
Definition at line 1614 of file MainFrame.cpp.
References OptimizePhotometricPanel::OnOptimizeButton(), opt_photo_panel, and threshold().
Referenced by ImagesPanel::OnPhotometricOptimizeButton().
|
private |
Definition at line 1692 of file MainFrame.cpp.
References Papywizard::ImportPapywizardFile(), pano, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1942 of file MainFrame.cpp.
References DEBUG_TRACE, PanoCommand::GlobalCmdHist::getInstance(), and PanoCommand::CommandHistory::redo().
Referenced by MainFrame().
|
private |
Definition at line 1874 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::Panorama::getCtrlPoints(), PanoCommand::GlobalCmdHist::getInstance(), hugin_utils::HuginMessageBox(), pano, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 2444 of file MainFrame.cpp.
References RunAssistant().
Referenced by MainFrame().
|
private |
Definition at line 2449 of file MainFrame.cpp.
References m_userAssistant, RunAssistant(), and threshold().
Referenced by MainFrame().
| void MainFrame::OnSaveProject | ( | wxCommandEvent & | e | ) |
Definition at line 950 of file MainFrame.cpp.
References HuginBase::Panorama::clearDirty(), DEBUG_DEBUG, DEBUG_TRACE, hugin_utils::getPathPrefix(), gl_preview_frame, GUI_SIMPLE, HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), m_filename, m_guiLevel, OnSaveProjectAs(), pano, threshold(), and HuginBase::Panorama::WritePTOFile().
Referenced by CloseProject(), PanoPanel::DoSendToBatch(), MainFrame(), OnSaveProjectAs(), and OnSendToAssistantQueue().
|
private |
Definition at line 987 of file MainFrame.cpp.
References hugin_utils::AskUserOverwrite(), DEBUG_TRACE, getDefaultProjectName(), m_filename, m_mruFiles, OnSaveProject(), pano, and threshold().
Referenced by MainFrame(), and OnSaveProject().
|
private |
Definition at line 1024 of file MainFrame.cpp.
References DEBUG_TRACE, fill_set(), getDefaultProjectName(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HUGIN_CONV_FILENAME, m_filename, pano, HuginBase::Panorama::printStitcherScript(), and threshold().
Referenced by MainFrame().
|
private |
Definition at line 2462 of file MainFrame.cpp.
References getProjectName(), hugin_utils::HuginMessageBox(), OnSaveProject(), threshold(), and hugin_utils::wxQuoteFilename().
Referenced by MainFrame().
|
private |
| void MainFrame::OnSetGuiAdvanced | ( | wxCommandEvent & | e | ) |
Definition at line 2319 of file MainFrame.cpp.
References GetMinimumGuiLevel(), GUI_ADVANCED, GUI_EXPERT, hugin_utils::HuginMessageBox(), pano, SetGuiLevel(), and threshold().
Referenced by MainFrame().
| void MainFrame::OnSetGuiExpert | ( | wxCommandEvent & | e | ) |
Definition at line 2334 of file MainFrame.cpp.
References GUI_EXPERT, and SetGuiLevel().
Referenced by MainFrame().
| void MainFrame::OnSetGuiSimple | ( | wxCommandEvent & | e | ) |
Definition at line 2296 of file MainFrame.cpp.
References GetMinimumGuiLevel(), GUI_ADVANCED, GUI_SIMPLE, hugin_utils::HuginMessageBox(), m_guiLevel, pano, SetGuiLevel(), and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1538 of file MainFrame.cpp.
References cp_frame, DEBUG_TRACE, and pano.
Referenced by MainFrame().
|
private |
Definition at line 1312 of file MainFrame.cpp.
References m_notebook, m_show_opt_panel, m_show_opt_photo_panel, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1482 of file MainFrame.cpp.
References DEBUG_TRACE, gl_preview_frame, HUGIN_SHOW_PROJECTION_HINTS, images_panel, ImagesPanel::ReloadCPDetectorSettings(), GLPreviewFrame::SetShowProjectionHints(), threshold(), and UpdateImageCacheSize().
Referenced by MainFrame().
|
private |
Definition at line 2053 of file MainFrame.cpp.
References DEBUG_TRACE, and threshold().
Referenced by MainFrame().
| void MainFrame::OnTipOfDay | ( | wxCommandEvent & | e | ) |
Definition at line 1455 of file MainFrame.cpp.
References DEBUG_INFO, GetXRCPath(), and threshold().
Referenced by MainFrame(), and huginApp::OnInit().
| void MainFrame::OnToggleGLPreviewFrame | ( | wxCommandEvent & | e | ) |
Definition at line 1512 of file MainFrame.cpp.
References gl_preview_frame, GLPreviewFrame::InitPreviews(), GLPreviewFrame::LoadOpenGLLayout(), GLPreviewFrame::OnShowEvent(), and threshold().
Referenced by MainFrame(), and SetGuiLevel().
| void MainFrame::OnTogglePreviewFrame | ( | wxCommandEvent & | e | ) |
Definition at line 1497 of file MainFrame.cpp.
References DEBUG_TRACE, PreviewFrame::OnUpdate(), preview_frame, and threshold().
Referenced by MainFrame().
|
private |
Definition at line 1929 of file MainFrame.cpp.
References DEBUG_TRACE, PanoCommand::GlobalCmdHist::getInstance(), threshold(), and PanoCommand::CommandHistory::undo().
Referenced by MainFrame().
| void MainFrame::OnUserDefinedStitch | ( | wxCommandEvent & | e | ) |
Definition at line 1628 of file MainFrame.cpp.
References PanoPanel::DoUserDefinedStitch(), and pano_panel.
Referenced by MainFrame().
| void MainFrame::OnUserDefinedStitchSaved | ( | wxCommandEvent & | e | ) |
Definition at line 1633 of file MainFrame.cpp.
References PanoPanel::DoUserDefinedStitch(), m_userOutput, pano_panel, and threshold().
Referenced by MainFrame().
|
private |
|
virtual |
Enable or disable undo and redo.
They should be enabled only when there is a command to act upon.
Implements HuginBase::PanoramaObserver.
Definition at line 772 of file MainFrame.cpp.
References PanoCommand::CommandHistory::canRedo(), PanoCommand::CommandHistory::canUndo(), PanoCommand::GlobalCmdHist::getInstance(), PanoCommand::CommandHistory::getLastCommandName(), HuginBase::Panorama::getOptimizerSwitch(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_notebook, m_show_opt_panel, m_show_opt_photo_panel, m_showCorrelation, opt_panel, opt_photo_panel, pano, and threshold().
Referenced by LoadProjectFile().
|
virtual |
notifies about changes to images
Images might have been added/removed. to find out how many images are still there, use Panorama::getNrOfImages.
| pano | the panorama object that changed |
| changed | set of changed images |
Implements HuginBase::PanoramaObserver.
Definition at line 836 of file MainFrame.cpp.
References DEBUG_TRACE, enableTools(), HuginBase::Panorama::getNrOfImages(), pano, and threshold().
| void MainFrame::RunAssistant | ( | wxWindow * | mainWin, |
| const wxString & | userdefinedAssistant = wxEmptyString |
||
| ) |
Definition at line 2346 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), Components2Str(), HuginQueue::GetAssistantCommandQueue(), HuginQueue::GetAssistantCommandQueueUserDefined(), PanoCommand::GlobalCmdHist::getInstance(), GetMinimumGuiLevel(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HUGIN_CONV_FILENAME, hugin_utils::HuginMessageBox(), m_guiLevel, MyExecuteCommandQueue(), pano, SetGuiLevel(), ShowCtrlPointEditor(), threshold(), and HuginBase::Panorama::WritePTOFile().
Referenced by GLPreviewFrame::OnAlign(), OnRunAssistant(), and OnRunAssistantUserdefined().
| void MainFrame::RunCPGenerator | ( | const HuginBase::UIntSet & | img | ) |
runs the currently selected cp generator on given images
Definition at line 2078 of file MainFrame.cpp.
References images_panel, and ImagesPanel::RunCPGenerator().
| void MainFrame::RunCPGenerator | ( | CPDetectorSetting & | setting, |
| const HuginBase::UIntSet & | img | ||
| ) |
run the cp generator with the given setting on selected images
Definition at line 2073 of file MainFrame.cpp.
References images_panel, ImagesPanel::RunCPGenerator(), and threshold().
Referenced by CPEditorPanel::OnCreateCPButton().
Definition at line 2185 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptimizerSwitch(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), gl_preview_frame, GUI_ADVANCED, GUI_EXPERT, GUI_SIMPLE, images_panel, m_filename, m_guiLevel, m_menu_file_advanced, m_menu_file_simple, OnToggleGLPreviewFrame(), opt_panel, opt_photo_panel, pano, pano_panel, ImagesPanel::SetGuiLevel(), OptimizePanel::SetGuiLevel(), OptimizePhotometricPanel::SetGuiLevel(), PanoPanel::SetGuiLevel(), GLPreviewFrame::SetGuiLevel(), SetGuiLevel(), and threshold().
Referenced by LoadProjectFile(), MainFrame(), OnSetGuiAdvanced(), OnSetGuiExpert(), OnSetGuiSimple(), RunAssistant(), and SetGuiLevel().
sets the status of the "ignore line cp" menu item
Definition at line 1597 of file MainFrame.cpp.
References HuginBase::Panorama::changeFinished(), m_optIgnoreLineCp, pano, and threshold().
Referenced by OptimizePanel::OnCheckIgnoreLineCP().
sets the status of the "optimize only active images" menu item
Definition at line 1570 of file MainFrame.cpp.
References HuginBase::Panorama::changeFinished(), m_optOnlyActiveImages, opt_panel, opt_photo_panel, pano, OptimizePanel::SetOnlyActiveImages(), OptimizePhotometricPanel::SetOnlyActiveImages(), and threshold().
Referenced by MainFrame(), OptimizePanel::OnCheckOnlyActiveImages(), OptimizePhotometricPanel::OnCheckOnlyActiveImages(), and OnOnlyActiveImages().
Definition at line 1951 of file MainFrame.cpp.
References cpe, DEBUG_DEBUG, m_notebook, CPEditorPanel::ShowControlPoint(), and threshold().
Referenced by CPListCtrl::DeleteSelected(), and CPListCtrl::OnCPListSelectionChanged().
opens the control points tab with the both images selected
Definition at line 1958 of file MainFrame.cpp.
References cpe, m_notebook, CPEditorPanel::setLeftImage(), CPEditorPanel::setRightImage(), and threshold().
Referenced by PreviewIdentifyTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), and RunAssistant().
opens the mask/crop editor with the given image selected
Definition at line 1970 of file MainFrame.cpp.
References m_notebook, mask_panel, MaskEditorPanel::setImage(), MaskEditorPanel::SwitchToCropMode(), and threshold().
Referenced by PreviewIdentifyTool::MouseButtonEvent(), ImagesPanel::OnLensTypeChanged(), and ShowFisheyeCropHint().
| void MainFrame::ShowStitcherTab | ( | ) |
opens the stitcher tab
Definition at line 1985 of file MainFrame.cpp.
References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.
|
protectedvirtual |
receive notification about progress.
update the display
Should not be called directly.
| msg | message text |
| progress | optional progress indicator (0-100) |
Implements AppBase::ProgressDisplay.
Definition at line 2006 of file MainFrame.cpp.
References HUGIN_CONV_FILENAME, m_filename, AppBase::ProgressDisplay::m_message, and threshold().
|
private |
Definition at line 268 of file MainFrame.h.
|
private |
Definition at line 264 of file MainFrame.h.
Referenced by OnCPListFrameClosed(), and OnShowCPFrame().
|
private |
Definition at line 253 of file MainFrame.h.
Referenced by MainFrame(), ShowCtrlPoint(), and ShowCtrlPointEditor().
|
private |
Definition at line 263 of file MainFrame.h.
Referenced by getGLPreview(), LoadProjectFile(), MainFrame(), OnExit(), OnNewProject(), OnSaveProject(), OnShowPrefs(), OnToggleGLPreviewFrame(), and SetGuiLevel().
|
private |
Definition at line 251 of file MainFrame.h.
Referenced by GetCurrentOptimizerString(), GetDefaultSetting(), GetSelectedCPGenerator(), MainFrame(), OnShowPrefs(), RunCPGenerator(), RunCPGenerator(), and SetGuiLevel().
|
private |
Definition at line 287 of file MainFrame.h.
Referenced by enableTools(), and MainFrame().
|
private |
Definition at line 277 of file MainFrame.h.
Referenced by getProjectName(), LoadProjectFile(), OnNewProject(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), SetGuiLevel(), and updateProgressDisplay().
|
private |
Definition at line 265 of file MainFrame.h.
Referenced by GetGuiLevel(), LoadProjectFile(), MainFrame(), OnAddImages(), OnAddTimeImages(), OnExit(), OnNewProject(), OnSaveProject(), OnSetGuiSimple(), RunAssistant(), SetGuiLevel(), and ~MainFrame().
|
private |
Definition at line 292 of file MainFrame.h.
Referenced by GetHelpController().
|
private |
Definition at line 285 of file MainFrame.h.
Referenced by enableTools(), MainFrame(), SetGuiLevel(), and ~MainFrame().
|
private |
Definition at line 284 of file MainFrame.h.
Referenced by MainFrame(), SetGuiLevel(), and ~MainFrame().
|
private |
Definition at line 248 of file MainFrame.h.
Referenced by GetFileHistory(), LoadProjectFile(), MainFrame(), OnMergeProject(), OnMRUFiles(), OnSaveProjectAs(), and ~MainFrame().
|
private |
Definition at line 249 of file MainFrame.h.
Referenced by MainFrame(), OnShowPanel(), panoramaChanged(), ShowCtrlPoint(), ShowCtrlPointEditor(), ShowMaskEditor(), and ShowStitcherTab().
|
private |
Definition at line 290 of file MainFrame.h.
Referenced by GetOptimizeIgnoreLineCp(), MainFrame(), OnIgnoreLineCp(), and SetOptimizeIgnoreLineCp().
|
private |
Definition at line 289 of file MainFrame.h.
Referenced by GetOptimizeOnlyActiveImages(), MainFrame(), SetOptimizeOnlyActiveImages(), and ~MainFrame().
|
private |
Definition at line 286 of file MainFrame.h.
Referenced by enableTools(), and MainFrame().
|
private |
Definition at line 255 of file MainFrame.h.
Referenced by MainFrame(), OnShowPanel(), panoramaChanged(), and ShowStitcherTab().
|
private |
Definition at line 257 of file MainFrame.h.
Referenced by MainFrame(), OnShowPanel(), panoramaChanged(), and ShowStitcherTab().
|
private |
Definition at line 279 of file MainFrame.h.
Referenced by IsShowingCorrelation(), OnFineTuneAll(), and panoramaChanged().
|
staticprivate |
Definition at line 282 of file MainFrame.h.
Referenced by Get(), and MainFrame().
Definition at line 300 of file MainFrame.h.
Referenced by MainFrame(), and OnRunAssistantUserdefined().
Definition at line 299 of file MainFrame.h.
Referenced by MainFrame(), and OnUserDefinedStitchSaved().
|
private |
Definition at line 252 of file MainFrame.h.
Referenced by MainFrame(), and ShowMaskEditor().
|
private |
Definition at line 254 of file MainFrame.h.
Referenced by MainFrame(), OnIgnoreLineCp(), OnOptimize(), panoramaChanged(), SetGuiLevel(), and SetOptimizeOnlyActiveImages().
|
private |
Definition at line 256 of file MainFrame.h.
Referenced by MainFrame(), OnPhotometricOptimize(), panoramaChanged(), SetGuiLevel(), and SetOptimizeOnlyActiveImages().
|
private |
Definition at line 274 of file MainFrame.h.
Referenced by AddImages(), CloseProject(), getPanorama(), LoadProjectFile(), MainFrame(), OnAddImages(), OnAddTimeImages(), OnApplyTemplate(), OnFineTuneAll(), OnIgnoreLineCp(), OnLoadingFailed(), OnMergeProject(), OnNewProject(), OnReadPapywizard(), OnRemoveCPinMasks(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), OnSetGuiAdvanced(), OnSetGuiSimple(), OnShowCPFrame(), panoramaChanged(), panoramaImagesChanged(), RunAssistant(), SetGuiLevel(), SetOptimizeIgnoreLineCp(), SetOptimizeOnlyActiveImages(), and ~MainFrame().
|
private |
Definition at line 258 of file MainFrame.h.
Referenced by MainFrame(), OnDoStitch(), OnUserDefinedStitch(), OnUserDefinedStitchSaved(), and SetGuiLevel().
|
private |
Definition at line 262 of file MainFrame.h.
Referenced by LoadProjectFile(), MainFrame(), OnExit(), OnMergeProject(), OnNewProject(), and OnTogglePreviewFrame().
|
private |
Definition at line 259 of file MainFrame.h.
Referenced by GetSVMModel(), MainFrame(), and ~MainFrame().