Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MainFrame Class Reference

The main window frame. More...

#include <MainFrame.h>

Inheritance diagram for MainFrame:
Inheritance graph

Public Types

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 wxStringGetXRCPath ()
 get the path to the xrc directory
 
const wxStringGetDataPath ()
 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 SetOptimizeIgnoreLineCp (const bool ignoreLineCP)
 sets the status of the "ignore line cp" menu item
 
const bool GetOptimizeIgnoreLineCp () const
 
void OnTipOfDay (wxCommandEvent &e)
 
void LoadProjectFile (const wxString &filename)
 
void RunAssistant (wxWindow *mainWin, const wxString &userdefinedAssistant=wxEmptyString)
 
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 OnIgnoreLineCp (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, bool switchToCropMode=false)
 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 ()
 
bool IsShowingCorrelation () const
 
struct celeste::svm_modelGetSVMModel ()
 
GLPreviewFramegetGLPreview ()
 
wxHelpControllerGetHelpController ()
 
void SetGuiLevel (GuiLevel newLevel)
 
const GuiLevel GetGuiLevel () const
 
wxFileHistoryGetFileHistory ()
 
wxString GetCurrentOptimizerString ()
 returns the string which describes the current selected optimizer setting
 
- Public Member Functions inherited from HuginBase::PanoramaObserver
virtual ~PanoramaObserver ()
 
- Public Member Functions inherited from AppBase::ProgressDisplay
virtual ~ProgressDisplay ()
 
void setMessage (const std::string &message, const std::string &filename="")
 sets the message to given string
 
void taskFinished ()
 call when a task has finished and the status message should be cleared
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g.
 

Static Public Member Functions

static MainFrameGet ()
 hack.. kind of a pseudo singleton...
 

Protected Member Functions

void updateProgressDisplay ()
 receive notification about progress.
 
- Protected Member Functions inherited from AppBase::ProgressDisplay
 ProgressDisplay (int maximum=0)
 constructor
 

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 OnBrowseProjects (wxCommandEvent &e)
 
void OnNewProject (wxCommandEvent &e)
 
void OnAddTimeImages (wxCommandEvent &e)
 
void OnRunAssistant (wxCommandEvent &e)
 
