Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
virtual ~MainFrame ()
 dtor. More...
 
virtual void panoramaChanged (HuginBase::Panorama &pano)
 Enable or disable undo and redo. More...
 
void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
 notifies about changes to images More...
 
const HuginBase::PanoramagetPanorama ()
 returns panorama object More...
 
void ShowCtrlPoint (unsigned int cpNr)
 
const wxString & GetXRCPath ()
 get the path to the xrc directory More...
 
const wxString & GetDataPath ()
 get the path to data directory More...
 
void SetOptimizeOnlyActiveImages (const bool onlyActive)
 sets the status of the "optimize only active images" menu item More...
 
const bool GetOptimizeOnlyActiveImages () const
 
void SetOptimizeIgnoreLineCp (const bool ignoreLineCP)
 sets the status of the "ignore line cp" menu item More...
 
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 More...
 
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 More...
 
void ShowCtrlPointEditor (unsigned int img1, unsigned int img2)
 opens the control points tab with the both images selected More...
 
void ShowMaskEditor (size_t imgNr, bool switchToCropMode=false)
 opens the mask/crop editor with the given image selected More...
 
void ShowStitcherTab ()
 opens the stitcher tab More...
 
void OnCPListFrameClosed ()
 
CPDetectorSettingGetDefaultSetting ()
 returns default cp detector setting More...
 
void RunCPGenerator (CPDetectorSetting &setting, const HuginBase::UIntSet &img)
 run the cp generator with the given setting on selected images More...
 
void RunCPGenerator (const HuginBase::UIntSet &img)
 runs the currently selected cp generator on given images More...
 
const wxString GetSelectedCPGenerator ()
 return the currently selected cp generator description More...
 
wxString getProjectName ()
 
bool IsShowingCorrelation () const
 
struct 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 More...
 
- 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 More...
 
void taskFinished ()
 call when a task has finished and the status message should be cleared More...
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed More...
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value More...
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g. More...
 

Static Public Member Functions

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

Protected Member Functions

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

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

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
 
struct celeste::svm_modelsvmModel
 
PreviewFramepreview_frame
 
GLPreviewFramegl_preview_frame
 
CPListFramecp_frame
 
GuiLevel m_guiLevel
 
ImgPreview * canvas
 
HuginBase::Panoramapano
 
wxString m_filename
 
int m_showCorrelation =0
 
wxMenu * m_menu_file_simple
 
wxMenu * m_menu_file_advanced
 
wxMenuItem * m_outputUserMenu = nullptr
 
wxMenuItem * m_assistantUserMenu = nullptr
 
bool m_optOnlyActiveImages
 
bool m_optIgnoreLineCp
 
wxHelpController m_HelpController
 
std::map< int, wxString > m_userOutput
 
std::map< int, wxString > m_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

Enumerator
CLOSE_PROGRAM 
LOAD_NEW_PROJECT 
NEW_PROJECT 

Definition at line 132 of file MainFrame.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void MainFrame::AddImages ( wxArrayString &  filenameArray)
private

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

Definition at line 1314 of file MainFrame.cpp.

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

Referenced by OnLoadProject().

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

disables all OpenGL related menu items and toobar buttons

Definition at line 2424 of file MainFrame.cpp.

Referenced by MainFrame().

void MainFrame::DisplayHelp ( wxString  section = wxEmptyString)
void MainFrame::enableTools ( bool  option)
private

Definition at line 2095 of file MainFrame.cpp.

References m_assistantUserMenu, m_menu_file_advanced, and m_outputUserMenu.

Referenced by MainFrame(), and panoramaImagesChanged().

MainFrame * MainFrame::Get ( )
static

hack.. kind of a pseudo singleton...

Definition at line 2169 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(), CPListFrame::OnClose(), GLPreviewFrame::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(), OptimizePhotometricPanel::OnReset(), OptimizePanel::OnReset(), MaskImageCtrl::OnRightMouseUp(), CPListFrame::OnSelectButton(), GLPreviewFrame::OnShowMainFrame(), PreferencesDialog::OnUpdateOutputFilename(), PreferencesDialog::OnUpdateProjectFilename(), CPListCtrl::panoramaChanged(), CPEditorPanel::panoramaChanged(), GLPreviewFrame::panoramaChanged(), CPEditorPanel::PointFineTune(), GLPreviewFrame::SetGuiLevel(), MaskImageCtrl::setImage(), and ShowFisheyeCropHint().

