MainFrame Class Reference

The main window frame. More...

#include <MainFrame.h>

Inheritance diagram for MainFrame:

Inheritance graph
[legend]
List of all members.

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::PanoramagetPanorama ()
 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 ()
CPDetectorSettingGetDefaultSetting ()
 returns default cp detector setting
wxString getProjectName ()
celeste::svm_modelGetSVMModel ()
GLPreviewFramegetGLPreview ()
void SetGuiLevel (GuiLevel newLevel)
const GuiLevel GetGuiLevel () const
wxFileHistory * GetFileHistory ()

Static Public Member Functions

MainFrameGet ()
 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
ImagesPanelimages_panel
MaskEditorPanelmask_panel
CPEditorPanelcpe
OptimizePanelopt_panel
bool m_show_opt_panel
OptimizePhotometricPanelopt_photo_panel
bool m_show_opt_photo_panel
PanoPanelpano_panel
celeste::svm_modelsvmModel
PreviewFramepreview_frame
GLPreviewFramegl_preview_frame
CPListFramecp_frame
GuiLevel m_guiLevel
ImgPreview * canvas
PT::Panoramapano
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

MainFramem_this = 0

Detailed Description

The main window frame.

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.


Constructor & Destructor Documentation

MainFrame::OnLoadProject MainFrame::OnSaveProjectAs MainFrame::OnOpenPTBatcher MainFrame::OnApplyTemplate MainFrame::OnAbout MainFrame::OnTipOfDay MainFrame::OnFAQ MainFrame::OnShowPrefs MainFrame::OnSendToAssistantQueue MainFrame::OnSetGuiAdvanced MainFrame::OnUndo MainFrame::OnFullScreen MainFrame::OnToggleGLPreviewFrame MainFrame::OnToggleGLPreviewFrame MainFrame::OnOptimize MainFrame::OnRemoveCPinMasks MainFrame::OnShowCPFrame MainFrame::OnShowPanel MainFrame::OnShowPanel MainFrame::OnShowPanel MainFrame::OnAddImages MainFrame::OnAddTimeImages MainFrame::MainFrame wxWindow *  parent,
PT::Panorama pano
 

ctor.

Definition at line 266 of file MainFrame.cpp.

References comparePluginItem(), DEBUG_ASSERT, DEBUG_TRACE, PanoOperation::GeneratePanoOperationVector(), PluginItem::GetCategory(), PluginItem::GetDescription(), PluginItem::GetFilename(), PluginItem::GetName(), GUI_SIMPLE, GuiLevel, HUGIN_IMGCACHE_UPPERBOUND, HuginSplashScreen::HuginSplashScreen(), PluginItem::IsAPIValid(), and PluginItems.

MainFrame::~MainFrame  )  [virtual]
 

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.


Member Function Documentation

void MainFrame::AddImages wxArrayString &  filenameArray  )  [private]
 

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().

bool MainFrame::CloseProject bool  cancelable  ) 
 

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().

void MainFrame::DisableOpenGLTools  ) 
 

disables all OpenGL related menu items and toobar buttons

Definition at line 2186 of file MainFrame.cpp.

void MainFrame::DisplayHelp wxString  section  ) 
 

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().

bool MainFrame::displayProgress  )  [private]
 

Definition at line 1921 of file MainFrame.cpp.

References m_progress, m_progressMax, and m_progressMsg.

Referenced by increaseProgress().

void MainFrame::enableTools bool  option  )  [private]
 

Definition at line 1834 of file MainFrame.cpp.

Referenced by panoramaImagesChanged().

MainFrame * MainFrame::Get  )  [static]
 

hack.. kind of a pseudo singleton...

Definition at line 1878 of file MainFrame.cpp.

References DEBUG_ASSERT, DEBUG_FATAL, and m_this.

Referenced by CPEditorPanel::changeState(), PanoPanel::CheckGoodSize(), CPEditorPanel::CreateNewPoint(), PanoPanel::DoCalcOptimalROI(), PanoPanel::DoSendToBatch(), CPEditorPanel::estimateAndAddOtherPoint(), PanoOperation::CelesteOperation::GetInternalCommand(), GLPreviewFrame::GLPreviewFrame(), PreviewLayoutLinesTool::MouseButtonEvent(), PreviewIdentifyTool::MouseButtonEvent(), CPEditorPanel::NewPointChange(), GLPreviewFrame::OnAlign(), CPEditorPanel::OnCelesteButton(), ImagesTreeCtrl::OnChar(), GLPreviewFrame::OnClose(), CPEditorPanel::OnCPEvent(), GLPreviewFrame::OnCreate(), PanoDropTarget::OnDropFiles(), PreferencesDialog::OnHelp(), ImageVariableDialog::OnHelp(), MaskImageCtrl::OnLeftMouseDblClick(), MaskEditorPanel::OnMaskAdd(), MaskEditorPanel::OnMaskLoad(), ImagesPanel::OnOptimizeButton(), ImagesPanel::OnPhotometricOptimizeButton(), OptimizePhotometricPanel::OnReset(), OptimizePanel::OnReset(), MaskImageCtrl::OnRightMouseUp(), GLPreviewFrame::OnShowMainFrame(), and CPEditorPanel::PointFineTune().

const wxString & MainFrame::GetDataPath  ) 
 

get the path to data directory

Definition at line 1872 of file MainFrame.cpp.

References huginApp::GetDataPath().

CPDetectorSetting & MainFrame::GetDefaultSetting  ) 
 

returns default cp detector setting

Definition at line 1862 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

wxFileHistory* MainFrame::GetFileHistory  )  [inline]
 

Definition at line 174 of file MainFrame.h.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame * MainFrame::getGLPreview  ) 
 

Definition at line 2014 of file MainFrame.cpp.

Referenced by huginApp::OnInit().

const GuiLevel MainFrame::GetGuiLevel  )  const [inline]
 

Definition at line 172 of file MainFrame.h.

References GuiLevel.

Referenced by huginApp::OnInit(), OptimizePhotometricPanel::OnReset(), and OptimizePanel::OnReset().

const PT::Panorama& MainFrame::getPanorama  )  [inline]
 

returns panorama object

Definition at line 104 of file MainFrame.h.

wxString MainFrame::getProjectName  ) 
 

Definition at line 1939 of file MainFrame.cpp.

Referenced by PanoPanel::DoSendToBatch(), and OnSendToAssistantQueue().

struct celeste::svm_model * MainFrame::GetSVMModel  ) 
 

Definition at line 1990 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 1867 of file MainFrame.cpp.

References huginApp::Get(), and huginApp::GetXRCPath().

Referenced by DisplayHelp().

bool MainFrame::increaseProgress double  delta,
const std::string msg
[virtual]
 

Reimplemented from AppBase::ProgressReporter.

Definition at line 1907 of file MainFrame.cpp.

References displayProgress(), m_progress, and m_progressMsg.

bool MainFrame::increaseProgress double  delta  )  [virtual]
 

Implements AppBase::ProgressReporter.

Definition at line 1896 of file MainFrame.cpp.

References displayProgress(), m_progress, and m_progressMax.

Referenced by PanoOperation::CelesteOperation::GetInternalCommand().

void MainFrame::LoadProjectFile const wxString &  filename  ) 
 

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().

void MainFrame::OnAbout wxCommandEvent &  e  )  [private]
 

Definition at line 1175 of file MainFrame.cpp.

void MainFrame::OnAddImages wxCommandEvent &  e  ) 
 

Definition at line 1060 of file MainFrame.cpp.

References CommandHistory::addCommand(), DEBUG_TRACE, PanoOperation::PanoOperation::GetCommand(), and GlobalCmdHist::getInstance().

void MainFrame::OnAddTimeImages wxCommandEvent &  e  )  [private]
 

Definition at line 1112 of file MainFrame.cpp.

References CommandHistory::addCommand(), PanoOperation::PanoOperation::GetCommand(), and GlobalCmdHist::getInstance().

void MainFrame::OnApplyTemplate wxCommandEvent &  e  )  [private]
 

Definition at line 1474 of file MainFrame.cpp.

References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, and pano.

void MainFrame::OnCPListFrameClosed  ) 
 

Definition at line 1403 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

void MainFrame::OnDoStitch wxCommandEvent &  e  ) 
 

Definition at line 1421 of file MainFrame.cpp.

References DEBUG_TRACE, and pano_panel.

Referenced by GLPreviewFrame::OnCreate().

void MainFrame::OnExit wxCloseEvent &  e  )  [private]
 

Definition at line 728 of file MainFrame.cpp.

References CloseProject(), DEBUG_TRACE, m_guiLevel, and preview_frame.

void MainFrame::OnFAQ wxCommandEvent &  e  )  [private]
 

Definition at line 1223 of file MainFrame.cpp.

References DisplayHelp().

void MainFrame::OnFineTuneAll wxCommandEvent &  e  )  [private]
 

Definition at line 1533 of file MainFrame.cpp.

References CommandHistory::addCommand(), vigra_ext::CorrelationResult::curv, DEBUG_DEBUG, DEBUG_TRACE, DEG_TO_RAD, HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HUGIN_FT_CORR_THRESHOLD, HUGIN_FT_CURV_THRESHOLD, HUGIN_FT_LOCAL_SEARCH_WIDTH, HUGIN_FT_ROTATION_SEARCH, HUGIN_FT_ROTATION_START_ANGLE, HUGIN_FT_ROTATION_STEPS, HUGIN_FT_ROTATION_STOP_ANGLE, HUGIN_FT_TEMPLATE_SIZE, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, pano, vigra_ext::PointFineTune(), vigra_ext::PointFineTuneRotSearch(), hugin_utils::roundi(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

void MainFrame::OnFullScreen wxCommandEvent &  e  )  [private]
 

event handler for full screen

Definition at line 1981 of file MainFrame.cpp.

void MainFrame::OnHelp wxCommandEvent &  e  )  [private]
 

Definition at line 1213 of file MainFrame.cpp.

References DisplayHelp().

void MainFrame::OnKeyboardHelp wxCommandEvent &  e  )  [private]
 

Definition at line 1218 of file MainFrame.cpp.

References DisplayHelp().

void MainFrame::OnLoadProject wxCommandEvent &  e  )  [private]
 

Definition at line 984 of file MainFrame.cpp.

References AddImages(), CloseProject(), DEBUG_TRACE, HUGIN_CONV_FILENAME, and LoadProjectFile().

void MainFrame::OnMergeProject wxCommandEvent &  e  )  [private]
 

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().

void MainFrame::OnMRUFiles wxCommandEvent &  e  )  [private]
 

event handler for recently used files

Definition at line 1963 of file MainFrame.cpp.

References LoadProjectFile(), and m_mruFiles.

void MainFrame::OnNewProject wxCommandEvent &  e  )  [private]
 

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.

void MainFrame::OnOpenPTBatcher wxCommandEvent &  e  )  [private]
 

Definition at line 1497 of file MainFrame.cpp.

References getExePath().

void MainFrame::OnOptimize wxCommandEvent &  e  ) 
 

Definition at line 1408 of file MainFrame.cpp.

References DEBUG_TRACE, OptimizePanel::OnOptimizeButton(), and opt_panel.

Referenced by ImagesPanel::OnOptimizeButton().

void MainFrame::OnPhotometricOptimize wxCommandEvent &  e  ) 
 

Definition at line 1415 of file MainFrame.cpp.

References OptimizePhotometricPanel::OnOptimizeButton(), and opt_photo_panel.

Referenced by ImagesPanel::OnPhotometricOptimizeButton().

void MainFrame::OnRedo wxCommandEvent &  e  )  [private]
 

Definition at line 1736 of file MainFrame.cpp.

References CommandHistory::canRedo(), DEBUG_TRACE, GlobalCmdHist::getInstance(), and CommandHistory::redo().

void MainFrame::OnRemoveCPinMasks wxCommandEvent &  e  )  [private]
 

Definition at line 1668 of file MainFrame.cpp.

References CommandHistory::addCommand(), HuginBase::getCPinMasks(), HuginBase::Panorama::getCtrlPoints(), GlobalCmdHist::getInstance(), and pano.

void MainFrame::OnRunAssistant wxCommandEvent &  e  )  [private]
 

Definition at line 2277 of file MainFrame.cpp.

References RunAssistant().

void MainFrame::OnSaveProject wxCommandEvent &  e  ) 
 

Definition at line 763 of file MainFrame.cpp.

References HuginBase::Panorama::clearDirty(), HuginBase::PanoramaMakefilelibExport::createMakefile(), DEBUG_DEBUG, DEBUG_TRACE, fill_set(), huginApp::Get(), HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), getPTProgramsConfig(), huginApp::GetUtilsBinDir(), gl_preview_frame, HUGIN_CONV_FILENAME, m_filename, m_guiLevel, OnSaveProjectAs(), pano, HuginBase::Panorama::printPanoramaScript(), hugin_utils::stripExtension(), and hugin_utils::stripPath().

Referenced by CloseProject(), PanoPanel::DoSendToBatch(), OnSaveProjectAs(), and OnSendToAssistantQueue().

void MainFrame::OnSaveProjectAs wxCommandEvent &  e  )  [private]
 

Definition at line 844 of file MainFrame.cpp.

References DEBUG_TRACE, getDefaultProjectName(), m_filename, m_mruFiles, OnSaveProject(), and pano.

Referenced by OnSaveProject().

void MainFrame::OnSavePTStitcherAs wxCommandEvent &  e  )  [private]
 

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().

void MainFrame::OnSendToAssistantQueue wxCommandEvent &  e  )  [private]
 

Definition at line 2282 of file MainFrame.cpp.

References hugin_utils::FileExists(), getExePath(), getProjectName(), OnSaveProject(), and hugin_utils::wxQuoteFilename().

void MainFrame::OnSendToBatch wxCommandEvent &  e  )  [private]
 

void MainFrame::OnSetGuiAdvanced wxCommandEvent &  e  ) 
 

Definition at line 2161 of file MainFrame.cpp.

References GetMinimumGuiLevel(), GUI_ADVANCED, GUI_EXPERT, GuiLevel, pano, and SetGuiLevel().

void MainFrame::OnSetGuiExpert wxCommandEvent &  e  ) 
 

Definition at line 2181 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

void MainFrame::OnSetGuiSimple wxCommandEvent &  e  ) 
 

Definition at line 2128 of file MainFrame.cpp.

References GetMinimumGuiLevel(), GUI_SIMPLE, GuiLevel, m_guiLevel, pano, and SetGuiLevel().

void MainFrame::OnShowCPFrame wxCommandEvent &  e  )  [private]
 

Definition at line 1388 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

void MainFrame::OnShowDonate wxCommandEvent &  e  )  [private]
 

Definition at line 1123 of file MainFrame.cpp.

void MainFrame::OnShowPanel wxCommandEvent &  e  )  [private]
 

Definition at line 1129 of file MainFrame.cpp.

References m_notebook, and m_show_opt_panel.

void MainFrame::OnShowPrefs wxCommandEvent &  e  )  [private]
 

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().

void MainFrame::OnSize wxSizeEvent &  e  )  [private]
 

Definition at line 1849 of file MainFrame.cpp.

References DEBUG_TRACE.

void MainFrame::OnTipOfDay wxCommandEvent &  e  ) 
 

Referenced by huginApp::OnInit().

void MainFrame::OnToggleGLPreviewFrame wxCommandEvent &  e  ) 
 

Definition at line 1362 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 1347 of file MainFrame.cpp.

References DEBUG_TRACE, PreviewFrame::OnUpdate(), and preview_frame.

void MainFrame::OnUndo wxCommandEvent &  e  )  [private]
 

Definition at line 1723 of file MainFrame.cpp.

References CommandHistory::canUndo(), DEBUG_TRACE, GlobalCmdHist::getInstance(), and CommandHistory::undo().

void MainFrame::OnUserQuit wxCommandEvent &  e  )  [private]
 

Definition at line 685 of file MainFrame.cpp.

void MainFrame::panoramaChanged PT::Panorama pano  )  [virtual]
 

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.

void MainFrame::panoramaImagesChanged PT::Panorama pano,
const PT::UIntSet imgNr
 

Definition at line 672 of file MainFrame.cpp.

References DEBUG_TRACE, enableTools(), HuginBase::Panorama::getNrOfImages(), and pano.

void MainFrame::resetProgress double  max  ) 
 

Definition at line 1889 of file MainFrame.cpp.

References m_progress, m_progressMax, and m_progressMsg.

void MainFrame::RunAssistant wxWindow *  mainWin  ) 
 

Definition at line 2193 of file MainFrame.cpp.

References CommandHistory::addCommand(), Components2Str(), HuginBase::createCPGraph(), HuginBase::AssistantMakefilelibExport::createMakefile(), fill_set(), HuginBase::findCPComponents(), huginApp::Get(), getAssistantProgramsConfig(), getGNUMakeCmd(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), huginApp::GetUtilsBinDir(), HUGIN_ASS_AUTO_CPCLEAN, HUGIN_ASS_LINEFIND, HUGIN_ASS_PANO_DOWNSIZE_FACTOR, HUGIN_CELESTE_AUTO, HUGIN_CELESTE_FILTER, HUGIN_CELESTE_THRESHOLD, HUGIN_CONV_FILENAME, MyExecuteCommandOnDialog(), pano, HuginBase::Panorama::printPanoramaScript(), hugin_utils::roundi(), ShowCtrlPointEditor(), and hugin_utils::wxQuoteFilename().

Referenced by GLPreviewFrame::OnAlign(), and OnRunAssistant().

void MainFrame::SetGuiLevel GuiLevel  newLevel  ) 
 

Definition at line 2019 of file MainFrame.cpp.

References CommandHistory::addCommand(), 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, GLPreviewFrame::SetGuiLevel(), PanoPanel::SetGuiLevel(), OptimizePhotometricPanel::SetGuiLevel(), OptimizePanel::SetGuiLevel(), and ImagesPanel::SetGuiLevel().

Referenced by LoadProjectFile(), OnSetGuiAdvanced(), OnSetGuiExpert(), and OnSetGuiSimple().

void MainFrame::setMessage const std::string msg  ) 
 

change the message text of the current task

Reimplemented from AppBase::MultiProgressDisplay.

Definition at line 1916 of file MainFrame.cpp.

References m_progressMsg.

void MainFrame::ShowCtrlPoint unsigned int  cpNr  ) 
 

Definition at line 1745 of file MainFrame.cpp.

References cpe, DEBUG_DEBUG, m_notebook, and CPEditorPanel::ShowControlPoint().

Referenced by CPListFrame::DeleteSelected(), and CPListFrame::OnCPListSelectionChanged().

void MainFrame::ShowCtrlPointEditor unsigned int  img1,
unsigned int  img2
 

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().

void MainFrame::ShowMaskEditor size_t  imgNr  ) 
 

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().

void MainFrame::ShowStitcherTab  ) 
 

opens the stitcher tab

Todo:
Stop using magic numbers for the tabs.

Definition at line 1775 of file MainFrame.cpp.

References m_notebook, and m_show_opt_panel.

Referenced by PanoPanel::CheckGoodSize().

void MainFrame::UpdatePanels wxCommandEvent &  e  )  [private]
 

void MainFrame::updateProgressDisplay  )  [protected, virtual]
 

receive notification about progress.

Should not be called directly.

Parameters:
msg message text
progress optional progress indicator (0-100)

Reimplemented from AppBase::MultiProgressDisplay.

Definition at line 1796 of file MainFrame.cpp.

References DEBUG_TRACE.


Member Data Documentation

ImgPreview* MainFrame::canvas [private]
 

Definition at line 252 of file MainFrame.h.

CPListFrame* MainFrame::cp_frame [private]
 

Definition at line 248 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

CPEditorPanel* MainFrame::cpe [private]
 

Definition at line 237 of file MainFrame.h.

Referenced by ShowCtrlPoint(), and ShowCtrlPointEditor().

GLPreviewFrame* MainFrame::gl_preview_frame [private]
 

Definition at line 247 of file MainFrame.h.

Referenced by LoadProjectFile(), OnNewProject(), OnSaveProject(), OnShowPrefs(), OnToggleGLPreviewFrame(), and SetGuiLevel().

ImagesPanel* MainFrame::images_panel [private]
 

Definition at line 235 of file MainFrame.h.

Referenced by GetDefaultSetting(), OnShowPrefs(), and SetGuiLevel().

wxString MainFrame::m_filename [private]
 

Definition at line 261 of file MainFrame.h.

Referenced by LoadProjectFile(), OnNewProject(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), and SetGuiLevel().

GuiLevel MainFrame::m_guiLevel [private]
 

Definition at line 249 of file MainFrame.h.

Referenced by LoadProjectFile(), OnExit(), OnNewProject(), OnSaveProject(), OnSetGuiSimple(), SetGuiLevel(), and ~MainFrame().

wxMenu* MainFrame::m_menu_file_advanced [private]
 

Definition at line 267 of file MainFrame.h.

Referenced by SetGuiLevel().

wxMenu* MainFrame::m_menu_file_simple [private]
 

Definition at line 266 of file MainFrame.h.

Referenced by SetGuiLevel().

wxFileHistory MainFrame::m_mruFiles [private]
 

Definition at line 232 of file MainFrame.h.

Referenced by LoadProjectFile(), OnMergeProject(), OnMRUFiles(), OnSaveProjectAs(), and ~MainFrame().

wxNotebook* MainFrame::m_notebook [private]
 

Definition at line 233 of file MainFrame.h.

Referenced by OnShowPanel(), panoramaChanged(), ShowCtrlPoint(), ShowCtrlPointEditor(), ShowMaskEditor(), and ShowStitcherTab().

double MainFrame::m_progress [private]
 

Reimplemented from AppBase::ProgressReporter.

Definition at line 271 of file MainFrame.h.

Referenced by displayProgress(), increaseProgress(), and resetProgress().

double MainFrame::m_progressMax [private]
 

Definition at line 270 of file MainFrame.h.

Referenced by displayProgress(), increaseProgress(), and resetProgress().

wxString MainFrame::m_progressMsg [private]
 

Definition at line 272 of file MainFrame.h.

Referenced by displayProgress(), increaseProgress(), resetProgress(), and setMessage().

bool MainFrame::m_show_opt_panel [private]
 

Definition at line 239 of file MainFrame.h.

Referenced by OnShowPanel(), panoramaChanged(), and ShowStitcherTab().

bool MainFrame::m_show_opt_photo_panel [private]
 

Definition at line 241 of file MainFrame.h.

Referenced by panoramaChanged().

MainFrame * MainFrame::m_this = 0 [static, private]
 

Definition at line 2356 of file MainFrame.cpp.

Referenced by Get().

MaskEditorPanel* MainFrame::mask_panel [private]
 

Definition at line 236 of file MainFrame.h.

Referenced by ShowMaskEditor().

OptimizePanel* MainFrame::opt_panel [private]
 

Definition at line 238 of file MainFrame.h.

Referenced by OnOptimize(), panoramaChanged(), and SetGuiLevel().

OptimizePhotometricPanel* MainFrame::opt_photo_panel [private]
 

Definition at line 240 of file MainFrame.h.

Referenced by OnPhotometricOptimize(), panoramaChanged(), and SetGuiLevel().

PT::Panorama& MainFrame::pano [private]
 

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().

PanoPanel* MainFrame::pano_panel [private]
 

Definition at line 242 of file MainFrame.h.

Referenced by OnDoStitch(), and SetGuiLevel().

PreviewFrame* MainFrame::preview_frame [private]
 

Definition at line 246 of file MainFrame.h.

Referenced by LoadProjectFile(), OnExit(), OnMergeProject(), OnNewProject(), and OnTogglePreviewFrame().

struct celeste::svm_model* MainFrame::svmModel [private]
 

Definition at line 243 of file MainFrame.h.

Referenced by GetSVMModel(), and ~MainFrame().


The documentation for this class was generated from the following files:
Generated on Wed Jul 16 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1