MainFrame Class Reference

The main window frame. More...

#include <MainFrame.h>

Inheritance diagram for MainFrame:

Inheritance graph
[legend]
List of all members.

Public Types

 CLOSE_PROGRAM
 LOAD_NEW_PROJECT
 NEW_PROJECT
enum  CloseReason { CLOSE_PROGRAM, LOAD_NEW_PROJECT, NEW_PROJECT }

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, CloseReason reason)
void OnOptimize (wxCommandEvent &e)
void OnOnlyActiveImages (wxCommandEvent &e)
void OnPhotometricOptimize (wxCommandEvent &e)
void OnDoStitch (wxCommandEvent &e)
void OnUserDefinedStitch (wxCommandEvent &e)
void OnUserDefinedStitchSaved (wxCommandEvent &e)
void OnTogglePreviewFrame (wxCommandEvent &e)
void OnToggleGLPreviewFrame (wxCommandEvent &e)
void OnAddImages (wxCommandEvent &e)
void OnSaveProject (wxCommandEvent &e)
void OnSetGuiSimple (wxCommandEvent &e)
void OnSetGuiAdvanced (wxCommandEvent &e)
void OnSetGuiExpert (wxCommandEvent &e)
void DisplayHelp (wxString section=wxEmptyString)
 call help browser with given file
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 ()
wxHelpController & GetHelpController ()
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)
void OnLoadingFailed (wxCommandEvent &e)
 event handler called when loading of image file failed

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
wxHelpController m_HelpController
std::map< int, wxString > m_userOutput

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 87 of file MainFrame.h.


Member Enumeration Documentation

enum MainFrame::CloseReason

Enumerator:
CLOSE_PROGRAM 
LOAD_NEW_PROJECT 
NEW_PROJECT 

Definition at line 133 of file MainFrame.h.


Constructor & Destructor Documentation

MainFrame::MainFrame ( wxWindow *  parent,
HuginBase::Panorama pano 
)

ctor.

Definition at line 278 of file MainFrame.cpp.

References comparePluginItem(), cpe, DEBUG_ASSERT, DEBUG_TRACE, DisableOpenGLTools(), enableTools(), PanoOperation::GeneratePanoOperationVector(), huginApp::Get(), GetDataPath(), hugin_utils::GetHuginVersion(), hugin_utils::GetUserAppDataDir(), GetXRCPath(), huginApp::GetXRCPath(), gl_preview_frame, GUI_ADVANCED, GUI_SIMPLE, HUGIN_IMGCACHE_UPPERBOUND, images_panel, OptimizePhotometricPanel::Init(), OptimizePanel::Init(), CPEditorPanel::Init(), PanoPanel::Init(), MaskEditorPanel::Init(), ImagesPanel::Init(), PluginItem::IsAPIValid(), m_guiLevel, m_menu_file_advanced, m_menu_file_simple, m_mruFiles, m_notebook, m_optOnlyActiveImages, m_show_opt_panel, m_show_opt_photo_panel, m_this, m_userOutput, mask_panel, OnUserDefinedStitchSaved(), opt_panel, opt_photo_panel, pano, pano_panel, PanoPanel::panoramaChanged(), preview_frame, SetGuiLevel(), SetOptimizeOnlyActiveImages(), svmModel, wxIDPYTHONSCRIPTS, and wxIDUSEROUTPUTSEQUENCE.

MainFrame::~MainFrame (  )  [virtual]

dtor.

Definition at line 653 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 1134 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,
CloseReason  reason 
)

Definition at line 760 of file MainFrame.cpp.

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

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

void MainFrame::DisableOpenGLTools (  ) 

disables all OpenGL related menu items and toobar buttons

Definition at line 2219 of file MainFrame.cpp.

Referenced by MainFrame().

void MainFrame::DisplayHelp ( wxString  section = wxEmptyString  ) 

call help browser with given file

Definition at line 1325 of file MainFrame.cpp.

References GetHelpController().

Referenced by OnFAQ(), PreferencesDialog::OnHelp(), OnHelp(), ImageVariableDialog::OnHelp(), and OnKeyboardHelp().

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

Definition at line 1900 of file MainFrame.cpp.

References m_menu_file_advanced.

Referenced by MainFrame(), and panoramaImagesChanged().

MainFrame * MainFrame::Get (  )  [static]

hack.. kind of a pseudo singleton...

Definition at line 1969 of file MainFrame.cpp.

References DEBUG_ASSERT, DEBUG_FATAL, and m_this.