void OnRunAssistantUserdefined (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 OnSize (wxSizeEvent &e)
 
void enableTools (bool option)
 
void AddImages (wxArrayString &filenameArray)
 adds the given files to the projects, with checking for invalid filenames
 
void OnShowPanel (wxCommandEvent &e)
 
void OnLoadingFailed (wxCommandEvent &e)
 event handler called when loading of image file failed
 

Private Attributes

wxFileHistory m_mruFiles
 
wxNotebookm_notebook
 
ImagesPanelimages_panel
 
MaskEditorPanelmask_panel
 
CPEditorPanelcpe
 
OptimizePanelopt_panel
 
bool m_show_opt_panel
 
OptimizePhotometricPanelopt_photo_panel
 
bool m_show_opt_photo_panel
 
PanoPanelpano_panel
 
struct celeste::svm_modelsvmModel
 
PreviewFramepreview_frame
 
GLPreviewFramegl_preview_frame
 
CPListFramecp_frame
 
GuiLevel m_guiLevel
 
ImgPreviewcanvas
 
HuginBase::Panoramapano
 
wxString m_filename
 
int m_showCorrelation =0
 
wxMenum_menu_file_simple
 
wxMenum_menu_file_advanced
 
wxMenuItemm_outputUserMenu = nullptr
 
wxMenuItemm_assistantUserMenu = nullptr
 
bool m_optOnlyActiveImages
 
bool m_optIgnoreLineCp
 
wxHelpController m_HelpController
 
std::map< int, wxStringm_userOutput
 
std::map< int, wxStringm_userAssistant
 

Static Private Attributes

static MainFramem_this = 0
 

Additional Inherited Members

- Protected Attributes inherited from AppBase::ProgressDisplay
bool m_canceled
 
std::string m_message
 
std::string m_filename
 
int m_maximum
 
int m_progress
 

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 therefore also hold operations that determine the lifecycle of the panorama object (new, open, save, quit).

Definition at line 83 of file MainFrame.h.

Member Enumeration Documentation

◆ CloseReason

Enumerator
CLOSE_PROGRAM 
LOAD_NEW_PROJECT 
NEW_PROJECT 

Definition at line 132 of file MainFrame.h.

Constructor & Destructor Documentation

◆ MainFrame()

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

ctor.

Definition at line 236 of file MainFrame.cpp.

References HuginBase::Panorama::addObserver(), GLPreviewFrame::AddUserDefinedAssistant(), GLPreviewFrame::AddUserDefinedSequence(), comparePluginItem(), cpe, DEBUG_ASSERT, DEBUG_TRACE, DisableOpenGLTools(), enableTools(), FixHelpSettings(), PanoOperation::GeneratePanoOperationVector(), huginApp::Get(), GetDataPath(), hugin_utils::GetHuginVersion(), HuginQueue::GetSettingStringTranslated(), hugin_utils::GetUserAppDataDir(), huginApp::GetXRCPath(), GetXRCPath(), gl_preview_frame, GUI_ADVANCED, GUI_SIMPLE, HUGIN_IMGCACHE_UPPERBOUND, images_panel, CPEditorPanel::Init(), ImagesPanel::Init(), MaskEditorPanel::Init(), OptimizePanel::Init(), OptimizePhotometricPanel::Init(), PanoPanel::Init(), m_assistantUserMenu, m_guiLevel, m_menu_file_advanced, m_menu_file_simple, m_mruFiles, m_notebook, m_optIgnoreLineCp, m_optOnlyActiveImages, m_outputUserMenu, m_show_opt_panel, m_show_opt_photo_panel, m_this, m_userAssistant, m_userOutput, mask_panel, OnAbout(), OnAddImages(), OnAddTimeImages(), OnApplyTemplate(), OnBrowseProjects(), OnDoStitch(), OnExit(), OnFAQ(), OnFineTuneAll(), OnFullScreen(), OnHelp(), OnIgnoreLineCp(), OnKeyboardHelp(), OnLoadingFailed(), OnLoadProject(), OnMergeProject(), OnMRUFiles(), OnNewProject(), OnOnlyActiveImages(), OnOpenPTBatcher(), OnOptimize(), OnReadPapywizard(), OnRedo(), OnRemoveCPinMasks(), OnRunAssistant(), OnRunAssistantUserdefined(), OnSaveProject(), OnSaveProjectAs(), OnSavePTStitcherAs(), OnSendToAssistantQueue(), OnSetGuiAdvanced(), OnSetGuiExpert(), OnSetGuiSimple(), OnShowCPFrame(), OnShowPanel(), OnShowPrefs(), OnSize(), OnTipOfDay(), OnToggleGLPreviewFrame(), OnTogglePreviewFrame(), OnUndo(), OnUserDefinedStitch(), OnUserDefinedStitchSaved(), OnUserQuit(), opt_panel, opt_photo_panel, pano, pano_panel, PanoPanel::panoramaChanged(), preview_frame, SetGuiLevel(), SetOptimizeOnlyActiveImages(), svmModel, threshold(), wxIDPYTHONSCRIPTS, wxIDUSERASSISTANT, and wxIDUSEROUTPUTSEQUENCE.

◆ ~MainFrame()

MainFrame::~MainFrame ( )
virtual

Member Function Documentation

◆ AddImages()

void MainFrame::AddImages ( wxArrayString filenameArray)
private

adds the given files to the projects, with checking for invalid filenames

Definition at line 1284 of file MainFrame.cpp.

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

Referenced by OnLoadProject().

◆ CloseProject()

bool MainFrame::CloseProject ( bool  cancelable,
CloseReason  reason 
)

◆ DisableOpenGLTools()

void MainFrame::DisableOpenGLTools ( )

disables all OpenGL related menu items and toobar buttons

Definition at line 2370 of file MainFrame.cpp.

References threshold().

Referenced by MainFrame().

◆ DisplayHelp()

void MainFrame::DisplayHelp ( wxString  section = wxEmptyString)

◆ enableTools()

void MainFrame::enableTools ( bool  option)
private

◆ Get()

MainFrame * MainFrame::Get ( )
static

hack.. kind of a pseudo singleton...

Definition at line 2130 of file MainFrame.cpp.

References DEBUG_ASSERT, DEBUG_FATAL, and m_this.

Referenced by CPEditorPanel::changeState(), PanoPanel::CheckFreeSpace(), PanoPanel::CheckGoodSize(), CPListCtrl::Create(), CPEditorPanel::CreateNewPoint(), CPListCtrl::DeleteSelected(), PanoPanel::DoSendToBatch(), PanoPanel::DoStitch(), PanoPanel::DoUserDefinedStitch(), CPEditorPanel::estimateAndAddOtherPoint(), BrowsePTOFilesDialog::GeneratePreview(), PanoOperation::AddImageOperation::GetInternalCommand(), PanoOperation::CelesteOperation::GetInternalCommand(), GLPreviewFrame::GLPreviewFrame(), PreviewIdentifyTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), CPEditorPanel::NewPointChange(), CPEditorPanel::OnActionContextMenu(), GLPreviewFrame::OnAlign(), PanoPanel::OnBlenderOptions(), CPEditorPanel::OnCelesteButton(), ImagesTreeCtrl::OnChar(), OptimizePanel::OnCheckIgnoreLineCP(), OptimizePanel::OnCheckOnlyActiveImages(), OptimizePhotometricPanel::OnCheckOnlyActiveImages(), GLPreviewFrame::OnClose(), CPListFrame::OnClose(), CPEditorPanel::OnCPEvent(), CPListCtrl::OnCPListSelectionChanged(), GLPreviewFrame::OnCreate(), GLPreviewFrame::OnCreateCP(), CPEditorPanel::OnCreateCPButton(), BrowsePTOFilesDialog::OnDirectoryChanged(), PanoDropTarget::OnDropFiles(), PreferencesDialog::OnExifArgfile2Edit(), PreferencesDialog::OnExifArgfileEdit(), PanoPanel::OnFusionOptions(), ImageVariableDialog::OnHelp(), PreferencesDialog::OnHelp(), MaskImageCtrl::OnLeftMouseDblClick(), ImagesTreeCtrl::OnLeftUp(), ImagesPanel::OnLensTypeChanged(), MaskEditorPanel::OnMaskAdd(), MaskEditorPanel::OnMaskLoad(), ImagesPanel::OnOptimizeButton(), ImagesPanel::OnPhotometricOptimizeButton(), GLPreviewFrame::OnRemoveCP(), OptimizePanel::OnReset(), OptimizePhotometricPanel::OnReset(), MaskImageCtrl::OnRightMouseUp(), CPListFrame::OnSelectButton(), GLPreviewFrame::OnShowMainFrame(), PreferencesDialog::OnUpdateOutputFilename(), PreferencesDialog::OnUpdateProjectFilename(), CPEditorPanel::panoramaChanged(), CPListCtrl::panoramaChanged(), GLPreviewFrame::panoramaChanged(), CPEditorPanel::PointFineTune(), GLPreviewFrame::SetGuiLevel(), MaskImageCtrl::setImage(), and ShowFisheyeCropHint().