wxString MainFrame::GetCurrentOptimizerString ( )

returns the string which describes the current selected optimizer setting

Definition at line 2617 of file MainFrame.cpp.

References ImagesPanel::GetCurrentOptimizerString(), and images_panel.

const wxString & MainFrame::GetDataPath ( )

get the path to data directory

Definition at line 2163 of file MainFrame.cpp.

Referenced by MainFrame().

CPDetectorSetting & MainFrame::GetDefaultSetting ( )

returns default cp detector setting

Definition at line 2138 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

wxFileHistory* MainFrame::GetFileHistory ( )
inline

Definition at line 187 of file MainFrame.h.

References m_mruFiles.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame * MainFrame::getGLPreview ( )

Definition at line 2250 of file MainFrame.cpp.

References gl_preview_frame.

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

const GuiLevel MainFrame::GetGuiLevel ( ) const
inline

Definition at line 185 of file MainFrame.h.

References m_guiLevel.

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

wxHelpController& MainFrame::GetHelpController ( )
inline

Definition at line 183 of file MainFrame.h.

References m_HelpController.

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

const bool MainFrame::GetOptimizeIgnoreLineCp ( ) const

Definition at line 1680 of file MainFrame.cpp.

References m_optIgnoreLineCp.

const bool MainFrame::GetOptimizeOnlyActiveImages ( ) const

Definition at line 1655 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 2180 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 2153 of file MainFrame.cpp.

References ImagesPanel::GetSelectedCPGenerator(), and images_panel.

struct celeste::svm_model * MainFrame::GetSVMModel ( )
const wxString & MainFrame::GetXRCPath ( )

get the path to the xrc directory

Definition at line 2158 of file MainFrame.cpp.

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

Referenced by MainFrame(), and OnTipOfDay().

bool MainFrame::IsShowingCorrelation ( ) const
void MainFrame::LoadProjectFile ( const wxString &  filename)
void MainFrame::OnAbout ( wxCommandEvent &  e)
private

Definition at line 1445 of file MainFrame.cpp.

void MainFrame::OnAddImages ( wxCommandEvent &  e)
void MainFrame::OnAddTimeImages ( wxCommandEvent &  e)
private
void MainFrame::OnApplyTemplate ( wxCommandEvent &  e)
private
void MainFrame::OnBrowseProjects ( wxCommandEvent &  e)
private

Definition at line 1249 of file MainFrame.cpp.

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

void MainFrame::OnCPListFrameClosed ( )

Definition at line 1624 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

void MainFrame::OnDoStitch ( wxCommandEvent &  e)

Definition at line 1691 of file MainFrame.cpp.

References DEBUG_TRACE, and pano_panel.

Referenced by GLPreviewFrame::OnCreate().

void MainFrame::OnExit ( wxCloseEvent &  e)
private
void MainFrame::OnFAQ ( wxCommandEvent &  e)
private

Definition at line 1493 of file MainFrame.cpp.

References DisplayHelp().

void MainFrame::OnFineTuneAll ( wxCommandEvent &  e)
private
void MainFrame::OnFullScreen ( wxCommandEvent &  e)
private

event handler for full screen

Definition at line 2217 of file MainFrame.cpp.

void MainFrame::OnHelp ( wxCommandEvent &  e)
private

Definition at line 1483 of file MainFrame.cpp.

References DisplayHelp().

void MainFrame::OnIgnoreLineCp ( wxCommandEvent &  e)
void MainFrame::OnKeyboardHelp ( wxCommandEvent &  e)
private

Definition at line 1488 of file MainFrame.cpp.

References DisplayHelp().

void MainFrame::OnLoadingFailed ( wxCommandEvent &  e)
private
void MainFrame::OnLoadProject ( wxCommandEvent &  e)
private
void MainFrame::OnMergeProject ( wxCommandEvent &  e)
private
void MainFrame::OnMRUFiles ( wxCommandEvent &  e)
private