Referenced by CPEditorPanel::changeState(), PanoPanel::CheckFreeSpace(), PanoPanel::CheckGoodSize(), OptimizePanel::Create(), 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(), PanoPanel::OnBlenderOptions(), CPEditorPanel::OnCelesteButton(), ImagesTreeCtrl::OnChar(), OptimizePanel::OnCheckOnlyActiveImages(), GLPreviewFrame::OnClose(), CPListFrame::OnClose(), CPEditorPanel::OnCPEvent(), CPListCtrl::OnCPListSelectionChanged(), GLPreviewFrame::OnCreate(), GLPreviewFrame::OnCreateCP(), CPEditorPanel::OnCreateCPButton(), PanoDropTarget::OnDropFiles(), PreferencesDialog::OnExifArgfile2Edit(), PreferencesDialog::OnExifArgfileEdit(), PanoPanel::OnFusionOptions(), PreferencesDialog::OnHelp(), ImageVariableDialog::OnHelp(), MaskImageCtrl::OnLeftMouseDblClick(), ImagesTreeCtrl::OnLeftUp(), 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(), GLPreviewFrame::SetGuiLevel(), and MaskImageCtrl::setImage().

wxString MainFrame::GetCurrentOptimizerString (  ) 

returns the string which describes the current selected optimizer setting

Definition at line 2364 of file MainFrame.cpp.

References ImagesPanel::GetCurrentOptimizerString(), and images_panel.

const wxString & MainFrame::GetDataPath (  ) 

get the path to data directory

Definition at line 1963 of file MainFrame.cpp.

Referenced by MainFrame().

CPDetectorSetting & MainFrame::GetDefaultSetting (  ) 

returns default cp detector setting

Definition at line 1938 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

wxFileHistory* MainFrame::GetFileHistory (  )  [inline]

Definition at line 186 of file MainFrame.h.

References m_mruFiles.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame * MainFrame::getGLPreview (  ) 

Definition at line 2045 of file MainFrame.cpp.

References gl_preview_frame.

Referenced by huginApp::OnInit(), and ImagesTreeCtrl::OnLeftUp().

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

Definition at line 184 of file MainFrame.h.

References m_guiLevel.

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

wxHelpController& MainFrame::GetHelpController (  )  [inline]

Definition at line 182 of file MainFrame.h.

References m_HelpController.

Referenced by DisplayHelp(), and huginApp::OnInit().

const bool MainFrame::GetOptimizeOnlyActiveImages (  )  const

Definition at line 1495 of file MainFrame.cpp.

References m_optOnlyActiveImages.

Referenced by CPListCtrl::panoramaChanged().

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

returns panorama object

Definition at line 105 of file MainFrame.h.

References pano.

wxString MainFrame::getProjectName (  ) 

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

References ImagesPanel::GetSelectedCPGenerator(), and images_panel.

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

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

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

Referenced by MainFrame().

void MainFrame::LoadProjectFile ( const wxString &  filename  ) 

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

void MainFrame::OnAddImages ( wxCommandEvent &  e  ) 

Definition at line 1115 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 1167 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 1591 of file MainFrame.cpp.

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

void MainFrame::OnCPListFrameClosed (  ) 

Definition at line 1463 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

void MainFrame::OnDoStitch ( wxCommandEvent &  e  ) 

Definition at line 1506 of file MainFrame.cpp.

References DEBUG_TRACE, and pano_panel.

Referenced by GLPreviewFrame::OnCreate().

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

Definition at line 821 of file MainFrame.cpp.

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

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

Definition at line 1319 of file MainFrame.cpp.

References DisplayHelp().

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

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

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

Definition at line 1309 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 1314 of file MainFrame.cpp.

References DisplayHelp().

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

event handler called when loading of image file failed

Definition at line 1229 of file MainFrame.cpp.

References CommandHistory::addCommand(), HuginBase::Panorama::getImage(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, and pano.

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

Definition at line 1039 of file MainFrame.cpp.

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

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

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

References CloseProject(), LOAD_NEW_PROJECT, LoadProjectFile(), and m_mruFiles.

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

Definition at line 1089 of file MainFrame.cpp.

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

void MainFrame::OnOnlyActiveImages ( wxCommandEvent &  e  ) 

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

void MainFrame::OnOptimize ( wxCommandEvent &  e  ) 

Definition at line 1468 of file MainFrame.cpp.

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

Referenced by ImagesPanel::OnOptimizeButton().

void MainFrame::OnPhotometricOptimize ( wxCommandEvent &  e  ) 

Definition at line 1500 of file MainFrame.cpp.

References OptimizePhotometricPanel::OnOptimizeButton(), and opt_photo_panel.

Referenced by ImagesPanel::OnPhotometricOptimizeButton().

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

Definition at line 1577 of file MainFrame.cpp.

References Papywizard::ImportPapywizardFile(), and pano.

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

Definition at line 1821 of file MainFrame.cpp.

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

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

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

References RunAssistant().

void MainFrame::OnSaveProject ( wxCommandEvent &  e  ) 

Definition at line 856 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 899 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 937 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 2294 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 2194 of file MainFrame.cpp.

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

void MainFrame::OnSetGuiExpert ( wxCommandEvent &  e  ) 

Definition at line 2214 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

void MainFrame::OnSetGuiSimple ( wxCommandEvent &  e  ) 

Definition at line 2161 of file MainFrame.cpp.

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

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

Definition at line 1448 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

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

Definition at line 1178 of file MainFrame.cpp.

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

Definition at line 1184 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 1371 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 1923 of file MainFrame.cpp.

References DEBUG_TRACE.

void MainFrame::OnTipOfDay ( wxCommandEvent &  e  ) 

Referenced by huginApp::OnInit().

void MainFrame::OnToggleGLPreviewFrame ( wxCommandEvent &  e  ) 

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

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

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

Definition at line 1808 of file MainFrame.cpp.

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

void MainFrame::OnUserDefinedStitch ( wxCommandEvent &  e  ) 

Definition at line 1513 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), and pano_panel.