◆ GetCurrentOptimizerString()

wxString MainFrame::GetCurrentOptimizerString ( )

returns the string which describes the current selected optimizer setting

Definition at line 2563 of file MainFrame.cpp.

References ImagesPanel::GetCurrentOptimizerString(), and images_panel.

◆ GetDataPath()

const wxString & MainFrame::GetDataPath ( )

get the path to data directory

Definition at line 2124 of file MainFrame.cpp.

References threshold().

Referenced by MainFrame().

◆ GetDefaultSetting()

CPDetectorSetting & MainFrame::GetDefaultSetting ( )

returns default cp detector setting

Definition at line 2099 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

◆ GetFileHistory()

wxFileHistory * MainFrame::GetFileHistory ( )
inline

Definition at line 187 of file MainFrame.h.

References m_mruFiles.

Referenced by GLPreviewFrame::GLPreviewFrame().

◆ getGLPreview()

GLPreviewFrame * MainFrame::getGLPreview ( )

Definition at line 2211 of file MainFrame.cpp.

References gl_preview_frame.

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

◆ GetGuiLevel()

const GuiLevel MainFrame::GetGuiLevel ( ) const
inline

Definition at line 185 of file MainFrame.h.

References m_guiLevel.

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

◆ GetHelpController()

wxHelpController & MainFrame::GetHelpController ( )
inline

Definition at line 183 of file MainFrame.h.

