#include <MainFrame.h>
Inheritance diagram for MainFrame:

Public Member Functions | |
| MainFrame (wxWindow *parent, PT::Panorama &pano) | |
| ctor. | |
| virtual | ~MainFrame () |
| dtor. | |
| virtual void | panoramaChanged (PT::Panorama &pano) |
| Enable or disable undo and redo. | |
| void | panoramaImagesChanged (PT::Panorama &pano, const PT::UIntSet &imgNr) |
| const PT::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 | OnTipOfDay (wxCommandEvent &e) |
| void | LoadProjectFile (const wxString &filename) |
| void | RunAssistant (wxWindow *mainWin) |
| void | DisableOpenGLTools () |
| disables all OpenGL related menu items and toobar buttons | |
| bool | CloseProject (bool cancelable) |
| void | OnOptimize (wxCommandEvent &e) |
| void | OnPhotometricOptimize (wxCommandEvent &e) |
| void | OnDoStitch (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) |
| 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) |
| opens the mask/crop editor with the given image selected | |
| void | ShowStitcherTab () |
| opens the stitcher tab | |
| void | resetProgress (double max) |
| bool | increaseProgress (double delta) |
| bool | increaseProgress (double delta, const std::string &msg) |
| void | setMessage (const std::string &msg) |
| change the message text of the current task | |
| void | OnCPListFrameClosed () |
| CPDetectorSetting & | GetDefaultSetting () |
| returns default cp detector setting | |
| wxString | getProjectName () |
| celeste::svm_model * | GetSVMModel () |
| GLPreviewFrame * | getGLPreview () |
| void | SetGuiLevel (GuiLevel newLevel) |
| const GuiLevel | GetGuiLevel () const |
| wxFileHistory * | GetFileHistory () |
Static Public Member Functions | |
| MainFrame * | Get () |
| hack.. kind of a pseudo singleton... | |
Protected Member Functions | |
| void | updateProgressDisplay () |
| receive notification about progress. | |
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 | OnNewProject (wxCommandEvent &e) |
| void | OnAddTimeImages (wxCommandEvent &e) |
| void | OnRunAssistant (wxCommandEvent &e) |
| void | OnFineTuneAll (wxCommandEvent &e) |
| void | OnRemoveCPinMasks (wxCommandEvent &e) |
| void | OnMergeProject (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 | UpdatePanels (wxCommandEvent &e) |
| 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 | OnShowDonate (wxCommandEvent &e) |
| void | OnShowPanel (wxCommandEvent &e) |
| bool | displayProgress () |
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 |
| celeste::svm_model * | svmModel |
| PreviewFrame * | preview_frame |
| GLPreviewFrame * | gl_preview_frame |
| CPListFrame * | cp_frame |
| GuiLevel | m_guiLevel |
| ImgPreview * | canvas |
| PT::Panorama & | pano |
| wxString | m_filename |
| wxMenu * | m_menu_file_simple |
| wxMenu * | m_menu_file_advanced |
| double | m_progressMax |
| double | m_progress |
| wxString | m_progressMsg |
Static Private Attributes | |
| MainFrame * | m_this = 0 |
It contains the menu & statusbar and a big notebook with the different tabs. It also holds the Panorama model.
it therefor also hold operations that determine the lifecycle of the panorama object (new, open, save, quit).
Definition at line 86 of file MainFrame.h.
|
||||||||||||
|
|
dtor.
Definition at line 583 of file MainFrame.cpp. References PanoOperation::CleanPanoOperationVector(), DEBUG_DEBUG, DEBUG_TRACE, celeste::destroySVMmodel(), GlobalCmdHist::getInstance(), m_guiLevel, m_mruFiles, pano, HuginBase::Panorama::removeObserver(), StoreFramePosition(), and svmModel. |
|
|
adds the given files to the projects, with checking for invalid filenames
Definition at line 1079 of file MainFrame.cpp. References CommandHistory::addCommand(), containsInvalidCharacters(), GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, pano, and ShowFilenameWarning(). Referenced by OnLoadProject(). |
|
|
Definition at line 690 of file MainFrame.cpp. References HuginBase::Panorama::isDirty(), OnSaveProject(), and pano. Referenced by GLPreviewFrame::OnClose(), PanoDropTarget::OnDropFiles(), OnExit(), OnLoadProject(), and OnNewProject(). |
|
|
disables all OpenGL related menu items and toobar buttons
Definition at line 2185 of file MainFrame.cpp. |
|
|
call help browser with given file
Definition at line 1229 of file MainFrame.cpp. References DEBUG_INFO, DEBUG_TRACE, huginApp::Get(), huginApp::GetLocale(), and GetXRCPath(). Referenced by OnFAQ(), PreferencesDialog::OnHelp(), OnHelp(), ImageVariableDialog::OnHelp(), and OnKeyboardHelp(). |
|
|
Definition at line 1920 of file MainFrame.cpp. References m_progress, m_progressMax, and m_progressMsg. Referenced by increaseProgress(). |
|
|
Definition at line 1834 of file MainFrame.cpp. Referenced by panoramaImagesChanged(). |
|
|
|
get the path to data directory
Definition at line 1871 of file MainFrame.cpp. References huginApp::GetDataPath(). |
|
|
returns default cp detector setting
Definition at line 1861 of file MainFrame.cpp. References ImagesPanel::GetDefaultSetting(), and images_panel. |
|
|
Definition at line 174 of file MainFrame.h. Referenced by GLPreviewFrame::GLPreviewFrame(). |
|
|
Definition at line 2013 of file MainFrame.cpp. Referenced by huginApp::OnInit(). |
|
|
Definition at line 172 of file MainFrame.h. References GuiLevel. Referenced by huginApp::OnInit(), OptimizePhotometricPanel::OnReset(), and OptimizePanel::OnReset(). |
|
|
returns panorama object
Definition at line 104 of file MainFrame.h. |
|
|
Definition at line 1938 of file MainFrame.cpp. Referenced by PanoPanel::DoSendToBatch(), and OnSendToAssistantQueue(). |
|
|
Definition at line 1989 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(). |
|
|
get the path to the xrc directory
Definition at line 1866 of file MainFrame.cpp. References huginApp::Get(), and huginApp::GetXRCPath(). Referenced by DisplayHelp(). |
|
||||||||||||
|
Reimplemented from AppBase::ProgressReporter. Definition at line 1906 of file MainFrame.cpp. References displayProgress(), m_progress, and m_progressMsg. |
|
|
Implements AppBase::ProgressReporter. Definition at line 1895 of file MainFrame.cpp. References displayProgress(), m_progress, and m_progressMax. Referenced by PanoOperation::CelesteOperation::GetInternalCommand(). |
|
|
Definition at line 912 of file MainFrame.cpp. References CommandHistory::addCommand(), CommandHistory::clear(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, deregisterPTWXDlgFcn(), GlobalCmdHist::getInstance(), GetMinimumGuiLevel(), gl_preview_frame, GuiLevel, HUGIN_CONV_FILENAME, m_filename, m_guiLevel, m_mruFiles, PreviewFrame::OnUpdate(), pano, preview_frame, registerPTWXDlgFcn(), and SetGuiLevel(). Referenced by PanoDropTarget::OnDropFiles(), huginApp::OnInit(), OnLoadProject(), and OnMRUFiles(). |
|
|
Definition at line 1175 of file MainFrame.cpp. |
|
|
Definition at line 1060 of file MainFrame.cpp. References CommandHistory::addCommand(), DEBUG_TRACE, PanoOperation::PanoOperation::GetCommand(), and GlobalCmdHist::getInstance(). |
|
|
Definition at line 1112 of file MainFrame.cpp. References CommandHistory::addCommand(), PanoOperation::PanoOperation::GetCommand(), and GlobalCmdHist::getInstance(). |
|
|
Definition at line 1474 of file MainFrame.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, and pano. |
|
|
Definition at line 1403 of file MainFrame.cpp. References cp_frame. Referenced by CPListFrame::OnClose(). |
|
|
Definition at line 1421 of file MainFrame.cpp. References DEBUG_TRACE, and pano_panel. Referenced by GLPreviewFrame::OnCreate(). |
|
|
Definition at line 728 of file MainFrame.cpp. References CloseProject(), DEBUG_TRACE, m_guiLevel, and preview_frame. |
|
|
Definition at line 1223 of file MainFrame.cpp. References DisplayHelp(). |
|
|
|
event handler for full screen
Definition at line 1980 of file MainFrame.cpp. |
|
|
Definition at line 1213 of file MainFrame.cpp. References DisplayHelp(). |
|
|
Definition at line 1218 of file MainFrame.cpp. References DisplayHelp(). |
|
|
Definition at line 984 of file MainFrame.cpp. References AddImages(), CloseProject(), DEBUG_TRACE, HUGIN_CONV_FILENAME, and LoadProjectFile(). |
|
|
Definition at line 1428 of file MainFrame.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, PT::PanoramaMemento::loadPTScript(), m_mruFiles, PreviewFrame::OnUpdate(), pano, preview_frame, and HuginBase::Panorama::setMemento(). |
|
|
event handler for recently used files
Definition at line 1962 of file MainFrame.cpp. References LoadProjectFile(), and m_mruFiles. |
|
|
Definition at line 1034 of file MainFrame.cpp. References CommandHistory::addCommand(), CommandHistory::clear(), CloseProject(), GlobalCmdHist::getInstance(), gl_preview_frame, m_filename, m_guiLevel, PreviewFrame::OnUpdate(), pano, and preview_frame. |
|
|
Definition at line 1497 of file MainFrame.cpp. References getExePath(). |
|
|
Definition at line 1408 of file MainFrame.cpp. References DEBUG_TRACE, OptimizePanel::OnOptimizeButton(), and opt_panel. Referenced by ImagesPanel::OnOptimizeButton(). |
|
|
Definition at line 1415 of file MainFrame.cpp. References OptimizePhotometricPanel::OnOptimizeButton(), and opt_photo_panel. Referenced by ImagesPanel::OnPhotometricOptimizeButton(). |
|
|
Definition at line 1736 of file MainFrame.cpp. References CommandHistory::canRedo(), DEBUG_TRACE, GlobalCmdHist::getInstance(), and CommandHistory::redo(). |
|
|
Definition at line 1668 of file MainFrame.cpp. References CommandHistory::addCommand(), HuginBase::getCPinMasks(), HuginBase::Panorama::getCtrlPoints(), GlobalCmdHist::getInstance(), and pano. |
|
|
Definition at line 2276 of file MainFrame.cpp. References RunAssistant(). |
|
|
|
Definition at line 844 of file MainFrame.cpp. References DEBUG_TRACE, getDefaultProjectName(), m_filename, m_mruFiles, OnSaveProject(), and pano. Referenced by OnSaveProject(). |
|
|
Definition at line 882 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(). |
|
|
Definition at line 2281 of file MainFrame.cpp. References hugin_utils::FileExists(), getExePath(), getProjectName(), OnSaveProject(), and hugin_utils::wxQuoteFilename(). |
|
|
|
|
|
Definition at line 2160 of file MainFrame.cpp. References GetMinimumGuiLevel(), GUI_ADVANCED, GUI_EXPERT, GuiLevel, pano, and SetGuiLevel(). |
|
|
Definition at line 2180 of file MainFrame.cpp. References GUI_EXPERT, and SetGuiLevel(). |
|
|
Definition at line 2127 of file MainFrame.cpp. References GetMinimumGuiLevel(), GUI_SIMPLE, GuiLevel, m_guiLevel, pano, and SetGuiLevel(). |
|
|
Definition at line 1388 of file MainFrame.cpp. References cp_frame, DEBUG_TRACE, and pano. |
|
|
Definition at line 1123 of file MainFrame.cpp. |
|
|
Definition at line 1129 of file MainFrame.cpp. References m_notebook, and m_show_opt_panel. |
|
|
Definition at line 1311 of file MainFrame.cpp. References DEBUG_TRACE, gl_preview_frame, HUGIN_IMGCACHE_UPPERBOUND, HUGIN_SHOW_PROJECTION_HINTS, images_panel, ImagesPanel::ReloadCPDetectorSettings(), and GLPreviewFrame::SetShowProjectionHints(). |
|
|
Definition at line 1848 of file MainFrame.cpp. References DEBUG_TRACE. |
|
|
Referenced by huginApp::OnInit(). |
|
|
Definition at line 1362 of file MainFrame.cpp. References gl_preview_frame, GLPreviewFrame::InitPreviews(), GLPreviewFrame::LoadOpenGLLayout(), and GLPreviewFrame::OnShowEvent(). Referenced by SetGuiLevel(). |
|
|
Definition at line 1347 of file MainFrame.cpp. References DEBUG_TRACE, PreviewFrame::OnUpdate(), and preview_frame. |
|
|
Definition at line 1723 of file MainFrame.cpp. References CommandHistory::canUndo(), DEBUG_TRACE, GlobalCmdHist::getInstance(), and CommandHistory::undo(). |
|
|
Definition at line 685 of file MainFrame.cpp. |
|
|
Enable or disable undo and redo. They should be enabled only when there is a command to act upon. Definition at line 621 of file MainFrame.cpp. References CommandHistory::canRedo(), CommandHistory::canUndo(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptimizerSwitch(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_notebook, m_show_opt_panel, m_show_opt_photo_panel, opt_panel, and opt_photo_panel. |
|
||||||||||||
|
Definition at line 672 of file MainFrame.cpp. References DEBUG_TRACE, enableTools(), HuginBase::Panorama::getNrOfImages(), and pano. |
|
|
Definition at line 1888 of file MainFrame.cpp. References m_progress, m_progressMax, and m_progressMsg. |
|
|
|
|
change the message text of the current task
Reimplemented from AppBase::MultiProgressDisplay. Definition at line 1915 of file MainFrame.cpp. References m_progressMsg. |
|
|
Definition at line 1745 of file MainFrame.cpp. References cpe, DEBUG_DEBUG, m_notebook, and CPEditorPanel::ShowControlPoint(). Referenced by CPListFrame::DeleteSelected(), and CPListFrame::OnCPListSelectionChanged(). |
|
||||||||||||
|
opens the control points tab with the both images selected
Definition at line 1752 of file MainFrame.cpp. References cpe, m_notebook, CPEditorPanel::setLeftImage(), and CPEditorPanel::setRightImage(). Referenced by PreviewLayoutLinesTool::MouseButtonEvent(), PreviewIdentifyTool::MouseButtonEvent(), and RunAssistant(). |
|
|
opens the mask/crop editor with the given image selected
Definition at line 1764 of file MainFrame.cpp. References m_notebook, mask_panel, and MaskEditorPanel::setImage(). Referenced by PreviewIdentifyTool::MouseButtonEvent(). |
|
|
opens the stitcher tab
Definition at line 1775 of file MainFrame.cpp. References m_notebook, and m_show_opt_panel. Referenced by PanoPanel::CheckGoodSize(). |
|
|
|
|
|
receive notification about progress. Should not be called directly.
Reimplemented from AppBase::MultiProgressDisplay. Definition at line 1796 of file MainFrame.cpp. References DEBUG_TRACE. |
|
|
Definition at line 252 of file MainFrame.h. |
|
|
Definition at line 248 of file MainFrame.h. Referenced by OnCPListFrameClosed(), and OnShowCPFrame(). |
|
|
Definition at line 237 of file MainFrame.h. Referenced by ShowCtrlPoint(), and ShowCtrlPointEditor(). |
|
|
Definition at line 247 of file MainFrame.h. Referenced by LoadProjectFile(), OnNewProject(), OnSaveProject(), OnShowPrefs(), OnToggleGLPreviewFrame(), and SetGuiLevel(). |
|
|
Definition at line 235 of file MainFrame.h. Referenced by GetDefaultSetting(), OnShowPrefs(), and SetGuiLevel(). |
|
|
Definition at line 261 of file MainFrame.h. Referenced by LoadProjectFile(), OnNewProject(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), and SetGuiLevel(). |
|
|
Definition at line 249 of file MainFrame.h. Referenced by LoadProjectFile(), OnExit(), OnNewProject(), OnSaveProject(), OnSetGuiSimple(), SetGuiLevel(), and ~MainFrame(). |
|
|
Definition at line 267 of file MainFrame.h. Referenced by SetGuiLevel(). |
|
|
Definition at line 266 of file MainFrame.h. Referenced by SetGuiLevel(). |
|
|
Definition at line 232 of file MainFrame.h. Referenced by LoadProjectFile(), OnMergeProject(), OnMRUFiles(), OnSaveProjectAs(), and ~MainFrame(). |
|
|
Definition at line 233 of file MainFrame.h. Referenced by OnShowPanel(), panoramaChanged(), ShowCtrlPoint(), ShowCtrlPointEditor(), ShowMaskEditor(), and ShowStitcherTab(). |
|
|
Reimplemented from AppBase::ProgressReporter. Definition at line 271 of file MainFrame.h. Referenced by displayProgress(), increaseProgress(), and resetProgress(). |
|
|
Definition at line 270 of file MainFrame.h. Referenced by displayProgress(), increaseProgress(), and resetProgress(). |
|
|
Definition at line 272 of file MainFrame.h. Referenced by displayProgress(), increaseProgress(), resetProgress(), and setMessage(). |
|
|
Definition at line 239 of file MainFrame.h. Referenced by OnShowPanel(), panoramaChanged(), and ShowStitcherTab(). |
|
|
Definition at line 241 of file MainFrame.h. Referenced by panoramaChanged(). |
|
|
Definition at line 2355 of file MainFrame.cpp. Referenced by Get(). |
|
|
Definition at line 236 of file MainFrame.h. Referenced by ShowMaskEditor(). |
|
|
Definition at line 238 of file MainFrame.h. Referenced by OnOptimize(), panoramaChanged(), and SetGuiLevel(). |
|
|
Definition at line 240 of file MainFrame.h. Referenced by OnPhotometricOptimize(), panoramaChanged(), and SetGuiLevel(). |
|
|
Definition at line 258 of file MainFrame.h. Referenced by AddImages(), CloseProject(), LoadProjectFile(), OnApplyTemplate(), OnFineTuneAll(), OnMergeProject(), OnNewProject(), OnRemoveCPinMasks(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), OnSetGuiAdvanced(), OnSetGuiSimple(), OnShowCPFrame(), panoramaImagesChanged(), RunAssistant(), SetGuiLevel(), and ~MainFrame(). |
|
|
Definition at line 242 of file MainFrame.h. Referenced by OnDoStitch(), and SetGuiLevel(). |
|
|
Definition at line 246 of file MainFrame.h. Referenced by LoadProjectFile(), OnExit(), OnMergeProject(), OnNewProject(), and OnTogglePreviewFrame(). |
|
|
Definition at line 243 of file MainFrame.h. Referenced by GetSVMModel(), and ~MainFrame(). |
1.3.9.1