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

Member Enumeration Documentation

Enumerator
CLOSE_PROGRAM 
LOAD_NEW_PROJECT 
NEW_PROJECT 

Definition at line 136 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 1319 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 2436 of file MainFrame.cpp.

Referenced by MainFrame().

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

Definition at line 2107 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 2181 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 2629 of file MainFrame.cpp.

References ImagesPanel::GetCurrentOptimizerString(), and images_panel.

const wxString & MainFrame::GetDataPath ( )

get the path to data directory

Definition at line 2175 of file MainFrame.cpp.

Referenced by MainFrame().

CPDetectorSetting & MainFrame::GetDefaultSetting ( )

returns default cp detector setting

Definition at line 2150 of file MainFrame.cpp.

References ImagesPanel::GetDefaultSetting(), and images_panel.

wxFileHistory* MainFrame::GetFileHistory ( )
inline

Definition at line 191 of file MainFrame.h.

References m_mruFiles.

Referenced by GLPreviewFrame::GLPreviewFrame().

GLPreviewFrame * MainFrame::getGLPreview ( )

Definition at line 2262 of file MainFrame.cpp.

References gl_preview_frame.

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

const GuiLevel MainFrame::GetGuiLevel ( ) const
inline

Definition at line 189 of file MainFrame.h.

References m_guiLevel.

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

wxHelpController& MainFrame::GetHelpController ( )
inline

Definition at line 187 of file MainFrame.h.

References m_HelpController.

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

const bool MainFrame::GetOptimizeIgnoreLineCp ( ) const

Definition at line 1692 of file MainFrame.cpp.

References m_optIgnoreLineCp.

const bool MainFrame::GetOptimizeOnlyActiveImages ( ) const

Definition at line 1667 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 2192 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 2165 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 2170 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 1450 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 1254 of file MainFrame.cpp.

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

void MainFrame::OnCPListFrameClosed ( )

Definition at line 1636 of file MainFrame.cpp.

References cp_frame.

Referenced by CPListFrame::OnClose().

void MainFrame::OnDoStitch ( wxCommandEvent &  e)

Definition at line 1703 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 1498 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 2229 of file MainFrame.cpp.

void MainFrame::OnHelp ( wxCommandEvent &  e)
private

Definition at line 1488 of file MainFrame.cpp.

References DisplayHelp().

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

Definition at line 1493 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 2202 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 1648 of file MainFrame.cpp.

References SetOptimizeOnlyActiveImages().

void MainFrame::OnOpenPTBatcher ( wxCommandEvent &  e)
private

Definition at line 1811 of file MainFrame.cpp.

void MainFrame::OnOptimize ( wxCommandEvent &  e)

Definition at line 1641 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 1774 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 2541 of file MainFrame.cpp.

References RunAssistant().

void MainFrame::OnRunAssistantUserdefined ( wxCommandEvent &  e)
private

Definition at line 2546 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 1032 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 2411 of file MainFrame.cpp.

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

void MainFrame::OnSetGuiExpert ( wxCommandEvent &  e)

Definition at line 2431 of file MainFrame.cpp.

References GUI_EXPERT, and SetGuiLevel().

void MainFrame::OnSetGuiSimple ( wxCommandEvent &  e)

Definition at line 2378 of file MainFrame.cpp.

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

void MainFrame::OnShowCPFrame ( wxCommandEvent &  e)
private

Definition at line 1621 of file MainFrame.cpp.

References cp_frame, DEBUG_TRACE, and pano.

void MainFrame::OnShowPanel ( wxCommandEvent &  e)
private

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

References DEBUG_TRACE.

void MainFrame::OnTipOfDay ( wxCommandEvent &  e)

Definition at line 1523 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 1580 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 1710 of file MainFrame.cpp.

References PanoPanel::DoUserDefinedStitch(), and pano_panel.

void MainFrame::OnUserDefinedStitchSaved ( wxCommandEvent &  e)

Definition at line 1715 of file MainFrame.cpp.

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

Referenced by MainFrame().

void MainFrame::OnUserQuit ( wxCommandEvent &  e)
private

Definition at line 884 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 877 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 2155 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 2160 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 1680 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 2040 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 2052 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 2067 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 2088 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 272 of file MainFrame.h.

CPListFrame* MainFrame::cp_frame
private

Definition at line 268 of file MainFrame.h.

Referenced by OnCPListFrameClosed(), and OnShowCPFrame().

CPEditorPanel* MainFrame::cpe
private

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

Referenced by GetHelpController().

wxMenu* MainFrame::m_menu_file_advanced
private

Definition at line 289 of file MainFrame.h.

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

wxMenu* MainFrame::m_menu_file_simple
private

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

Referenced by enableTools(), and MainFrame().

bool MainFrame::m_show_opt_panel
private

Definition at line 259 of file MainFrame.h.

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

bool MainFrame::m_show_opt_photo_panel
private

Definition at line 261 of file MainFrame.h.

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

int MainFrame::m_showCorrelation =0
private

Definition at line 283 of file MainFrame.h.

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

MainFrame * MainFrame::m_this = 0
staticprivate

Definition at line 286 of file MainFrame.h.

Referenced by Get(), and MainFrame().

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

Definition at line 304 of file MainFrame.h.

Referenced by MainFrame(), and OnRunAssistantUserdefined().

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

Definition at line 303 of file MainFrame.h.

Referenced by MainFrame(), and OnUserDefinedStitchSaved().

MaskEditorPanel* MainFrame::mask_panel
private

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

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


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