References m_HelpController.

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

◆ GetOptimizeIgnoreLineCp()

const bool MainFrame::GetOptimizeIgnoreLineCp ( ) const

Definition at line 1640 of file MainFrame.cpp.

References m_optIgnoreLineCp.

◆ GetOptimizeOnlyActiveImages()

const bool MainFrame::GetOptimizeOnlyActiveImages ( ) const

Definition at line 1615 of file MainFrame.cpp.

References m_optOnlyActiveImages.

Referenced by CPListCtrl::panoramaChanged().

◆ getPanorama()

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

returns panorama object

Definition at line 101 of file MainFrame.h.

References pano.

◆ getProjectName()

wxString MainFrame::getProjectName ( )

Definition at line 2141 of file MainFrame.cpp.

References m_filename.

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

◆ GetSelectedCPGenerator()

const wxString MainFrame::GetSelectedCPGenerator ( )

return the currently selected cp generator description

Definition at line 2114 of file MainFrame.cpp.

References ImagesPanel::GetSelectedCPGenerator(), and images_panel.

◆ GetSVMModel()

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

◆ GetXRCPath()

const wxString & MainFrame::GetXRCPath ( )

get the path to the xrc directory

Definition at line 2119 of file MainFrame.cpp.

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

Referenced by MainFrame(), and OnTipOfDay().

◆ IsShowingCorrelation()

bool MainFrame::IsShowingCorrelation ( ) const

Definition at line 2146 of file MainFrame.cpp.

References m_showCorrelation.

Referenced by CPListFrame::OnSelectButton(), and CPListCtrl::panoramaChanged().

◆ LoadProjectFile()

void MainFrame::LoadProjectFile ( const wxString filename)

◆ OnAbout()

void MainFrame::OnAbout ( wxCommandEvent &  e)
private

Definition at line 1405 of file MainFrame.cpp.

References threshold().

Referenced by MainFrame().

◆ OnAddImages()

void MainFrame::OnAddImages ( wxCommandEvent &  e)

◆ OnAddTimeImages()

void MainFrame::OnAddTimeImages ( wxCommandEvent &  e)
private

◆ OnApplyTemplate()

void MainFrame::OnApplyTemplate ( wxCommandEvent &  e)
private

◆ OnBrowseProjects()

void MainFrame::OnBrowseProjects ( wxCommandEvent &  e)
private

Definition at line 1219 of file MainFrame.cpp.

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

Referenced by MainFrame().

◆ OnCPListFrameClosed()

void MainFrame::OnCPListFrameClosed ( )

Definition at line 1584 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

◆ OnDoStitch()

void MainFrame::OnDoStitch ( wxCommandEvent &  e)

Definition at line 1651 of file MainFrame.cpp.

References DEBUG_TRACE, PanoPanel::GetStitchButton(), pano_panel, and threshold().

Referenced by MainFrame(), and GLPreviewFrame::OnCreate().

◆ OnExit()

void MainFrame::OnExit ( wxCloseEvent e)
private

◆ OnFAQ()

void MainFrame::OnFAQ ( wxCommandEvent &  e)
private

Definition at line 1453 of file MainFrame.cpp.

References DisplayHelp().

Referenced by MainFrame().

◆ OnFineTuneAll()

void MainFrame::OnFineTuneAll ( wxCommandEvent &  e)
private

◆ OnFullScreen()

void MainFrame::OnFullScreen ( wxCommandEvent &  e)
private

event handler for full screen

Definition at line 2178 of file MainFrame.cpp.

References threshold().

Referenced by MainFrame().

◆ OnHelp()

void MainFrame::OnHelp ( wxCommandEvent &  e)
private

Definition at line 1443 of file MainFrame.cpp.

References DisplayHelp().

Referenced by MainFrame().

◆ OnIgnoreLineCp()

void MainFrame::OnIgnoreLineCp ( wxCommandEvent &  e)

◆ OnKeyboardHelp()

void MainFrame::OnKeyboardHelp ( wxCommandEvent &  e)
private

Definition at line 1448 of file MainFrame.cpp.

References DisplayHelp().

Referenced by MainFrame().

◆ OnLoadingFailed()

void MainFrame::OnLoadingFailed ( wxCommandEvent &  e)
private