void MainFrame::OnUserDefinedStitchSaved ( wxCommandEvent &  e  ) 

Definition at line 1518 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), m_userOutput, and pano_panel.

Referenced by MainFrame().

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

Definition at line 755 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 691 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 742 of file MainFrame.cpp.

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

void MainFrame::RunAssistant ( wxWindow *  mainWin  ) 

Definition at line 2226 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 1948 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 1943 of file MainFrame.cpp.

References images_panel, and ImagesPanel::RunCPGenerator().

Referenced by CPEditorPanel::OnCreateCPButton().

void MainFrame::SetGuiLevel ( GuiLevel  newLevel  ) 

Definition at line 2050 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(), MainFrame(), OnSetGuiAdvanced(), OnSetGuiExpert(), and OnSetGuiSimple().

void MainFrame::SetOptimizeOnlyActiveImages ( const bool  onlyActive  ) 

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

Definition at line 1483 of file MainFrame.cpp.

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

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

void MainFrame::ShowCtrlPoint ( unsigned int  cpNr  ) 

Definition at line 1830 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 1837 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 1849 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 1860 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 1881 of file MainFrame.cpp.

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


Member Data Documentation

ImgPreview* MainFrame::canvas [private]

Definition at line 267 of file MainFrame.h.

CPListFrame* MainFrame::cp_frame [private]

Definition at line 263 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

CPEditorPanel* MainFrame::cpe [private]

Definition at line 252 of file MainFrame.h.

Referenced by MainFrame(), ShowCtrlPoint(), and ShowCtrlPointEditor().

GLPreviewFrame* MainFrame::gl_preview_frame [private]

Definition at line 262 of file MainFrame.h.

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

ImagesPanel* MainFrame::images_panel [private]

Definition at line 250 of file MainFrame.h.

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

wxString MainFrame::m_filename [private]

Reimplemented from AppBase::ProgressDisplay.

Definition at line 276 of file MainFrame.h.

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

GuiLevel MainFrame::m_guiLevel [private]

Definition at line 264 of file MainFrame.h.

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

wxHelpController MainFrame::m_HelpController [private]

Definition at line 286 of file MainFrame.h.

Referenced by GetHelpController().

wxMenu* MainFrame::m_menu_file_advanced [private]

Definition at line 282 of file MainFrame.h.

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

wxMenu* MainFrame::m_menu_file_simple [private]

Definition at line 281 of file MainFrame.h.

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

wxFileHistory MainFrame::m_mruFiles [private]

Definition at line 247 of file MainFrame.h.

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

wxNotebook* MainFrame::m_notebook [private]

Definition at line 248 of file MainFrame.h.

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

bool MainFrame::m_optOnlyActiveImages [private]

Definition at line 284 of file MainFrame.h.

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

bool MainFrame::m_show_opt_panel [private]

Definition at line 254 of file MainFrame.h.

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

bool MainFrame::m_show_opt_photo_panel [private]

Definition at line 256 of file MainFrame.h.

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

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

Definition at line 279 of file MainFrame.h.

Referenced by Get(), and MainFrame().

std::map<int, wxString> MainFrame::m_userOutput [private]

Definition at line 293 of file MainFrame.h.

Referenced by MainFrame(), and OnUserDefinedStitchSaved().

MaskEditorPanel* MainFrame::mask_panel [private]

Definition at line 251 of file MainFrame.h.

Referenced by MainFrame(), and ShowMaskEditor().

OptimizePanel* MainFrame::opt_panel [private]

Definition at line 253 of file MainFrame.h.

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

OptimizePhotometricPanel* MainFrame::opt_photo_panel [private]

Definition at line 255 of file MainFrame.h.

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

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

Definition at line 273 of file MainFrame.h.

Referenced by AddImages(), CloseProject(), getPanorama(), LoadProjectFile(), MainFrame(), OnAddImages(), OnAddTimeImages(), OnApplyTemplate(), OnFineTuneAll(), OnLoadingFailed(), 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 257 of file MainFrame.h.

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

PreviewFrame* MainFrame::preview_frame [private]

Definition at line 261 of file MainFrame.h.

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

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

Definition at line 258 of file MainFrame.h.

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


The documentation for this class was generated from the following files:
Generated on 27 May 2017 for Hugintrunk by  doxygen 1.4.7