event handler for recently used files

Definition at line 2190 of file MainFrame.cpp.

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

void MainFrame::OnNewProject ( wxCommandEvent &  e)
private
void MainFrame::OnOnlyActiveImages ( wxCommandEvent &  e)

Definition at line 1636 of file MainFrame.cpp.

References SetOptimizeOnlyActiveImages().

void MainFrame::OnOpenPTBatcher ( wxCommandEvent &  e)
private

Definition at line 1799 of file MainFrame.cpp.

void MainFrame::OnOptimize ( wxCommandEvent &  e)

Definition at line 1629 of file MainFrame.cpp.

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

Referenced by ImagesPanel::OnOptimizeButton().

void MainFrame::OnPhotometricOptimize ( wxCommandEvent &  e)
void MainFrame::OnReadPapywizard ( wxCommandEvent &  e)
private

Definition at line 1762 of file MainFrame.cpp.

References Papywizard::ImportPapywizardFile(), and pano.

void MainFrame::OnRedo ( wxCommandEvent &  e)
private
void MainFrame::OnRemoveCPinMasks ( wxCommandEvent &  e)
private
void MainFrame::OnRunAssistant ( wxCommandEvent &  e)
private

Definition at line 2529 of file MainFrame.cpp.

References RunAssistant().

void MainFrame::OnRunAssistantUserdefined ( wxCommandEvent &  e)
private

Definition at line 2534 of file MainFrame.cpp.

References m_userAssistant, and RunAssistant().

Referenced by MainFrame().

void MainFrame::OnSaveProject ( wxCommandEvent &  e)
void MainFrame::OnSaveProjectAs ( wxCommandEvent &  e)
private

Definition at line 1027 of file MainFrame.cpp.

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

Referenced by OnSaveProject().

void MainFrame::OnSavePTStitcherAs ( wxCommandEvent &  e)
private
void MainFrame::OnSendToAssistantQueue ( wxCommandEvent &  e)
private
void MainFrame::OnSendToBatch ( wxCommandEvent &  e)
private
void MainFrame::OnSetGuiAdvanced ( wxCommandEvent &  e)

Definition at line 2399 of file MainFrame.cpp.

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

void MainFrame::OnSetGuiExpert ( wxCommandEvent &  e)

Definition at line 2419 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

void MainFrame::OnSetGuiSimple ( wxCommandEvent &  e)

Definition at line 2366 of file MainFrame.cpp.

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

void MainFrame::OnShowCPFrame ( wxCommandEvent &  e)
private

Definition at line 1609 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

void MainFrame::OnShowPanel ( wxCommandEvent &  e)
private

Definition at line 1358 of file MainFrame.cpp.

References m_notebook, m_show_opt_panel, and m_show_opt_photo_panel.

void MainFrame::OnShowPrefs ( wxCommandEvent &  e)
private
void MainFrame::OnSize ( wxSizeEvent &  e)
private

Definition at line 2123 of file MainFrame.cpp.

References DEBUG_TRACE.

void MainFrame::OnTipOfDay ( wxCommandEvent &  e)

Definition at line 1511 of file MainFrame.cpp.

References DEBUG_INFO, and GetXRCPath().

Referenced by huginApp::OnInit().

void MainFrame::OnToggleGLPreviewFrame ( wxCommandEvent &  e)
void MainFrame::OnTogglePreviewFrame ( wxCommandEvent &  e)

Definition at line 1568 of file MainFrame.cpp.

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

void MainFrame::OnUndo ( wxCommandEvent &  e)
private
void MainFrame::OnUserDefinedStitch ( wxCommandEvent &  e)

Definition at line 1698 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), and pano_panel.

void MainFrame::OnUserDefinedStitchSaved ( wxCommandEvent &  e)

Definition at line 1703 of file MainFrame.cpp.

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

Referenced by MainFrame().

void MainFrame::OnUserQuit ( wxCommandEvent &  e)
private

Definition at line 879 of file MainFrame.cpp.

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

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

void MainFrame::RunAssistant ( wxWindow *  mainWin,
const wxString &  userdefinedAssistant = wxEmptyString 
)
void MainFrame::RunCPGenerator ( CPDetectorSetting setting,
const HuginBase::UIntSet img 
)