◆ OnLoadProject()

void MainFrame::OnLoadProject ( wxCommandEvent &  e)
private

◆ OnMergeProject()

void MainFrame::OnMergeProject ( wxCommandEvent &  e)
private

◆ OnMRUFiles()

void MainFrame::OnMRUFiles ( wxCommandEvent &  e)
private

event handler for recently used files

Definition at line 2151 of file MainFrame.cpp.

References CloseProject(), hugin_utils::HuginMessageBox(), LOAD_NEW_PROJECT, LoadProjectFile(), m_mruFiles, and threshold().

Referenced by MainFrame().

◆ OnNewProject()

void MainFrame::OnNewProject ( wxCommandEvent &  e)
private

◆ OnOnlyActiveImages()

void MainFrame::OnOnlyActiveImages ( wxCommandEvent &  e)

Definition at line 1596 of file MainFrame.cpp.

References SetOptimizeOnlyActiveImages(), and threshold().

Referenced by MainFrame().

◆ OnOpenPTBatcher()

void MainFrame::OnOpenPTBatcher ( wxCommandEvent &  e)
private

Definition at line 1760 of file MainFrame.cpp.

References hugin_utils::HuginMessageBox(), and threshold().

Referenced by MainFrame().

◆ OnOptimize()

void MainFrame::OnOptimize ( wxCommandEvent &  e)

◆ OnPhotometricOptimize()

void MainFrame::OnPhotometricOptimize ( wxCommandEvent &  e)

◆ OnReadPapywizard()

void MainFrame::OnReadPapywizard ( wxCommandEvent &  e)
private

Definition at line 1723 of file MainFrame.cpp.

References Papywizard::ImportPapywizardFile(), pano, and threshold().

Referenced by MainFrame().

◆ OnRedo()

void MainFrame::OnRedo ( wxCommandEvent &  e)
private

◆ OnRemoveCPinMasks()

void MainFrame::OnRemoveCPinMasks ( wxCommandEvent &  e)
private

◆ OnRunAssistant()

void MainFrame::OnRunAssistant ( wxCommandEvent &  e)
private

Definition at line 2475 of file MainFrame.cpp.

References RunAssistant().

Referenced by MainFrame().

◆ OnRunAssistantUserdefined()

void MainFrame::OnRunAssistantUserdefined ( wxCommandEvent &  e)
private

Definition at line 2480 of file MainFrame.cpp.

References m_userAssistant, RunAssistant(), and threshold().

Referenced by MainFrame().

◆ OnSaveProject()

void MainFrame::OnSaveProject ( wxCommandEvent &  e)

◆ OnSaveProjectAs()

void MainFrame::OnSaveProjectAs ( wxCommandEvent &  e)
private

◆ OnSavePTStitcherAs()

void MainFrame::OnSavePTStitcherAs ( wxCommandEvent &  e)
private

◆ OnSendToAssistantQueue()

void MainFrame::OnSendToAssistantQueue ( wxCommandEvent &  e)
private

◆ OnSendToBatch()

void MainFrame::OnSendToBatch ( wxCommandEvent &  e)
private

◆ OnSetGuiAdvanced()

void MainFrame::OnSetGuiAdvanced ( wxCommandEvent &  e)

◆ OnSetGuiExpert()

void MainFrame::OnSetGuiExpert ( wxCommandEvent &  e)

Definition at line 2365 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

Referenced by MainFrame().

◆ OnSetGuiSimple()

void MainFrame::OnSetGuiSimple ( wxCommandEvent &  e)

◆ OnShowCPFrame()

void MainFrame::OnShowCPFrame ( wxCommandEvent &  e)
private

Definition at line 1569 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

Referenced by MainFrame().

◆ OnShowPanel()

void MainFrame::OnShowPanel ( wxCommandEvent &  e)
private

Definition at line 1328 of file MainFrame.cpp.

References m_notebook, m_show_opt_panel, m_show_opt_photo_panel, and threshold().

Referenced by MainFrame().

◆ OnShowPrefs()

void MainFrame::OnShowPrefs ( wxCommandEvent &  e)
private

◆ OnSize()

void MainFrame::OnSize ( wxSizeEvent e)
private

Definition at line 2084 of file MainFrame.cpp.

References DEBUG_TRACE, and threshold().

