24 #ifndef _IMAGESPANEL_H
25 #define _IMAGESPANEL_H
45 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"));
94 void OnSize(wxSizeEvent & e);
171 DECLARE_EVENT_TABLE()
182 virtual wxObject *DoCreateResource();
183 virtual bool CanHandle(wxXmlNode *node);
186 #endif // _IMAGESPANEL_H
void UpdatePreviewImage()
virtual void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
notifies about changes to images
wxTextCtrl * m_focallength
the text input control for focal length
wxStaticBitmap * m_smallImgCtrl
pointer to the preview image control
wxChoice * m_CPDetectorChoice
void RunCPGenerator(CPDetectorSetting &setting, const HuginBase::UIntSet &img)
run the cp generator with the given setting on selected images
wxChoice * m_lenstype
pointer to lens type selector
void OnPhotometricOptimizerSwitchChanged(wxCommandEvent &e)
event handler, when photometric optimizer master switch was changed
HuginBase::Panorama * m_pano
the model
void ShowImage(unsigned int imgNr)
show a bigger thumbnail
void OnDisplayModeChanged(wxCommandEvent &e)
event handler when display mode (which information should be shown) was changed
void OnLensTypeChanged(wxCommandEvent &e)
updates the lens type for the selected images
wxBitmap m_empty
bitmap with default image
ImagesTreeCtrl * m_images_tree
pointer to the main control
void OnOptimizeButton(wxCommandEvent &e)
event handler for geometric optimizer
std::set< unsigned int > UIntSet
ArraySettings settings
array which stores the different autopano settings
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 OnMaxEvDiffChanged(wxCommandEvent &e)
updates the max ev difference
class, which stores all settings of one cp detector
void CPGenerate(wxCommandEvent &e)
control point detection event handler
wxTextCtrl * m_maxEv
the text input control for max ev difference
std::shared_ptr< Request > RequestPtr
Reference counted request for an image to load.
void FillGroupChoice()
fills the grouping wxChoice with values depending on GuiLevel
void Init(HuginBase::Panorama *pano)
wxTextCtrl * m_cropfactor
the text input control for crop factor
void OnSelectionChanged(wxTreeEvent &e)
change displayed variables if the selection has changed.
void ReloadCPDetectorSettings()
Reloads the cp detector settings from config, necessary after edit preferences.
wxTextCtrl * m_overlap
the text input control for minimum overlap
void OnMinimumOverlapChanged(wxCommandEvent &e)
updates the minimum overlap
void OnCropFactorChanged(wxCommandEvent &e)
updates the crop factor for the selected images
void OnOptimizerSwitchChanged(wxCommandEvent &e)
event handler, when optimizer master switch was changed
void OnPhotometricOptimizeButton(wxCommandEvent &e)
event handler for photometric optimizer
HuginBase::ImageCache::RequestPtr thumbnail_request
Request for thumbnail image.
this handler class will receive change events from the Panorama.
wxChoice * m_optPhotoChoice
pointer to photometric optimizer switch selector
the main images tree control, used on images and optimizer tabs
unsigned int GetDefaultGenerator()
return index of default generator (this one is used for assistent)
CPDetectorConfig cpdetector_config
void OnFocalLengthChanged(wxCommandEvent &e)
updates the focal length for the selected images
void OnGroupModeChanged(wxCommandEvent &e)
event handler when grouping selection was changed
CPDetectorSetting & GetDefaultSetting()
returns the default cp detector settings
wxString GetCurrentOptimizerString()
return the currently selected optimizer setting as string from the drop down list box ...
wxButton * m_matchingButton
virtual void panoramaChanged(HuginBase::Panorama &pano)
this is called whenever the panorama has changed.
void OnSize(wxSizeEvent &e)
wxChoice * m_optChoice
pointer to optimizer switch selector
void SetGuiLevel(GuiLevel newGuiLevel)
sets the GuiLevel for all controls on this panel
class for storing settings of different control point generators
const wxString GetSelectedCPGenerator()
return the currently selected cp generator description
void FillOptimizerChoice()
fills the optmizer wxChoices with values depending on GuiLevel