run the cp generator with the given setting on selected images

Definition at line 2143 of file MainFrame.cpp.

References images_panel, and ImagesPanel::RunCPGenerator().

Referenced by CPEditorPanel::OnCreateCPButton().

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

runs the currently selected cp generator on given images

Definition at line 2148 of file MainFrame.cpp.

References images_panel, and ImagesPanel::RunCPGenerator().

void MainFrame::SetGuiLevel ( GuiLevel  newLevel)
void MainFrame::SetOptimizeIgnoreLineCp ( const bool  ignoreLineCP)

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

Definition at line 1668 of file MainFrame.cpp.

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

Referenced by OptimizePanel::OnCheckIgnoreLineCP().

void MainFrame::SetOptimizeOnlyActiveImages ( const bool  onlyActive)
void MainFrame::ShowCtrlPoint ( unsigned int  cpNr)
void MainFrame::ShowCtrlPointEditor ( unsigned int  img1,
unsigned int  img2 
)

opens the control points tab with the both images selected

Definition at line 2028 of file MainFrame.cpp.

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

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

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

opens the mask/crop editor with the given image selected

Definition at line 2040 of file MainFrame.cpp.

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

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

void MainFrame::ShowStitcherTab ( )

opens the stitcher tab

Todo:
Stop using magic numbers for the tabs.

Definition at line 2055 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::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 2076 of file MainFrame.cpp.

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

Member Data Documentation

ImgPreview* MainFrame::canvas
private

Definition at line 268 of file MainFrame.h.

CPListFrame* MainFrame::cp_frame
private

Definition at line 264 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

CPEditorPanel* MainFrame::cpe
private

Definition at line 253 of file MainFrame.h.

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

GLPreviewFrame* MainFrame::gl_preview_frame
private
ImagesPanel* MainFrame::images_panel
private
wxMenuItem* MainFrame::m_assistantUserMenu = nullptr
private

Definition at line 287 of file MainFrame.h.

Referenced by enableTools(), and MainFrame().

wxString MainFrame::m_filename
private
GuiLevel MainFrame::m_guiLevel
private
wxHelpController MainFrame::m_HelpController
private

Definition at line 292 of file MainFrame.h.

Referenced by GetHelpController().

wxMenu* MainFrame::m_menu_file_advanced
private

Definition at line 285 of file MainFrame.h.

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

wxMenu* MainFrame::m_menu_file_simple
private

Definition at line 284 of file MainFrame.h.

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

wxFileHistory MainFrame::m_mruFiles
private
wxNotebook* MainFrame::m_notebook
private
bool MainFrame::m_optIgnoreLineCp
private
bool MainFrame::m_optOnlyActiveImages
private
wxMenuItem* MainFrame::m_outputUserMenu = nullptr
private

Definition at line 286 of file MainFrame.h.

Referenced by enableTools(), and MainFrame().

bool MainFrame::m_show_opt_panel
private

Definition at line 255 of file MainFrame.h.

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

bool MainFrame::m_show_opt_photo_panel
private

Definition at line 257 of file MainFrame.h.

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

int MainFrame::m_showCorrelation =0
private

Definition at line 279 of file MainFrame.h.

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

MainFrame * MainFrame::m_this = 0
staticprivate

Definition at line 282 of file MainFrame.h.

Referenced by Get(), and MainFrame().

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

Definition at line 300 of file MainFrame.h.

Referenced by MainFrame(), and OnRunAssistantUserdefined().

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

Definition at line 299 of file MainFrame.h.

Referenced by MainFrame(), and OnUserDefinedStitchSaved().

MaskEditorPanel* MainFrame::mask_panel
private

Definition at line 252 of file MainFrame.h.

Referenced by MainFrame(), and ShowMaskEditor().

OptimizePanel* MainFrame::opt_panel
private
OptimizePhotometricPanel* MainFrame::opt_photo_panel
private
HuginBase::Panorama& MainFrame::pano
private
PanoPanel* MainFrame::pano_panel
private
PreviewFrame* MainFrame::preview_frame
private
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: