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, 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::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 OnUserDefinedStitch (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 OnCPListFrameClosed ()
CPDetectorSettingGetDefaultSetting ()
 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 ()
celeste::svm_modelGetSVMModel ()
GLPreviewFramegetGLPreview ()
void SetGuiLevel (GuiLevel newLevel)
const GuiLevel GetGuiLevel () const
wxFileHistory * GetFileHistory ()
wxString GetCurrentOptimizerString ()
 returns the string which describes the current selected optimizer setting

Static Public Member Functions

static 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)

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
HuginBase::Panoramapano
wxString m_filename
wxMenu * m_menu_file_simple
wxMenu * m_menu_file_advanced

Static Private Attributes

static 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 83 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::OnUserDefinedStitch MainFrame::OnAddImages MainFrame::OnAddTimeImages MainFrame::MainFrame ( wxWindow *  parent,
HuginBase::Panorama pano 
)

ctor.

Definition at line 267 of file MainFrame.cpp.

References comparePluginItem(), DEBUG_ASSERT, DEBUG_TRACE, PanoOperation::GeneratePanoOperationVector(), huginApp::Get(), hugin_utils::GetHuginVersion(), huginApp::GetXRCPath(), GUI_ADVANCED, GUI_SIMPLE, HUGIN_IMGCACHE_UPPERBOUND, HuginSplashScreen::HuginSplashScreen(), and PluginItem::IsAPIValid().

MainFrame::~MainFrame (  )  [virtual]

dtor.

Definition at line 585 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, 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 1042 of file MainFrame.cpp.

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

Referenced by OnLoadProject().

bool MainFrame::CloseProject ( bool  cancelable  ) 

Definition at line 692 of file MainFrame.cpp.

References HuginBase::Panorama::isDirty(), OnSaveProject(), and pano.

Referenced by PanoDropTarget::OnDropFiles(), OnExit(), OnLoadProject(), and OnNewProject().

void MainFrame::DisableOpenGLTools (  ) 

disables all OpenGL related menu items and toobar buttons

Definition at line 2053 of file MainFrame.cpp.

void MainFrame::DisplayHelp ( wxString  section  ) 

call help browser with given file

Definition at line 1192 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().

void MainFrame::enableTools ( bool  option  )  [private]

Definition at line 1751 of file MainFrame.cpp.

Referenced by panoramaImagesChanged().

MainFrame * MainFrame::Get (  )  [static]

hack.. kind of a pseudo singleton...

Definition at line 1812 of file MainFrame.cpp.

References DEBUG_ASSERT, DEBUG_FATAL, and m_this.

Referenced by CPEditorPanel::changeState(), PanoPanel::CheckFreeSpace(), PanoPanel::CheckGoodSize(), CreateNewArgFile(), CPEditorPanel::CreateNewPoint(), CPListCtrl::DeleteSelected(), PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), PanoPanel::DoUserDefinedStitch(), CPEditorPanel::estimateAndAddOtherPoint(), PanoOperation::CelesteOperation::GetInternalCommand(), GLPreviewFrame::GLPreviewFrame(), PreviewLayoutLinesTool::MouseButtonEvent(), PreviewIdentifyTool::MouseButtonEvent(), CPEditorPanel::NewPointChange(), CPEditorPanel::OnActionContextMenu(), GLPreviewFrame::OnAlign(), CPEditorPanel::OnCelesteButton(), ImagesTreeCtrl::OnChar(), GLPreviewFrame::OnClose(), CPListFrame::OnClose(), CPEditorPanel::OnCPEvent(), CPListCtrl::OnCPListSelectionChanged(), GLPreviewFrame::OnCreate(), GLPreviewFrame::OnCreateCP(), CPEditorPanel::OnCreateCPButton(), PanoDropTarget::OnDropFiles(), PreferencesDialog::OnHelp(), ImageVariableDialog::OnHelp(), MaskImageCtrl::OnLeftMouseDblClick(), MaskEditorPanel::OnMaskAdd(), MaskEditorPanel::OnMaskLoad(), ImagesPanel::OnOptimizeButton(), ImagesPanel::OnPhotometricOptimizeButton(), GLPreviewFrame::OnRemoveCP(), OptimizePhotometricPanel::OnReset(), OptimizePanel::OnReset(), MaskImageCtrl::OnRightMouseUp(), GLPreviewFrame::OnShowMainFrame(), PreferencesDialog::OnUpdateOutputFilename(), PreferencesDialog::OnUpdateProjectFilename(), PT::wxApplyTemplateCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), PT::wxAddImagesCmd::processPanorama(), and GLPreviewFrame::SetGuiLevel().

wxString MainFrame::GetCurrentOptimizerString (  ) 

returns the string which describes the current selected optimizer setting

Definition at line 2198 of file MainFrame.cpp.

References ImagesPanel::GetCurrentOptimizerString(), and images_panel.

const wxString & MainFrame::GetDataPath (  ) 

get the path to data directory

Definition at line 1806 of file MainFrame.cpp.

CPDetectorSetting & MainFrame::GetDefaultSetting (  ) 

returns default cp detector setting

Definition at line 1781 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

wxFileHistory* MainFrame::GetFileHistory (  )  [inline]

Definition at line 173 of file MainFrame.h.

References m_mruFiles.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame * MainFrame::getGLPreview (  ) 

Definition at line 1879 of file MainFrame.cpp.

References gl_preview_frame.

Referenced by huginApp::OnInit().

const GuiLevel MainFrame::GetGuiLevel (  )  const [inline]

Definition at line 171 of file MainFrame.h.

References m_guiLevel.

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

const HuginBase::Panorama& MainFrame::getPanorama (  )  [inline]

returns panorama object

Definition at line 101 of file MainFrame.h.

References pano.

wxString MainFrame::getProjectName (  ) 

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

References ImagesPanel::GetSelectedCPGenerator(), and images_panel.

struct celeste::svm_model * MainFrame::GetSVMModel (  ) 

Definition at line 1855 of file MainFrame.cpp.

References huginApp::Get(), huginApp::GetDataPath(), HUGIN_CELESTE_MODEL, 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 1801 of file MainFrame.cpp.

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

Referenced by DisplayHelp().

void MainFrame::LoadProjectFile ( const wxString &  filename  ) 

Definition at line 875 of file MainFrame.cpp.

References CommandHistory::addCommand(), CommandHistory::clear(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, deregisterPTWXDlgFcn(), PanoCommand::GlobalCmdHist::getInstance(), GetMinimumGuiLevel(), gl_preview_frame, GUI_SIMPLE, 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 1138 of file MainFrame.cpp.

void MainFrame::OnAddImages ( wxCommandEvent &  e  ) 

Definition at line 1023 of file MainFrame.cpp.

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

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

Definition at line 1075 of file MainFrame.cpp.

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

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

Definition at line 1442 of file MainFrame.cpp.

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

void MainFrame::OnCPListFrameClosed (  ) 

Definition at line 1366 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

void MainFrame::OnDoStitch ( wxCommandEvent &  e  ) 

Definition at line 1384 of file MainFrame.cpp.

References DEBUG_TRACE, and pano_panel.

Referenced by GLPreviewFrame::OnCreate().

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

Definition at line 730 of file MainFrame.cpp.

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

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

Definition at line 1186 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 1497 of file MainFrame.cpp.

References 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, 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.

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

event handler for full screen

Definition at line 1846 of file MainFrame.cpp.

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

Definition at line 1176 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 1181 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 947 of file MainFrame.cpp.

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

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

Definition at line 1396 of file MainFrame.cpp.

References CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HUGIN_CONV_FILENAME, HuginBase::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 1828 of file MainFrame.cpp.

References LoadProjectFile(), and m_mruFiles.

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

Definition at line 997 of file MainFrame.cpp.

References CommandHistory::addCommand(), CommandHistory::clear(), CloseProject(), PanoCommand::GlobalCmdHist::getInstance(), gl_preview_frame, GUI_SIMPLE, m_filename, m_guiLevel, PreviewFrame::OnUpdate(), pano, and preview_frame.

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

Definition at line 1465 of file MainFrame.cpp.

void MainFrame::OnOptimize ( wxCommandEvent &  e  ) 

Definition at line 1371 of file MainFrame.cpp.

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

Referenced by ImagesPanel::OnOptimizeButton().

void MainFrame::OnPhotometricOptimize ( wxCommandEvent &  e  ) 

Definition at line 1378 of file MainFrame.cpp.

References OptimizePhotometricPanel::OnOptimizeButton(), and opt_photo_panel.

Referenced by ImagesPanel::OnPhotometricOptimizeButton().

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

Definition at line 1672 of file MainFrame.cpp.

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

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

Definition at line 1604 of file MainFrame.cpp.

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

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

Definition at line 2123 of file MainFrame.cpp.

References RunAssistant().

void MainFrame::OnSaveProject ( wxCommandEvent &  e  ) 

Definition at line 765 of file MainFrame.cpp.

References HuginBase::Panorama::clearDirty(), DEBUG_DEBUG, DEBUG_TRACE, fill_set(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), gl_preview_frame, GUI_SIMPLE, HUGIN_CONV_FILENAME, m_filename, m_guiLevel, OnSaveProjectAs(), pano, and HuginBase::Panorama::printPanoramaScript().

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

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

Definition at line 808 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 846 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 2128 of file MainFrame.cpp.

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

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

void MainFrame::OnSetGuiAdvanced ( wxCommandEvent &  e  ) 

Definition at line 2028 of file MainFrame.cpp.

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

void MainFrame::OnSetGuiExpert ( wxCommandEvent &  e  ) 

Definition at line 2048 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

void MainFrame::OnSetGuiSimple ( wxCommandEvent &  e  ) 

Definition at line 1995 of file MainFrame.cpp.

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

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

Definition at line 1351 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

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

Definition at line 1086 of file MainFrame.cpp.

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

Definition at line 1092 of file MainFrame.cpp.

References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.

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

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

References DEBUG_TRACE.

void MainFrame::OnTipOfDay ( wxCommandEvent &  e  ) 

Referenced by huginApp::OnInit().

void MainFrame::OnToggleGLPreviewFrame ( wxCommandEvent &  e  ) 

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

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

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

Definition at line 1659 of file MainFrame.cpp.

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

void MainFrame::OnUserDefinedStitch ( wxCommandEvent &  e  ) 

Definition at line 1391 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), and pano_panel.

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

Definition at line 687 of file MainFrame.cpp.

void MainFrame::panoramaChanged ( HuginBase::Panorama pano  )  [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 623 of file MainFrame.cpp.

References CommandHistory::canRedo(), CommandHistory::canUndo(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptimizerSwitch(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_notebook, m_show_opt_panel, m_show_opt_photo_panel, opt_panel, opt_photo_panel, and pano.

void MainFrame::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet imgNr 
) [virtual]

notifies about changes to images

Images might have been added/removed. to find out how many images are still there, use Panorama::getNrOfImages.

Parameters:
pano the panorama object that changed
changed set of changed images

Implements HuginBase::PanoramaObserver.

Definition at line 674 of file MainFrame.cpp.

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

void MainFrame::RunAssistant ( wxWindow *  mainWin  ) 

Definition at line 2060 of file MainFrame.cpp.

References CommandHistory::addCommand(), Components2Str(), HuginBase::createCPGraph(), fill_set(), HuginBase::findCPComponents(), HuginQueue::GetAssistantCommandQueue(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), MyExecuteCommandQueue(), pano, HuginBase::Panorama::printPanoramaScript(), and ShowCtrlPointEditor().

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

void MainFrame::RunCPGenerator ( const HuginBase::UIntSet img  ) 

runs the currently selected cp generator on given images

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

References images_panel, and ImagesPanel::RunCPGenerator().

Referenced by CPEditorPanel::OnCreateCPButton().

void MainFrame::SetGuiLevel ( GuiLevel  newLevel  ) 

Definition at line 1884 of file MainFrame.cpp.

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

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

void MainFrame::ShowCtrlPoint ( unsigned int  cpNr  ) 

Definition at line 1681 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 1688 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 1700 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 1711 of file MainFrame.cpp.

References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.

Referenced by PanoPanel::CheckFreeSpace(), and 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)

Implements AppBase::ProgressDisplay.

Definition at line 1732 of file MainFrame.cpp.

References m_filename, and AppBase::ProgressDisplay::m_message.


Member Data Documentation

ImgPreview* MainFrame::canvas [private]

Definition at line 251 of file MainFrame.h.

CPListFrame* MainFrame::cp_frame [private]

Definition at line 247 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

CPEditorPanel* MainFrame::cpe [private]

Definition at line 236 of file MainFrame.h.

Referenced by ShowCtrlPoint(), and ShowCtrlPointEditor().

GLPreviewFrame* MainFrame::gl_preview_frame [private]

Definition at line 246 of file MainFrame.h.

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

ImagesPanel* MainFrame::images_panel [private]

Definition at line 234 of file MainFrame.h.

Referenced by GetCurrentOptimizerString(), GetDefaultSetting(), GetSelectedCPGenerator(), OnShowPrefs(), RunCPGenerator(), and SetGuiLevel().

wxString MainFrame::m_filename [private]

Reimplemented from AppBase::ProgressDisplay.

Definition at line 260 of file MainFrame.h.

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

GuiLevel MainFrame::m_guiLevel [private]

Definition at line 248 of file MainFrame.h.

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

wxMenu* MainFrame::m_menu_file_advanced [private]

Definition at line 266 of file MainFrame.h.

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

wxMenu* MainFrame::m_menu_file_simple [private]

Definition at line 265 of file MainFrame.h.

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

wxFileHistory MainFrame::m_mruFiles [private]

Definition at line 231 of file MainFrame.h.

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

wxNotebook* MainFrame::m_notebook [private]

Definition at line 232 of file MainFrame.h.

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

bool MainFrame::m_show_opt_panel [private]

Definition at line 238 of file MainFrame.h.

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

bool MainFrame::m_show_opt_photo_panel [private]

Definition at line 240 of file MainFrame.h.

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

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

Definition at line 263 of file MainFrame.h.

Referenced by Get().

MaskEditorPanel* MainFrame::mask_panel [private]

Definition at line 235 of file MainFrame.h.

Referenced by ShowMaskEditor().

OptimizePanel* MainFrame::opt_panel [private]

Definition at line 237 of file MainFrame.h.

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

OptimizePhotometricPanel* MainFrame::opt_photo_panel [private]

Definition at line 239 of file MainFrame.h.

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

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

Definition at line 257 of file MainFrame.h.

Referenced by AddImages(), CloseProject(), getPanorama(), LoadProjectFile(), OnAddImages(), OnAddTimeImages(), OnApplyTemplate(), OnFineTuneAll(), OnMergeProject(), OnNewProject(), OnRemoveCPinMasks(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), OnSetGuiAdvanced(), OnSetGuiSimple(), OnShowCPFrame(), panoramaChanged(), panoramaImagesChanged(), RunAssistant(), SetGuiLevel(), and ~MainFrame().

PanoPanel* MainFrame::pano_panel [private]

Definition at line 241 of file MainFrame.h.

Referenced by OnDoStitch(), OnUserDefinedStitch(), and SetGuiLevel().

PreviewFrame* MainFrame::preview_frame [private]

Definition at line 245 of file MainFrame.h.

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

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

Definition at line 242 of file MainFrame.h.

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


The documentation for this class was generated from the following files:
Generated on 30 Jul 2015 for Hugintrunk by  doxygen 1.4.7