Referenced by MainFrame().

◆ OnTipOfDay()

void MainFrame::OnTipOfDay ( wxCommandEvent &  e)

Definition at line 1471 of file MainFrame.cpp.

References DEBUG_INFO, GetXRCPath(), and threshold().

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

◆ OnToggleGLPreviewFrame()

void MainFrame::OnToggleGLPreviewFrame ( wxCommandEvent &  e)

◆ OnTogglePreviewFrame()

void MainFrame::OnTogglePreviewFrame ( wxCommandEvent &  e)

Definition at line 1528 of file MainFrame.cpp.

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

Referenced by MainFrame().

◆ OnUndo()

void MainFrame::OnUndo ( wxCommandEvent &  e)
private

◆ OnUserDefinedStitch()

void MainFrame::OnUserDefinedStitch ( wxCommandEvent &  e)

Definition at line 1659 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), and pano_panel.

Referenced by MainFrame().

◆ OnUserDefinedStitchSaved()

void MainFrame::OnUserDefinedStitchSaved ( wxCommandEvent &  e)

Definition at line 1664 of file MainFrame.cpp.

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

Referenced by MainFrame().

◆ OnUserQuit()

void MainFrame::OnUserQuit ( wxCommandEvent &  e)
private

Definition at line 859 of file MainFrame.cpp.

References threshold().

Referenced by MainFrame().

◆ panoramaChanged()

void MainFrame::panoramaChanged ( HuginBase::Panorama pano)
virtual

◆ panoramaImagesChanged()

void MainFrame::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet changed 
)
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
panothe panorama object that changed
changedset of changed images

Implements HuginBase::PanoramaObserver.

Definition at line 852 of file MainFrame.cpp.

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

◆ RunAssistant()

void MainFrame::RunAssistant ( wxWindow *  mainWin,
const wxString userdefinedAssistant = wxEmptyString 
)

◆ RunCPGenerator() [1/2]

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

runs the currently selected cp generator on given images

Definition at line 2109 of file MainFrame.cpp.

References images_panel, and ImagesPanel::RunCPGenerator().

◆ RunCPGenerator() [2/2]

void MainFrame::RunCPGenerator ( CPDetectorSetting setting,
const HuginBase::UIntSet img 
)

run the cp generator with the given setting on selected images

Definition at line 2104 of file MainFrame.cpp.

References images_panel, ImagesPanel::RunCPGenerator(), and threshold().

Referenced by CPEditorPanel::OnCreateCPButton().

◆ SetGuiLevel()

void MainFrame::SetGuiLevel ( GuiLevel  newLevel)

◆ SetOptimizeIgnoreLineCp()

void MainFrame::SetOptimizeIgnoreLineCp ( const bool  ignoreLineCP)

sets the status of the "ignore line cp" menu item

Definition at line 1628 of file MainFrame.cpp.

References HuginBase::Panorama::changeFinished(), m_optIgnoreLineCp, pano, and threshold().

Referenced by OptimizePanel::OnCheckIgnoreLineCP().

◆ SetOptimizeOnlyActiveImages()

void MainFrame::SetOptimizeOnlyActiveImages ( const bool  onlyActive)

◆ ShowCtrlPoint()

void MainFrame::ShowCtrlPoint ( unsigned int  cpNr)

◆ ShowCtrlPointEditor()

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

opens the control points tab with the both images selected

Definition at line 1989 of file MainFrame.cpp.

References cpe, m_notebook, CPEditorPanel::setLeftImage(), CPEditorPanel::setRightImage(), and threshold().

Referenced by PreviewIdentifyTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), and RunAssistant().

◆ ShowMaskEditor()

void MainFrame::ShowMaskEditor ( size_t  imgNr,
bool  switchToCropMode = false 
)

opens the mask/crop editor with the given image selected

Definition at line 2001 of file MainFrame.cpp.

References m_notebook, mask_panel, MaskEditorPanel::setImage(), MaskEditorPanel::SwitchToCropMode(), and threshold().

Referenced by PreviewIdentifyTool::MouseButtonEvent(), ImagesPanel::OnLensTypeChanged(), and ShowFisheyeCropHint().

◆ ShowStitcherTab()

void MainFrame::ShowStitcherTab ( )

opens the stitcher tab

