Hugintrunk
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. More... | |
virtual | ~MainFrame () |
dtor. More... | |
virtual void | panoramaChanged (HuginBase::Panorama &pano) |
Enable or disable undo and redo. More... | |
void | panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr) |
notifies about changes to images More... | |
const HuginBase::Panorama & | getPanorama () |
returns panorama object More... | |
void | ShowCtrlPoint (unsigned int cpNr) |
const wxString & | GetXRCPath () |
get the path to the xrc directory More... | |
const wxString & | GetDataPath () |
get the path to data directory More... | |
void | SetOptimizeOnlyActiveImages (const bool onlyActive) |
sets the status of the "optimize only active images" menu item More... | |
const bool | GetOptimizeOnlyActiveImages () const |
void | SetOptimizeIgnoreLineCp (const bool ignoreLineCP) |
sets the status of the "ignore line cp" menu item More... | |
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 More... | |
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 More... | |
void | ShowCtrlPointEditor (unsigned int img1, unsigned int img2) |
opens the control points tab with the both images selected More... | |
void | ShowMaskEditor (size_t imgNr, bool switchToCropMode=false) |
opens the mask/crop editor with the given image selected More... | |
void | ShowStitcherTab () |
opens the stitcher tab More... | |
void | OnCPListFrameClosed () |
CPDetectorSetting & | GetDefaultSetting () |
returns default cp detector setting More... | |
void | RunCPGenerator (CPDetectorSetting &setting, const HuginBase::UIntSet &img) |
run the cp generator with the given setting on selected images More... | |
void | RunCPGenerator (const HuginBase::UIntSet &img) |
runs the currently selected cp generator on given images More... | |
const wxString | GetSelectedCPGenerator () |
return the currently selected cp generator description More... | |
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 More... | |
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 More... | |
void | taskFinished () |
call when a task has finished and the status message should be cleared More... | |
bool | updateDisplay () |
updates the display, return true, if update was successful, false if cancel was pressed More... | |
bool | updateDisplay (const std::string &message) |
bool | updateDisplayValue () |
void | setMaximum (int newMaximum) |
sets the new maximum value of the progress value More... | |
bool | wasCancelled () |
return true, if process should be canceled by user e.g. More... | |
Static Public Member Functions | |
static MainFrame * | Get () |
hack.. kind of a pseudo singleton... More... | |
Protected Member Functions | |
void | updateProgressDisplay () |
receive notification about progress. More... | |
Protected Member Functions inherited from AppBase::ProgressDisplay | |
ProgressDisplay (int maximum=0) | |
constructor More... | |
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 More... | |
void | OnFullScreen (wxCommandEvent &e) |
event handler for full screen More... | |
void | OnSize (wxSizeEvent &e) |
void | enableTools (bool option) |
void | AddImages (wxArrayString &filenameArray) |
adds the given files to the projects, with checking for invalid filenames More... | |
void | OnShowPanel (wxCommandEvent &e) |
void | OnLoadingFailed (wxCommandEvent &e) |
event handler called when loading of image file failed More... | |
Private Attributes | |
wxFileHistory | m_mruFiles |
wxNotebook * | m_notebook |
ImagesPanel * | images_panel |
MaskEditorPanel * | mask_panel |
CPEditorPanel * | cpe |
OptimizePanel * | opt_panel |
bool | m_show_opt_panel |
OptimizePhotometricPanel * | opt_photo_panel |
bool | m_show_opt_photo_panel |
PanoPanel * | pano_panel |
struct celeste::svm_model * | svmModel |
PreviewFrame * | preview_frame |
GLPreviewFrame * | gl_preview_frame |
CPListFrame * | cp_frame |
GuiLevel | m_guiLevel |
ImgPreview * | canvas |
HuginBase::Panorama & | pano |
wxString | m_filename |
int | m_showCorrelation =0 |
wxMenu * | m_menu_file_simple |
wxMenu * | m_menu_file_advanced |
wxMenuItem * | m_outputUserMenu = nullptr |
wxMenuItem * | m_assistantUserMenu = nullptr |
bool | m_optOnlyActiveImages |
bool | m_optIgnoreLineCp |
wxHelpController | m_HelpController |
std::map< int, wxString > | m_userOutput |
std::map< int, wxString > | m_userAssistant |
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 312 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(), PluginItem::GetCategory(), GetDataPath(), PluginItem::GetDescription(), PluginItem::GetFilename(), hugin_utils::GetHuginVersion(), PluginItem::GetName(), HuginQueue::GetSettingStringTranslated(), hugin_utils::GetUserAppDataDir(), GetXRCPath(), huginApp::GetXRCPath(), gl_preview_frame, GUI_ADVANCED, GUI_SIMPLE, HUGIN_IMGCACHE_UPPERBOUND, images_panel, OptimizePhotometricPanel::Init(), ImagesPanel::Init(), OptimizePanel::Init(), PanoPanel::Init(), MaskEditorPanel::Init(), CPEditorPanel::Init(), PluginItem::IsAPIValid(), 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, OnRunAssistantUserdefined(), OnUserDefinedStitchSaved(), opt_panel, opt_photo_panel, pano_panel, PanoPanel::panoramaChanged(), preview_frame, SetGuiLevel(), SetOptimizeOnlyActiveImages(), svmModel, wxIDPYTHONSCRIPTS, wxIDUSERASSISTANT, and wxIDUSEROUTPUTSEQUENCE.
|
virtual |
dtor.
Definition at line 767 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(), StoreFramePosition(), and svmModel.
|
private |
adds the given files to the projects, with checking for invalid filenames
Definition at line 1314 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), containsInvalidCharacters(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, pano, and ShowFilenameWarning().
Referenced by OnLoadProject().
bool MainFrame::CloseProject | ( | bool | cancelable, |
CloseReason | reason | ||
) |
Definition at line 884 of file MainFrame.cpp.
References CLOSE_PROGRAM, HuginBase::Panorama::isDirty(), LOAD_NEW_PROJECT, NEW_PROJECT, OnSaveProject(), and pano.
Referenced by OnBrowseProjects(), PanoDropTarget::OnDropFiles(), OnExit(), OnLoadProject(), OnMRUFiles(), and OnNewProject().
void MainFrame::DisableOpenGLTools | ( | ) |
disables all OpenGL related menu items and toobar buttons
Definition at line 2424 of file MainFrame.cpp.
Referenced by MainFrame().
void MainFrame::DisplayHelp | ( | wxString | section = wxEmptyString | ) |
call help browser with given file
Definition at line 1499 of file MainFrame.cpp.
References GetHelpController().
Referenced by PanoPanel::OnBlenderOptions(), OnFAQ(), PanoPanel::OnFusionOptions(), ImageVariableDialog::OnHelp(), PreferencesDialog::OnHelp(), OnHelp(), and OnKeyboardHelp().
|
private |
Definition at line 2095 of file MainFrame.cpp.
References m_assistantUserMenu, m_menu_file_advanced, and m_outputUserMenu.
Referenced by MainFrame(), and panoramaImagesChanged().
|
static |
hack.. kind of a pseudo singleton...
Definition at line 2169 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(), CPListFrame::OnClose(), GLPreviewFrame::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(), OptimizePhotometricPanel::OnReset(), OptimizePanel::OnReset(), MaskImageCtrl::OnRightMouseUp(), CPListFrame::OnSelectButton(), GLPreviewFrame::OnShowMainFrame(), PreferencesDialog::OnUpdateOutputFilename(), PreferencesDialog::OnUpdateProjectFilename(), CPListCtrl::panoramaChanged(), CPEditorPanel::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 2617 of file MainFrame.cpp.
References ImagesPanel::GetCurrentOptimizerString(), and images_panel.
const wxString & MainFrame::GetDataPath | ( | ) |
get the path to data directory
Definition at line 2163 of file MainFrame.cpp.
Referenced by MainFrame().
CPDetectorSetting & MainFrame::GetDefaultSetting | ( | ) |
returns default cp detector setting
Definition at line 2138 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 2250 of file MainFrame.cpp.
References gl_preview_frame.
Referenced by huginApp::OnInit(), and ImagesTreeCtrl::OnLeftUp().
|
inline |
Definition at line 185 of file MainFrame.h.
References m_guiLevel.
Referenced by huginApp::OnInit(), OptimizePhotometricPanel::OnReset(), and OptimizePanel::OnReset().
|
inline |
Definition at line 183 of file MainFrame.h.
References m_HelpController.
Referenced by DisplayHelp(), and huginApp::OnInit().
const bool MainFrame::GetOptimizeIgnoreLineCp | ( | ) | const |
Definition at line 1680 of file MainFrame.cpp.
References m_optIgnoreLineCp.
const bool MainFrame::GetOptimizeOnlyActiveImages | ( | ) | const |
Definition at line 1655 of file MainFrame.cpp.
References m_optOnlyActiveImages.
Referenced by CPListCtrl::panoramaChanged().
|
inline |
wxString MainFrame::getProjectName | ( | ) |
Definition at line 2180 of file MainFrame.cpp.
References m_filename.
Referenced by PanoPanel::DoSendToBatch(), and OnSendToAssistantQueue().
const wxString MainFrame::GetSelectedCPGenerator | ( | ) |
return the currently selected cp generator description
Definition at line 2153 of file MainFrame.cpp.
References ImagesPanel::GetSelectedCPGenerator(), and images_panel.
struct celeste::svm_model * MainFrame::GetSVMModel | ( | ) |
Definition at line 2226 of file MainFrame.cpp.
References huginApp::Get(), huginApp::GetDataPath(), HUGIN_CELESTE_MODEL, HUGIN_CONV_FILENAME, celeste::loadSVMmodel(), and svmModel.
Referenced by PanoOperation::CelesteOperation::GetInternalCommand(), and CPEditorPanel::OnCelesteButton().
const wxString & MainFrame::GetXRCPath | ( | ) |
get the path to the xrc directory
Definition at line 2158 of file MainFrame.cpp.
References huginApp::Get(), and huginApp::GetXRCPath().
Referenced by MainFrame(), and OnTipOfDay().
bool MainFrame::IsShowingCorrelation | ( | ) | const |
Definition at line 2185 of file MainFrame.cpp.
References m_showCorrelation.
Referenced by CPListFrame::OnSelectButton(), CPListCtrl::panoramaChanged(), and CPEditorPanel::panoramaChanged().
void MainFrame::LoadProjectFile | ( | const wxString & | filename | ) |
Definition at line 1094 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::CommandHistory::clear(), PanoCommand::CommandHistory::clearRedoQueue(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, deregisterPTWXDlgFcn(), PanoCommand::GlobalCmdHist::getInstance(), PanoCommand::CommandHistory::getLastCommand(), GetMinimumGuiLevel(), HuginBase::Panorama::getNrOfImages(), gl_preview_frame, GUI_SIMPLE, HUGIN_CONV_FILENAME, m_filename, m_guiLevel, m_mruFiles, PreviewFrame::OnUpdate(), pano, panoramaChanged(), preview_frame, registerPTWXDlgFcn(), GLPreviewFrame::ResetPreviewZoom(), SetGuiLevel(), PanoCommand::CommandHistory::undo(), and PanoCommand::PanoCommand::wasSuccessful().
Referenced by OnBrowseProjects(), PanoDropTarget::OnDropFiles(), huginApp::OnInit(), OnLoadProject(), and OnMRUFiles().
|
private |
Definition at line 1445 of file MainFrame.cpp.
void MainFrame::OnAddImages | ( | wxCommandEvent & | e | ) |
Definition at line 1300 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), DEBUG_TRACE, PanoOperation::PanoOperation::GetCommand(), PanoCommand::GlobalCmdHist::getInstance(), m_guiLevel, and pano.
|
private |
Definition at line 1347 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoOperation::PanoOperation::GetCommand(), PanoCommand::GlobalCmdHist::getInstance(), m_guiLevel, and pano.
|
private |
Definition at line 1776 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, and pano.
|
private |
Definition at line 1249 of file MainFrame.cpp.
References CloseProject(), LOAD_NEW_PROJECT, and LoadProjectFile().
void MainFrame::OnCPListFrameClosed | ( | ) |
Definition at line 1624 of file MainFrame.cpp.
References cp_frame.
Referenced by CPListFrame::OnClose().
void MainFrame::OnDoStitch | ( | wxCommandEvent & | e | ) |
Definition at line 1691 of file MainFrame.cpp.
References DEBUG_TRACE, and pano_panel.
Referenced by GLPreviewFrame::OnCreate().
|
private |
Definition at line 945 of file MainFrame.cpp.
References CLOSE_PROGRAM, CloseProject(), DEBUG_TRACE, gl_preview_frame, GUI_SIMPLE, m_guiLevel, preview_frame, and GLPreviewFrame::StorePositionAndSize().
|
private |
Definition at line 1493 of file MainFrame.cpp.
References DisplayHelp().
|
private |
Definition at line 1831 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, m_showCorrelation, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, pano, PointFineTuneProjectionAware(), hugin_utils::roundi(), hugin_utils::TDiff2D< T >::x, HuginBase::ControlPoint::X_Y, and hugin_utils::TDiff2D< T >::y.
|
private |
event handler for full screen
Definition at line 2217 of file MainFrame.cpp.
|
private |
Definition at line 1483 of file MainFrame.cpp.
References DisplayHelp().
void MainFrame::OnIgnoreLineCp | ( | wxCommandEvent & | e | ) |
Definition at line 1660 of file MainFrame.cpp.
References HuginBase::Panorama::changeFinished(), m_optIgnoreLineCp, opt_panel, pano, and OptimizePanel::SetIgnoreLineCP().
|
private |
Definition at line 1488 of file MainFrame.cpp.
References DisplayHelp().
|
private |
event handler called when loading of image file failed
Definition at line 1403 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::Panorama::getImage(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, and pano.
|
private |
Definition at line 1199 of file MainFrame.cpp.
References AddImages(), CloseProject(), DEBUG_TRACE, HUGIN_CONV_FILENAME, LOAD_NEW_PROJECT, and LoadProjectFile().
|
private |
Definition at line 1716 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, HuginBase::PanoramaMemento::loadPTScript(), m_mruFiles, PreviewFrame::OnUpdate(), pano, preview_frame, and HuginBase::Panorama::setMemento().
|
private |
event handler for recently used files
Definition at line 2190 of file MainFrame.cpp.
References CloseProject(), LOAD_NEW_PROJECT, LoadProjectFile(), and m_mruFiles.
|
private |
Definition at line 1270 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, and GLPreviewFrame::ResetPreviewZoom().
void MainFrame::OnOnlyActiveImages | ( | wxCommandEvent & | e | ) |
Definition at line 1636 of file MainFrame.cpp.
References SetOptimizeOnlyActiveImages().
|
private |
Definition at line 1799 of file MainFrame.cpp.
void MainFrame::OnOptimize | ( | wxCommandEvent & | e | ) |
Definition at line 1629 of file MainFrame.cpp.
References DEBUG_TRACE, OptimizePanel::OnOptimizeButton(), and opt_panel.
Referenced by ImagesPanel::OnOptimizeButton().
void MainFrame::OnPhotometricOptimize | ( | wxCommandEvent & | e | ) |
Definition at line 1685 of file MainFrame.cpp.
References OptimizePhotometricPanel::OnOptimizeButton(), and opt_photo_panel.
Referenced by ImagesPanel::OnPhotometricOptimizeButton().
|
private |
Definition at line 1762 of file MainFrame.cpp.
References Papywizard::ImportPapywizardFile(), and pano.
|
private |
Definition at line 2012 of file MainFrame.cpp.
References DEBUG_TRACE, PanoCommand::GlobalCmdHist::getInstance(), and PanoCommand::CommandHistory::redo().
|
private |
Definition at line 1944 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::getCPinMasks(), HuginBase::Panorama::getCtrlPoints(), PanoCommand::GlobalCmdHist::getInstance(), and pano.
|
private |
Definition at line 2529 of file MainFrame.cpp.
References RunAssistant().
|
private |
Definition at line 2534 of file MainFrame.cpp.
References m_userAssistant, and RunAssistant().
Referenced by MainFrame().
void MainFrame::OnSaveProject | ( | wxCommandEvent & | e | ) |
Definition at line 991 of file MainFrame.cpp.
References HuginBase::Panorama::clearDirty(), DEBUG_DEBUG, DEBUG_TRACE, hugin_utils::getPathPrefix(), gl_preview_frame, GUI_SIMPLE, HUGIN_CONV_FILENAME, m_filename, m_guiLevel, OnSaveProjectAs(), pano, and HuginBase::Panorama::WritePTOFile().
Referenced by CloseProject(), PanoPanel::DoSendToBatch(), OnSaveProjectAs(), and OnSendToAssistantQueue().
|
private |
Definition at line 1027 of file MainFrame.cpp.
References DEBUG_TRACE, getDefaultProjectName(), m_filename, m_mruFiles, OnSaveProject(), and pano.
Referenced by OnSaveProject().
|
private |
Definition at line 1065 of file MainFrame.cpp.
References DEBUG_TRACE, fill_set(), getDefaultProjectName(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HUGIN_CONV_FILENAME, m_filename, pano, and HuginBase::Panorama::printStitcherScript().
|
private |
Definition at line 2547 of file MainFrame.cpp.
References hugin_utils::FileExists(), getProjectName(), OnSaveProject(), and hugin_utils::wxQuoteFilename().
|
private |
void MainFrame::OnSetGuiAdvanced | ( | wxCommandEvent & | e | ) |
Definition at line 2399 of file MainFrame.cpp.
References GetMinimumGuiLevel(), GUI_ADVANCED, GUI_EXPERT, pano, and SetGuiLevel().
void MainFrame::OnSetGuiExpert | ( | wxCommandEvent & | e | ) |
Definition at line 2419 of file MainFrame.cpp.
References GUI_EXPERT, and SetGuiLevel().
void MainFrame::OnSetGuiSimple | ( | wxCommandEvent & | e | ) |
Definition at line 2366 of file MainFrame.cpp.
References GetMinimumGuiLevel(), GUI_ADVANCED, GUI_SIMPLE, m_guiLevel, pano, and SetGuiLevel().
|
private |
Definition at line 1609 of file MainFrame.cpp.
References cp_frame, DEBUG_TRACE, and pano.
|
private |
Definition at line 1358 of file MainFrame.cpp.
References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.
|
private |
Definition at line 1538 of file MainFrame.cpp.
References DEBUG_TRACE, gl_preview_frame, HUGIN_IMGCACHE_UPPERBOUND, HUGIN_SHOW_PROJECTION_HINTS, images_panel, ImagesPanel::ReloadCPDetectorSettings(), and GLPreviewFrame::SetShowProjectionHints().
|
private |
Definition at line 2123 of file MainFrame.cpp.
References DEBUG_TRACE.
void MainFrame::OnTipOfDay | ( | wxCommandEvent & | e | ) |
Definition at line 1511 of file MainFrame.cpp.
References DEBUG_INFO, and GetXRCPath().
Referenced by huginApp::OnInit().
void MainFrame::OnToggleGLPreviewFrame | ( | wxCommandEvent & | e | ) |
Definition at line 1583 of file MainFrame.cpp.
References gl_preview_frame, GLPreviewFrame::InitPreviews(), GLPreviewFrame::LoadOpenGLLayout(), and GLPreviewFrame::OnShowEvent().
Referenced by SetGuiLevel().
void MainFrame::OnTogglePreviewFrame | ( | wxCommandEvent & | e | ) |
Definition at line 1568 of file MainFrame.cpp.
References DEBUG_TRACE, PreviewFrame::OnUpdate(), and preview_frame.
|
private |
Definition at line 1999 of file MainFrame.cpp.
References DEBUG_TRACE, PanoCommand::GlobalCmdHist::getInstance(), and PanoCommand::CommandHistory::undo().
void MainFrame::OnUserDefinedStitch | ( | wxCommandEvent & | e | ) |
Definition at line 1698 of file MainFrame.cpp.
References PanoPanel::DoUserDefinedStitch(), and pano_panel.
void MainFrame::OnUserDefinedStitchSaved | ( | wxCommandEvent & | e | ) |
Definition at line 1703 of file MainFrame.cpp.
References PanoPanel::DoUserDefinedStitch(), m_userOutput, and pano_panel.
Referenced by MainFrame().
|
private |
Definition at line 879 of file MainFrame.cpp.
|
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 808 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, and opt_photo_panel.
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 872 of file MainFrame.cpp.
References DEBUG_TRACE, enableTools(), HuginBase::Panorama::getNrOfImages(), and pano.
void MainFrame::RunAssistant | ( | wxWindow * | mainWin, |
const wxString & | userdefinedAssistant = wxEmptyString |
||
) |
Definition at line 2431 of file MainFrame.cpp.
References PanoCommand::CommandHistory::addCommand(), Components2Str(), HuginQueue::GetAssistantCommandQueue(), HuginQueue::GetAssistantCommandQueueUserDefined(), HuginGraph::ImageGraph::GetComponents(), PanoCommand::GlobalCmdHist::getInstance(), GetMinimumGuiLevel(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HUGIN_CONV_FILENAME, m_guiLevel, MyExecuteCommandQueue(), pano, SetGuiLevel(), ShowCtrlPointEditor(), and HuginBase::Panorama::WritePTOFile().
Referenced by GLPreviewFrame::OnAlign(), OnRunAssistant(), and OnRunAssistantUserdefined().
void MainFrame::RunCPGenerator | ( | CPDetectorSetting & | setting, |
const HuginBase::UIntSet & | img | ||
) |
run the cp generator with the given setting on selected images
Definition at line 2143 of file MainFrame.cpp.
References images_panel, and ImagesPanel::RunCPGenerator().
Referenced by CPEditorPanel::OnCreateCPButton().
void MainFrame::RunCPGenerator | ( | const HuginBase::UIntSet & | img | ) |
runs the currently selected cp generator on given images
Definition at line 2148 of file MainFrame.cpp.
References images_panel, and ImagesPanel::RunCPGenerator().
void MainFrame::SetGuiLevel | ( | GuiLevel | newLevel | ) |
Definition at line 2255 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, OptimizePhotometricPanel::SetGuiLevel(), OptimizePanel::SetGuiLevel(), ImagesPanel::SetGuiLevel(), PanoPanel::SetGuiLevel(), and GLPreviewFrame::SetGuiLevel().
Referenced by LoadProjectFile(), MainFrame(), OnSetGuiAdvanced(), OnSetGuiExpert(), OnSetGuiSimple(), and RunAssistant().
void MainFrame::SetOptimizeIgnoreLineCp | ( | const bool | ignoreLineCP | ) |
sets the status of the "ignore line cp" menu item
Definition at line 1668 of file MainFrame.cpp.
References HuginBase::Panorama::changeFinished(), m_optIgnoreLineCp, and pano.
Referenced by OptimizePanel::OnCheckIgnoreLineCP().
void MainFrame::SetOptimizeOnlyActiveImages | ( | const bool | onlyActive | ) |
sets the status of the "optimize only active images" menu item
Definition at line 1641 of file MainFrame.cpp.
References HuginBase::Panorama::changeFinished(), m_optOnlyActiveImages, opt_panel, opt_photo_panel, pano, OptimizePhotometricPanel::SetOnlyActiveImages(), and OptimizePanel::SetOnlyActiveImages().
Referenced by MainFrame(), OptimizePanel::OnCheckOnlyActiveImages(), OptimizePhotometricPanel::OnCheckOnlyActiveImages(), and OnOnlyActiveImages().
void MainFrame::ShowCtrlPoint | ( | unsigned int | cpNr | ) |
Definition at line 2021 of file MainFrame.cpp.
References cpe, DEBUG_DEBUG, m_notebook, and CPEditorPanel::ShowControlPoint().
Referenced by CPListCtrl::DeleteSelected(), and CPListCtrl::OnCPListSelectionChanged().
void MainFrame::ShowCtrlPointEditor | ( | unsigned int | img1, |
unsigned int | img2 | ||
) |
opens the control points tab with the both images selected
Definition at line 2028 of file MainFrame.cpp.
References cpe, m_notebook, CPEditorPanel::setLeftImage(), and CPEditorPanel::setRightImage().
Referenced by PreviewIdentifyTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), and RunAssistant().
void MainFrame::ShowMaskEditor | ( | size_t | imgNr, |
bool | switchToCropMode = false |
||
) |
opens the mask/crop editor with the given image selected
Definition at line 2040 of file MainFrame.cpp.
References m_notebook, mask_panel, MaskEditorPanel::setImage(), and MaskEditorPanel::SwitchToCropMode().
Referenced by PreviewIdentifyTool::MouseButtonEvent(), ImagesPanel::OnLensTypeChanged(), and ShowFisheyeCropHint().
void MainFrame::ShowStitcherTab | ( | ) |
opens the stitcher tab
Definition at line 2055 of file MainFrame.cpp.
References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.
Referenced by PanoPanel::CheckFreeSpace(), and PanoPanel::CheckGoodSize().
|
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 2076 of file MainFrame.cpp.
References HUGIN_CONV_FILENAME, m_filename, and AppBase::ProgressDisplay::m_message.
|
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(), 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().
|
private |
Definition at line 300 of file MainFrame.h.
Referenced by MainFrame(), and OnRunAssistantUserdefined().
|
private |
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(), OnAddImages(), OnAddTimeImages(), OnApplyTemplate(), OnFineTuneAll(), OnIgnoreLineCp(), OnLoadingFailed(), OnMergeProject(), OnNewProject(), OnReadPapywizard(), OnRemoveCPinMasks(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), OnSetGuiAdvanced(), OnSetGuiSimple(), OnShowCPFrame(), 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().