#include <ImagesPanel.h>
Inheritance diagram for ImagesPanel:

Public Member Functions | |
| ImagesPanel () | |
| bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel")) |
| void | Init (PT::Panorama *pano) |
| ~ImagesPanel () | |
| virtual void | panoramaChanged (PT::Panorama &pano) |
| receives notification about panorama changes | |
| virtual void | panoramaImagesChanged (PT::Panorama &pano, const PT::UIntSet &imgNr) |
| void | ReloadCPDetectorSettings () |
| Reloads the cp detector settings from config, necessary after edit preferences. | |
| CPDetectorSetting & | GetDefaultSetting () |
| returns the default cp detector settings | |
| void | SetGuiLevel (GuiLevel newGuiLevel) |
| sets the GuiLevel for all controls on this panel | |
Protected Member Functions | |
| void | OnOptimizeButton (wxCommandEvent &e) |
| event handler for geometric optimizer | |
| void | OnPhotometricOptimizeButton (wxCommandEvent &e) |
| event handler for photometric optimizer | |
Private Member Functions | |
| void | OnSize (wxSizeEvent &e) |
| void | CPGenerate (wxCommandEvent &e) |
| control point detection event handler | |
| void | OnSelectionChanged (wxTreeEvent &e) |
| change displayed variables if the selection has changed. | |
| void | OnLensTypeChanged (wxCommandEvent &e) |
| updates the lens type for the selected images | |
| void | OnFocalLengthChanged (wxCommandEvent &e) |
| updates the focal length for the selected images | |
| void | OnCropFactorChanged (wxCommandEvent &e) |
| updates the crop factor for the selected images | |
| void | OnMinimumOverlapChanged (wxCommandEvent &e) |
| updates the minimum overlap | |
| void | OnMaxEvDiffChanged (wxCommandEvent &e) |
| updates the max ev difference | |
| void | OnGroupModeChanged (wxCommandEvent &e) |
| event handler when grouping selection was changed | |
| void | OnDisplayModeChanged (wxCommandEvent &e) |
| event handler when display mode (which information should be shown) was changed | |
| void | OnOptimizerSwitchChanged (wxCommandEvent &e) |
| event handler, when optimizer master switch was changed | |
| void | OnPhotometricOptimizerSwitchChanged (wxCommandEvent &e) |
| event handler, when photometric optimizer master switch was changed | |
| void | FillGroupChoice () |
| fills the grouping wxChoice with values depending on GuiLevel | |
| void | FillOptimizerChoice () |
| fills the optmizer wxChoices with values depending on GuiLevel | |
| void | DisableImageCtrls () |
| void | EnableImageCtrls () |
| void | ShowImage (unsigned int imgNr) |
| show a bigger thumbnail | |
| void | UpdatePreviewImage () |
Private Attributes | |
| Panorama * | m_pano |
| the model | |
| wxBitmap | m_empty |
| bitmap with default image | |
| HuginBase::ImageCache::RequestPtr | thumbnail_request |
| Request for thumbnail image. | |
| ImagesTreeCtrl * | m_images_tree |
| pointer to the main control | |
| wxStaticBitmap * | m_smallImgCtrl |
| pointer to the preview image control | |
| wxChoice * | m_lenstype |
| pointer to lens type selector | |
| wxChoice * | m_optChoice |
| pointer to optimizer switch selector | |
| wxChoice * | m_optPhotoChoice |
| pointer to photometric optimizer switch selector | |
| wxTextCtrl * | m_focallength |
| the text input control for focal length | |
| wxTextCtrl * | m_cropfactor |
| the text input control for crop factor | |
| wxTextCtrl * | m_overlap |
| the text input control for minimum overlap | |
| wxTextCtrl * | m_maxEv |
| the text input control for max ev difference | |
| size_t | m_showImgNr |
| wxButton * | m_matchingButton |
| wxChoice * | m_CPDetectorChoice |
| CPDetectorConfig | cpdetector_config |
| GuiLevel | m_guiLevel |
| int | m_degDigits |
This Panel is for loading of images into Panorama. Here one can set first values vor the camera orientation and link these parameters for the optimization.
Definition at line 42 of file ImagesPanel.h.
|
|
|
|
|
Definition at line 178 of file ImagesPanel.cpp. References DEBUG_TRACE, DeleteClientData(), m_cropfactor, m_focallength, m_maxEv, m_optChoice, m_optPhotoChoice, m_overlap, m_pano, and HuginBase::Panorama::removeObserver(). |
|
|
control point detection event handler
Definition at line 285 of file ImagesPanel.cpp. References CommandHistory::addCommand(), AutoCtrlPointCreator::automatch(), cpdetector_config, fill_set(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), ImagesTreeCtrl::GetSelectedImages(), HUGIN_ASS_NCONTROLPOINTS, m_CPDetectorChoice, m_images_tree, m_pano, CPDetectorConfig::Read(), CPDetectorConfig::settings, and CPDetectorConfig::Write(). |
|
||||||||||||||||||||||||||||
|
|
Definition at line 415 of file ImagesPanel.cpp. References m_cropfactor, m_empty, m_focallength, m_lenstype, and m_smallImgCtrl. Referenced by OnSelectionChanged(), and panoramaImagesChanged(). |
|
|
Definition at line 426 of file ImagesPanel.cpp. References m_cropfactor, m_focallength, and m_lenstype. Referenced by OnSelectionChanged(). |
|
|
fills the grouping wxChoice with values depending on GuiLevel
Definition at line 655 of file ImagesPanel.cpp. References DeleteClientData(), GUI_ADVANCED, GUI_SIMPLE, m_guiLevel, and OnGroupModeChanged(). Referenced by Create(), and SetGuiLevel(). |
|
|
fills the optmizer wxChoices with values depending on GuiLevel
Definition at line 691 of file ImagesPanel.cpp. References DeleteClientData(), m_guiLevel, m_optChoice, and m_optPhotoChoice. Referenced by Create(), and SetGuiLevel(). |
|
|
returns the default cp detector settings
Definition at line 76 of file ImagesPanel.h. References cpdetector_config, CPDetectorConfig::GetDefaultGenerator(), and CPDetectorConfig::settings. Referenced by MainFrame::GetDefaultSetting(). |
|
|
Definition at line 162 of file ImagesPanel.cpp. References HuginBase::Panorama::addObserver(), ImagesTreeCtrl::Init(), m_images_tree, and m_pano. |
|
|
updates the crop factor for the selected images
Definition at line 565 of file ImagesPanel.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), ImagesTreeCtrl::GetSelectedImages(), m_cropfactor, m_images_tree, m_pano, and str2double(). |
|
|
event handler when display mode (which information should be shown) was changed
Definition at line 778 of file ImagesPanel.cpp. References m_images_tree, and ImagesTreeCtrl::SetDisplayMode(). |
|
|
updates the focal length for the selected images
Definition at line 514 of file ImagesPanel.cpp. References CommandHistory::addCommand(), HuginBase::SrcPanoImage::calcHFOV(), HuginBase::Panorama::getImage(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getNrOfImages(), ImagesTreeCtrl::GetSelectedImages(), m_focallength, m_images_tree, m_pano, OnSelectionChanged(), and str2double(). |
|
|
event handler when grouping selection was changed
Definition at line 763 of file ImagesPanel.cpp. References ImagesTreeCtrl::GroupMode, m_images_tree, m_maxEv, m_overlap, and ImagesTreeCtrl::SetGroupMode(). Referenced by FillGroupChoice(). |
|
|
updates the lens type for the selected images
Definition at line 497 of file ImagesPanel.cpp. References CommandHistory::addCommand(), PT::calcFocalLength(), HuginBase::Panorama::getImage(), GlobalCmdHist::getInstance(), ImagesTreeCtrl::GetSelectedImages(), GetSelectedProjection(), m_images_tree, m_lenstype, and m_pano. |
|
|
updates the max ev difference
Definition at line 625 of file ImagesPanel.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_maxEv, m_pano, HuginBase::PanoramaOptions::outputLayersExposureDiff, and str2double(). |
|
|
updates the minimum overlap
Definition at line 595 of file ImagesPanel.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_overlap, m_pano, HuginBase::PanoramaOptions::outputStacksMinOverlap, and str2double(). |
|
|
event handler for geometric optimizer
Definition at line 830 of file ImagesPanel.cpp. References MainFrame::Get(), and MainFrame::OnOptimize(). |
|
|
event handler, when optimizer master switch was changed
Definition at line 784 of file ImagesPanel.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptimizerSwitch(), m_optChoice, and m_pano. |
|
|
event handler for photometric optimizer
Definition at line 835 of file ImagesPanel.cpp. References MainFrame::Get(), and MainFrame::OnPhotometricOptimize(). |
|
|
event handler, when photometric optimizer master switch was changed
Definition at line 795 of file ImagesPanel.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_optPhotoChoice, and m_pano. |
|
|
change displayed variables if the selection has changed.
Definition at line 339 of file ImagesPanel.cpp. References PT::calcFocalLength(), DEBUG_DEBUG, DisableImageCtrls(), hugin_utils::doubleTowxString(), EnableImageCtrls(), HuginBase::Panorama::getImage(), ImagesTreeCtrl::GetSelectedImages(), m_cropfactor, m_degDigits, m_empty, m_focallength, m_images_tree, m_lenstype, m_pano, m_smallImgCtrl, SelectProjection(), and ShowImage(). Referenced by Create(), OnFocalLengthChanged(), and panoramaImagesChanged(). |
|
|
Definition at line 199 of file ImagesPanel.cpp. References DEBUG_INFO, and UpdatePreviewImage(). |
|
|
receives notification about panorama changes
Definition at line 209 of file ImagesPanel.cpp. References CommandHistory::addCommand(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptimizerSwitch(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getPhotometricOptimizerSwitch(), m_maxEv, m_optChoice, m_optPhotoChoice, m_overlap, m_pano, HuginBase::PanoramaOptions::outputLayersExposureDiff, and HuginBase::PanoramaOptions::outputStacksMinOverlap. Referenced by SetGuiLevel(). |
|
||||||||||||
|
Definition at line 259 of file ImagesPanel.cpp. References DEBUG_DEBUG, DEBUG_TRACE, DisableImageCtrls(), HuginBase::Panorama::getNrOfImages(), ImagesTreeCtrl::GetSelectedImages(), m_images_tree, m_matchingButton, and OnSelectionChanged(). |
|
|
Reloads the cp detector settings from config, necessary after edit preferences.
Definition at line 488 of file ImagesPanel.cpp. References cpdetector_config, CPDetectorConfig::FillControl(), m_CPDetectorChoice, and CPDetectorConfig::Read(). Referenced by MainFrame::OnShowPrefs(). |
|
|
sets the GuiLevel for all controls on this panel
Definition at line 806 of file ImagesPanel.cpp. References FillGroupChoice(), FillOptimizerChoice(), GUI_ADVANCED, GUI_EXPERT, GUI_SIMPLE, m_guiLevel, m_images_tree, m_pano, panoramaChanged(), wxTreeListCtrl::Refresh(), and ImagesTreeCtrl::SetGuiLevel(). Referenced by MainFrame::SetGuiLevel(). |
|
|
show a bigger thumbnail
Definition at line 434 of file ImagesPanel.cpp. References m_showImgNr, and UpdatePreviewImage(). Referenced by OnSelectionChanged(). |
|
|
Definition at line 440 of file ImagesPanel.cpp. References HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), imageCacheEntry2wxImage(), m_pano, m_showImgNr, m_smallImgCtrl, thumbnail_request, and UpdatePreviewImage(). Referenced by OnSize(), ShowImage(), and UpdatePreviewImage(). |
|
|
Definition at line 160 of file ImagesPanel.h. Referenced by CPGenerate(), Create(), GetDefaultSetting(), and ReloadCPDetectorSettings(). |
|
|
Definition at line 158 of file ImagesPanel.h. Referenced by CPGenerate(), Create(), and ReloadCPDetectorSettings(). |
|
|
the text input control for crop factor
Definition at line 150 of file ImagesPanel.h. Referenced by Create(), DisableImageCtrls(), EnableImageCtrls(), OnCropFactorChanged(), OnSelectionChanged(), and ~ImagesPanel(). |
|
|
Definition at line 163 of file ImagesPanel.h. Referenced by Create(), and OnSelectionChanged(). |
|
|
bitmap with default image
Definition at line 132 of file ImagesPanel.h. Referenced by Create(), DisableImageCtrls(), and OnSelectionChanged(). |
|
|
the text input control for focal length
Definition at line 148 of file ImagesPanel.h. Referenced by Create(), DisableImageCtrls(), EnableImageCtrls(), OnFocalLengthChanged(), OnSelectionChanged(), and ~ImagesPanel(). |
|
|
Definition at line 162 of file ImagesPanel.h. Referenced by FillGroupChoice(), FillOptimizerChoice(), and SetGuiLevel(). |
|
|
pointer to the main control
Definition at line 138 of file ImagesPanel.h. Referenced by CPGenerate(), Create(), Init(), OnCropFactorChanged(), OnDisplayModeChanged(), OnFocalLengthChanged(), OnGroupModeChanged(), OnLensTypeChanged(), OnSelectionChanged(), panoramaImagesChanged(), and SetGuiLevel(). |
|
|
pointer to lens type selector
Definition at line 142 of file ImagesPanel.h. Referenced by Create(), DisableImageCtrls(), EnableImageCtrls(), OnLensTypeChanged(), and OnSelectionChanged(). |
|
|
Definition at line 157 of file ImagesPanel.h. Referenced by Create(), and panoramaImagesChanged(). |
|
|
the text input control for max ev difference
Definition at line 154 of file ImagesPanel.h. Referenced by Create(), OnGroupModeChanged(), OnMaxEvDiffChanged(), panoramaChanged(), and ~ImagesPanel(). |
|
|
pointer to optimizer switch selector
Definition at line 144 of file ImagesPanel.h. Referenced by Create(), FillOptimizerChoice(), OnOptimizerSwitchChanged(), panoramaChanged(), and ~ImagesPanel(). |
|
|
pointer to photometric optimizer switch selector
Definition at line 146 of file ImagesPanel.h. Referenced by Create(), FillOptimizerChoice(), OnPhotometricOptimizerSwitchChanged(), panoramaChanged(), and ~ImagesPanel(). |
|
|
the text input control for minimum overlap
Definition at line 152 of file ImagesPanel.h. Referenced by Create(), OnGroupModeChanged(), OnMinimumOverlapChanged(), panoramaChanged(), and ~ImagesPanel(). |
|
|
the model
Definition at line 91 of file ImagesPanel.h. Referenced by CPGenerate(), Init(), OnCropFactorChanged(), OnFocalLengthChanged(), OnLensTypeChanged(), OnMaxEvDiffChanged(), OnMinimumOverlapChanged(), OnOptimizerSwitchChanged(), OnPhotometricOptimizerSwitchChanged(), OnSelectionChanged(), panoramaChanged(), SetGuiLevel(), UpdatePreviewImage(), and ~ImagesPanel(). |
|
|
Definition at line 155 of file ImagesPanel.h. Referenced by Create(), ShowImage(), and UpdatePreviewImage(). |
|
|
pointer to the preview image control
Definition at line 140 of file ImagesPanel.h. Referenced by Create(), DisableImageCtrls(), OnSelectionChanged(), and UpdatePreviewImage(). |
|
|
Request for thumbnail image.
Definition at line 135 of file ImagesPanel.h. Referenced by UpdatePreviewImage(). |
1.3.9.1