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 SetOptimizeOnlyActiveImages (const bool onlyActive)
 sets the status of the "optimize only active images" menu item
const bool GetOptimizeOnlyActiveImages () const
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 OnOnlyActiveImages (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=wxEmptyString)
 call help browser with given file
void ShowCtrlPointEditor (unsigned int img1, unsigned int img2)
 opens the control points tab with the both images selected
void ShowMaskEditor (size_t imgNr)
 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 OnReadPapywizard (wxCommandEvent &e)
void OnApplyTemplate (wxCommandEvent &e)
void OnSendToBatch (wxCommandEvent &e)
void OnSendToAssistantQueue (wxCommandEvent &e)
void OnOpenPTBatcher (wxCommandEvent &e)
void OnShowCPFrame (wxCommandEvent &e)
void OnMRUFiles (wxCommandEvent &e)
 event handler for recently used files
void OnFullScreen (wxCommandEvent &e)
 event handler for full screen
void 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
bool m_optOnlyActiveImages

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::OnReadPapywizard MainFrame::OnUserQuit MainFrame::OnHelp MainFrame::OnKeyboardHelp MainFrame::OnShowDonate MainFrame::OnRunAssistant MainFrame::OnSetGuiSimple MainFrame::OnSetGuiExpert MainFrame::OnRedo MainFrame::OnTogglePreviewFrame MainFrame::OnTogglePreviewFrame MainFrame::OnOptimize 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 266 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 583 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 1038 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 690 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 2106 of file MainFrame.cpp.

void MainFrame::DisplayHelp ( wxString  section = wxEmptyString  ) 

call help browser with given file

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

References m_menu_file_advanced.

Referenced by panoramaImagesChanged().

MainFrame * MainFrame::Get (  )  [static]

hack.. kind of a pseudo singleton...

Definition at line 1865 of file MainFrame.cpp.

References DEBUG_ASSERT, DEBUG_FATAL, and m_this.

Referenced by CPEditorPanel::changeState(), PanoPanel::CheckFreeSpace(), PanoPanel::CheckGoodSize(), OptimizePanel::Create(), 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(), OptimizePanel::OnCheckOnlyActiveImages(), 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(), GLPreviewFrame::panoramaChanged(), CPListCtrl::panoramaChanged(), CPEditorPanel::PointFineTune(), 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 2249 of file MainFrame.cpp.

References ImagesPanel::GetCurrentOptimizerString(), and images_panel.

const wxString & MainFrame::GetDataPath (  ) 

get the path to data directory

Definition at line 1859 of file MainFrame.cpp.

CPDetectorSetting & MainFrame::GetDefaultSetting (  ) 

returns default cp detector setting

Definition at line 1834 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

wxFileHistory* MainFrame::GetFileHistory (  )  [inline]

Definition at line 181 of file MainFrame.h.

References m_mruFiles.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame * MainFrame::getGLPreview (  ) 

Definition at line 1932 of file MainFrame.cpp.

References gl_preview_frame.

Referenced by huginApp::OnInit().

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

Definition at line 179 of file MainFrame.h.

References m_guiLevel.

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

const bool MainFrame::GetOptimizeOnlyActiveImages (  )  const

Definition at line 1409 of file MainFrame.cpp.

References m_optOnlyActiveImages.

Referenced by CPListCtrl::panoramaChanged().

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 1876 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 1849 of file MainFrame.cpp.

References ImagesPanel::GetSelectedCPGenerator(), and images_panel.

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

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

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

Referenced by DisplayHelp().

void MainFrame::LoadProjectFile ( const wxString &  filename  ) 

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

void MainFrame::OnAddImages ( wxCommandEvent &  e  ) 

Definition at line 1019 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 1071 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 1492 of file MainFrame.cpp.

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

void MainFrame::OnCPListFrameClosed (  ) 

Definition at line 1377 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

void MainFrame::OnDoStitch ( wxCommandEvent &  e  ) 

Definition at line 1420 of file MainFrame.cpp.

References DEBUG_TRACE, and pano_panel.

Referenced by GLPreviewFrame::OnCreate().

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

Definition at line 726 of file MainFrame.cpp.

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

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

Definition at line 1182 of file MainFrame.cpp.

References DisplayHelp().

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

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

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

Definition at line 1172 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 1177 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 943 of file MainFrame.cpp.

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

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

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

References LoadProjectFile(), and m_mruFiles.

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

Definition at line 993 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::OnOnlyActiveImages ( wxCommandEvent &  e  ) 

Definition at line 1389 of file MainFrame.cpp.

References HuginBase::Panorama::changeFinished(), m_optOnlyActiveImages, opt_panel, pano, and OptimizePanel::SetOnlyActiveImages().

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

Definition at line 1515 of file MainFrame.cpp.

void MainFrame::OnOptimize ( wxCommandEvent &  e  ) 

Definition at line 1382 of file MainFrame.cpp.

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

Referenced by ImagesPanel::OnOptimizeButton().

void MainFrame::OnPhotometricOptimize ( wxCommandEvent &  e  ) 

Definition at line 1414 of file MainFrame.cpp.

References OptimizePhotometricPanel::OnOptimizeButton(), and opt_photo_panel.

Referenced by ImagesPanel::OnPhotometricOptimizeButton().

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

Definition at line 1478 of file MainFrame.cpp.

References Papywizard::ImportPapywizardFile(), and pano.

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

Definition at line 1722 of file MainFrame.cpp.

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

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

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

References RunAssistant().

void MainFrame::OnSaveProject ( wxCommandEvent &  e  ) 

Definition at line 761 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 804 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 842 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 2179 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 2081 of file MainFrame.cpp.

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

void MainFrame::OnSetGuiExpert ( wxCommandEvent &  e  ) 

Definition at line 2101 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

void MainFrame::OnSetGuiSimple ( wxCommandEvent &  e  ) 

Definition at line 2048 of file MainFrame.cpp.

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

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

Definition at line 1362 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

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

Definition at line 1082 of file MainFrame.cpp.

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

Definition at line 1088 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 1285 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 1819 of file MainFrame.cpp.

References DEBUG_TRACE.

void MainFrame::OnTipOfDay ( wxCommandEvent &  e  ) 

Referenced by huginApp::OnInit().

void MainFrame::OnToggleGLPreviewFrame ( wxCommandEvent &  e  ) 

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

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

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

Definition at line 1709 of file MainFrame.cpp.

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

void MainFrame::OnUserDefinedStitch ( wxCommandEvent &  e  ) 

Definition at line 1427 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), and pano_panel.

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

Definition at line 685 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 621 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 672 of file MainFrame.cpp.

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

void MainFrame::RunAssistant ( wxWindow *  mainWin  ) 

Definition at line 2113 of file MainFrame.cpp.

References CommandHistory::addCommand(), Components2Str(), fill_set(), HuginQueue::GetAssistantCommandQueue(), HuginGraph::ImageGraph::GetComponents(), 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 1844 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 1839 of file MainFrame.cpp.

References images_panel, and ImagesPanel::RunCPGenerator().

Referenced by CPEditorPanel::OnCreateCPButton().

void MainFrame::SetGuiLevel ( GuiLevel  newLevel  ) 

Definition at line 1937 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::SetOptimizeOnlyActiveImages ( const bool  onlyActive  ) 

sets the status of the "optimize only active images" menu item

Definition at line 1397 of file MainFrame.cpp.

References HuginBase::Panorama::changeFinished(), m_optOnlyActiveImages, and pano.

Referenced by OptimizePanel::Create(), and OptimizePanel::OnCheckOnlyActiveImages().

void MainFrame::ShowCtrlPoint ( unsigned int  cpNr  ) 

Definition at line 1731 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 1738 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 1750 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 1761 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 1782 of file MainFrame.cpp.

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


Member Data Documentation

ImgPreview* MainFrame::canvas [private]

Definition at line 260 of file MainFrame.h.

CPListFrame* MainFrame::cp_frame [private]

Definition at line 256 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

CPEditorPanel* MainFrame::cpe [private]

Definition at line 245 of file MainFrame.h.

Referenced by ShowCtrlPoint(), and ShowCtrlPointEditor().

GLPreviewFrame* MainFrame::gl_preview_frame [private]

Definition at line 255 of file MainFrame.h.

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

ImagesPanel* MainFrame::images_panel [private]

Definition at line 243 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 269 of file MainFrame.h.

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

GuiLevel MainFrame::m_guiLevel [private]

Definition at line 257 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 275 of file MainFrame.h.

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

wxMenu* MainFrame::m_menu_file_simple [private]

Definition at line 274 of file MainFrame.h.

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

wxFileHistory MainFrame::m_mruFiles [private]

Definition at line 240 of file MainFrame.h.

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

wxNotebook* MainFrame::m_notebook [private]

Definition at line 241 of file MainFrame.h.

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

bool MainFrame::m_optOnlyActiveImages [private]

Definition at line 277 of file MainFrame.h.

Referenced by GetOptimizeOnlyActiveImages(), OnOnlyActiveImages(), and SetOptimizeOnlyActiveImages().

bool MainFrame::m_show_opt_panel [private]

Definition at line 247 of file MainFrame.h.

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

bool MainFrame::m_show_opt_photo_panel [private]

Definition at line 249 of file MainFrame.h.

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

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

Definition at line 272 of file MainFrame.h.

Referenced by Get().

MaskEditorPanel* MainFrame::mask_panel [private]

Definition at line 244 of file MainFrame.h.

Referenced by ShowMaskEditor().

OptimizePanel* MainFrame::opt_panel [private]

Definition at line 246 of file MainFrame.h.

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

OptimizePhotometricPanel* MainFrame::opt_photo_panel [private]

Definition at line 248 of file MainFrame.h.

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

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

Definition at line 266 of file MainFrame.h.

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

PanoPanel* MainFrame::pano_panel [private]

Definition at line 250 of file MainFrame.h.

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

PreviewFrame* MainFrame::preview_frame [private]

Definition at line 254 of file MainFrame.h.

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

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

Definition at line 251 of file MainFrame.h.

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


The documentation for this class was generated from the following files:
Generated on 28 Sep 2016 for Hugintrunk by  doxygen 1.4.7