Todo:
Stop using magic numbers for the tabs.

Definition at line 2016 of file MainFrame.cpp.

References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.

◆ updateProgressDisplay()

void MainFrame::updateProgressDisplay ( )
protectedvirtual

receive notification about progress.

update the display

Should not be called directly.

Parameters
msgmessage text
progressoptional progress indicator (0-100)

Implements AppBase::ProgressDisplay.

Definition at line 2037 of file MainFrame.cpp.

References HUGIN_CONV_FILENAME, m_filename, AppBase::ProgressDisplay::m_message, and threshold().

Member Data Documentation

◆ canvas

ImgPreview* MainFrame::canvas
private

Definition at line 268 of file MainFrame.h.

◆ cp_frame

CPListFrame* MainFrame::cp_frame
private

Definition at line 264 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

◆ cpe

CPEditorPanel* MainFrame::cpe
private

Definition at line 253 of file MainFrame.h.

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

◆ gl_preview_frame

GLPreviewFrame* MainFrame::gl_preview_frame
private

◆ images_panel

ImagesPanel* MainFrame::images_panel
private

◆ m_assistantUserMenu

wxMenuItem* MainFrame::m_assistantUserMenu = nullptr
private

Definition at line 287 of file MainFrame.h.

Referenced by enableTools(), and MainFrame().

◆ m_filename

wxString MainFrame::m_filename
private

◆ m_guiLevel

GuiLevel MainFrame::m_guiLevel
private

◆ m_HelpController

wxHelpController MainFrame::m_HelpController
private

Definition at line 292 of file MainFrame.h.

Referenced by GetHelpController().

◆ m_menu_file_advanced

wxMenu* MainFrame::m_menu_file_advanced
private

Definition at line 285 of file MainFrame.h.

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

◆ m_menu_file_simple

wxMenu* MainFrame::m_menu_file_simple
private

Definition at line 284 of file MainFrame.h.

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

◆ m_mruFiles

wxFileHistory MainFrame::m_mruFiles
private

◆ m_notebook

wxNotebook* MainFrame::m_notebook
private

◆ m_optIgnoreLineCp

bool MainFrame::m_optIgnoreLineCp
private

◆ m_optOnlyActiveImages

bool MainFrame::m_optOnlyActiveImages
private

◆ m_outputUserMenu

wxMenuItem* MainFrame::m_outputUserMenu = nullptr
private

Definition at line 286 of file MainFrame.h.

Referenced by enableTools(), and MainFrame().

◆ m_show_opt_panel

bool MainFrame::m_show_opt_panel
private

Definition at line 255 of file MainFrame.h.

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

◆ m_show_opt_photo_panel

bool MainFrame::m_show_opt_photo_panel
private

Definition at line 257 of file MainFrame.h.

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

◆ m_showCorrelation

int MainFrame::m_showCorrelation =0
private

Definition at line 279 of file MainFrame.h.

Referenced by IsShowingCorrelation(), OnFineTuneAll(), and panoramaChanged().

◆ m_this

MainFrame * MainFrame::m_this = 0
staticprivate

Definition at line 282 of file MainFrame.h.

Referenced by Get(), and MainFrame().

◆ m_userAssistant

std::map<int, wxString> MainFrame::m_userAssistant
private

Definition at line 300 of file MainFrame.h.

Referenced by MainFrame(), and OnRunAssistantUserdefined().

◆ m_userOutput

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

Definition at line 299 of file MainFrame.h.

Referenced by MainFrame(), and OnUserDefinedStitchSaved().

◆ mask_panel

MaskEditorPanel* MainFrame::mask_panel
private

Definition at line 252 of file MainFrame.h.

Referenced by MainFrame(), and ShowMaskEditor().

◆ opt_panel

OptimizePanel* MainFrame::opt_panel
private

◆ opt_photo_panel

OptimizePhotometricPanel* MainFrame::opt_photo_panel
private

◆ pano

HuginBase::Panorama& MainFrame::pano
private

◆ pano_panel

PanoPanel* MainFrame::pano_panel
private

◆ preview_frame

PreviewFrame* MainFrame::preview_frame
private

◆ svmModel

struct celeste::svm_model* MainFrame::svmModel
private

Definition at line 259 of file MainFrame.h.

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


The documentation for this class was generated from the following files: