|
Hugin trunk 0.1
|
the main images tree control, used on images and optimizer tabs More...
#include <ImagesTree.h>

Public Types | |
| enum | GroupMode { GROUP_NONE =0 , GROUP_LENS =1 , GROUP_STACK =2 , GROUP_OUTPUTLAYERS =3 , GROUP_OUTPUTSTACK =4 } |
| enumeration for grouping mode More... | |
| enum | DisplayMode { DISPLAY_GENERAL =0 , DISPLAY_EXIF =1 , DISPLAY_POSITION =2 , DISPLAY_LENS =3 , DISPLAY_PHOTOMETRICS =4 , DISPLAY_PHOTOMETRICS_IMAGES =32 , DISPLAY_PHOTOMETRICS_LENSES =33 } |
| enumeration for display mode, limits the displayed columns More... | |
Protected Member Functions | |
| void | UpdateImageText (wxTreeItemId item) |
| updates the information for the given image in tree | |
| void | UpdateGroupText (wxTreeItemId item) |
| updates the information fot the given lens/stack in the tree | |
| void | UpdateGroup (wxTreeItemId parent, const HuginBase::UIntSet imgs, HuginBase::UIntSet &changed) |
| updates the given group, updates number of images and the images itself | |
| void | OnColumnWidthChange (wxListEvent &e) |
| event handler, when column width was changed, save into wxConfig | |
| void | OnLinkImageVariables (wxCommandEvent &e) |
| event handler for linking image variables | |
| void | OnUnlinkImageVariables (wxCommandEvent &e) |
| event handler for unlinking image variables | |
| void | OnEditImageVariables (wxCommandEvent &e) |
| event handler for showing image variables editing dialog | |
| void | OnBeginDrag (wxTreeEvent &e) |
| event handler when dragging begins, veto if dragging is not possible | |
| void | OnLeftUp (wxMouseEvent &e) |
| event handler for left up, handles end of dragging and updates of optimizer variables states | |
| void | OnLeftDown (wxMouseEvent &e) |
| event handler for left mouse down, handles toggle of optimizer variables | |
| void | OnMouseMove (wxMouseEvent &e) |
| event handler for mouse motion, handles focussing of check boxes | |
| void | OnLeftDblClick (wxMouseEvent &e) |
| event handler for left double click | |
| void | OnSelectAll (wxCommandEvent &e) |
| event handler for select all optimizer variables | |
| void | OnUnselectAll (wxCommandEvent &e) |
| event handler for unselect all optimizer variables | |
| void | OnSelectLensStack (wxCommandEvent &e) |
| event handler for select all optimizer variables for selected lens/stack | |
| void | OnUnselectLensStack (wxCommandEvent &e) |
| event handler for unselect all optimizer variables for selected lens/stack | |
| void | OnChar (wxTreeEvent &e) |
| event handler for key events | |
| void | OnBeginEdit (wxTreeEvent &e) |
| event handler for beginning editing | |
| void | OnEndEdit (wxTreeEvent &e) |
| event handler for ending editing, updates the Panorama with modified value | |
| void | OnExecuteOperation (wxCommandEvent &e) |
| menu event handler for PanoOperation (context menu items) | |
| void | OnContextMenu (wxTreeEvent &e) |
| event handler to display context menu | |
| void | OnHeaderContextMenu (wxListEvent &e) |
| event handler for context menu on header | |
| void | OnActivateImage (wxCommandEvent &e) |
| event handler for activate image | |
| void | OnDeactivateImage (wxCommandEvent &e) |
| event handler for deactivate image | |
| void | OnDpiChanged (wxDPIChangedEvent &e) |
| event handler for updating dpi | |
Protected Member Functions inherited from wxcode::wxTreeListCtrl | |
| wxTreeListHeaderWindow * | GetHeaderWindow () const |
| wxTreeListMainWindow * | GetMainWindow () const |
| int | GetHeaderHeight () const |
| void | CalculateAndSetHeaderHeight () |
| void | DoHeaderLayout () |
| void | OnSize (wxSizeEvent &event) |
Private Member Functions | |
| void | CreateColumns () |
| creates all columns and stores information in m_columnMap, m_columnVector, m_editableColumns and m_variableVector | |
| void | UnLinkImageVariables (bool linked) |
| helper procedure for link/unlink image variables | |
| void | SelectAllParameters (bool select, bool allImages) |
| select/unselect all variables in the active column @select true selects all, false unselect all @allImages true works on all images, false only on images of current lens or stack | |
| void | UpdateOptimizerVariables () |
| updates the display of the optimizer variables (set font) | |
| void | GenerateSubMenu (wxMenu *menu, PanoOperation::PanoOperationVector *operations, int &id) |
| generates submenu for given PanoOperationVector | |
| void | UpdateItemFont () |
| update the font colour for all items | |
| void | CreateCheckboxImages () |
| create image list with necessary images of checkboxes | |
Private Attributes | |
| HuginBase::Panorama * | m_pano |
| GroupMode | m_groupMode |
| the active group mode | |
| HuginBase::StandardImageVariableGroups * | m_variable_groups |
| int | m_degDigits |
| int | m_distDigits |
| int | m_pixelDigits |
| GuiLevel | m_guiLevel |
| stores the active GuiLevel | |
| bool | m_optimizerMode |
| true, if in optimizer mode | |
| bool | m_markDisabledImages |
| true, if disabled images should be marked with other font color | |
| DisplayMode | m_displayMode |
| the active display mode | |
| std::map< std::string, size_t > | m_columnMap |
| map for easier access to column information | |
| std::vector< std::string > | m_columnVector |
| vector for easier access to column information | |
| HuginBase::UIntSet | m_editableColumns |
| set, which contains editable columns (all column which contains numeric image variables | |
| std::vector< HuginBase::ImageVariableGroup::ImageVariableEnum > | m_variableVector |
| vector for easier access to linking information | |
| std::map< int, PanoOperation::PanoOperation * > | m_menuOperation |
| map with current active context menu PanoOperation | |
| size_t | m_selectedColumn |
| selected column | |
| HuginBase::UIntSet | m_draggingImages |
| UIntSet of dragging images. | |
| bool | m_dragging |
| true, if dragging | |
| double | m_editVal |
| value, which is currently edited | |
| wxString | m_editOldString |
| wxString, as shown before editing started | |
| bool | m_needsUpdate |
| helper variable for update of output stacks/layers | |
| wxTreeItemId | m_root |
| pointer to root item, not shown | |
| wxTreeItemId | m_lastCurrentItem |
| stores last item on which the mouse was hovering | |
| long | m_lastCurrentCol |
| wxTreeItemId | m_leftDownItem |
| stores where left mouse click happend | |
| long | m_leftDownColumn |
| wxString | m_configClassName |
Additional Inherited Members | |
Protected Attributes inherited from wxcode::wxTreeListCtrl | |
| wxTreeListHeaderWindow * | m_header_win |
| wxTreeListMainWindow * | m_main_win |
the main images tree control, used on images and optimizer tabs
Definition at line 36 of file ImagesTree.h.
enumeration for display mode, limits the displayed columns
| Enumerator | |
|---|---|
| DISPLAY_GENERAL | |
| DISPLAY_EXIF | |
| DISPLAY_POSITION | |
| DISPLAY_LENS | |
| DISPLAY_PHOTOMETRICS | |
| DISPLAY_PHOTOMETRICS_IMAGES | |
| DISPLAY_PHOTOMETRICS_LENSES | |
Definition at line 49 of file ImagesTree.h.
enumeration for grouping mode
| Enumerator | |
|---|---|
| GROUP_NONE | |
| GROUP_LENS | |
| GROUP_STACK | |
| GROUP_OUTPUTLAYERS | |
| GROUP_OUTPUTSTACK | |
Definition at line 40 of file ImagesTree.h.
| ImagesTreeCtrl::ImagesTreeCtrl | ( | ) |
general constructor
Definition at line 76 of file ImagesTree.cpp.
References DISPLAY_GENERAL, GROUP_NONE, GUI_SIMPLE, m_displayMode, m_dragging, m_groupMode, m_guiLevel, m_markDisabledImages, m_needsUpdate, m_optimizerMode, m_pano, and threshold().
|
virtual |
destructor
Definition at line 219 of file ImagesTree.cpp.
References DEBUG_TRACE, m_pano, m_variable_groups, and HuginBase::Panorama::removeObserver().
| bool ImagesTreeCtrl::Create | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = wxTAB_TRAVERSAL, |
||
| const wxString & | name = "panel" |
||
| ) |
creates the control
Definition at line 88 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::AddRoot(), CreateColumns(), DEBUG_TRACE, ID_EDIT, m_configClassName, m_degDigits, m_distDigits, m_pixelDigits, m_root, OnBeginDrag(), OnBeginEdit(), OnChar(), OnColumnWidthChange(), OnContextMenu(), OnDpiChanged(), OnEditImageVariables(), OnEndEdit(), OnHeaderContextMenu(), OnLeftDblClick(), OnLeftUp(), and threshold().
|
private |
create image list with necessary images of checkboxes
Definition at line 959 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::AssignImageList(), and threshold().
Referenced by OnDpiChanged(), and SetOptimizerMode().
|
private |
creates all columns and stores information in m_columnMap, m_columnVector, m_editableColumns and m_variableVector
Definition at line 126 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::AddColumn(), ADDCOLUMN, wxcode::wxTreeListCtrl::GetColumnCount(), m_configClassName, wxcode::wxTreeListCtrl::SetColumnWidth(), and threshold().
Referenced by Create().
|
private |
generates submenu for given PanoOperationVector
Definition at line 1292 of file ImagesTree.cpp.
References GetSelectedImages(), m_guiLevel, m_menuOperation, m_pano, OnExecuteOperation(), and threshold().
Referenced by OnContextMenu().
| HuginBase::UIntSet ImagesTreeCtrl::GetSelectedImages | ( | ) |
returns the selected images
if a lens or stack is selected it returns all images of the selected lens/stack
Definition at line 908 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::GetFirstChild(), ImagesTreeData::GetImgNr(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetNextChild(), wxcode::wxTreeListCtrl::GetSelections(), ImagesTreeData::IsGroup(), and threshold().
Referenced by ImagesPanel::CPGenerate(), GenerateSubMenu(), OnActivateImage(), OnBeginDrag(), OnChar(), OnContextMenu(), ImagesPanel::OnCropFactorChanged(), OnDeactivateImage(), OnEditImageVariables(), OnExecuteOperation(), ImagesPanel::OnFocalLengthChanged(), OnLeftUp(), ImagesPanel::OnLensTypeChanged(), OptimizePanel::OnReset(), OptimizePhotometricPanel::OnReset(), ImagesPanel::OnSelectionChanged(), ImagesPanel::panoramaImagesChanged(), and UnLinkImageVariables().
| void ImagesTreeCtrl::Init | ( | HuginBase::Panorama * | pano | ) |
initialization, connects all control with Panorama, register observer
Definition at line 205 of file ImagesTree.cpp.
References HuginBase::Panorama::addObserver(), DEBUG_ASSERT, m_pano, m_variable_groups, and threshold().
Referenced by ImagesPanel::Init(), OptimizePanel::Init(), and OptimizePhotometricPanel::Init().
sets the flag, if active/disabled image should be marked with different colour
Definition at line 937 of file ImagesTree.cpp.
References m_markDisabledImages, threshold(), and UpdateItemFont().
Referenced by OptimizePanel::SetOnlyActiveImages(), and OptimizePhotometricPanel::SetOnlyActiveImages().
|
protected |
event handler for activate image
Definition at line 1404 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::Panorama::getActiveImages(), PanoCommand::GlobalCmdHist::getInstance(), GetSelectedImages(), m_pano, and threshold().
Referenced by OnContextMenu().
|
protected |
event handler when dragging begins, veto if dragging is not possible
Definition at line 1503 of file ImagesTree.cpp.
References HuginBase::Panorama::getNrOfImages(), GetSelectedImages(), GROUP_LENS, GROUP_NONE, GROUP_STACK, m_dragging, m_draggingImages, m_groupMode, m_pano, and threshold().
Referenced by Create().
|
protected |
event handler for beginning editing
Definition at line 2027 of file ImagesTree.cpp.
References hugin_utils::doubleTowxString(), wxcode::wxTreeListCtrl::GetFirstChild(), HuginBase::Panorama::getImage(), ImagesTreeData::GetImgNr(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetItemText(), ImagesTreeData::IsGroup(), m_columnVector, m_editOldString, m_editVal, m_pano, wxcode::wxTreeListCtrl::SetItemText(), and threshold().
Referenced by Create().
|
protected |
event handler for key events
Definition at line 1980 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), MainFrame::Get(), HuginBase::Panorama::getImage(), PanoCommand::GlobalCmdHist::getInstance(), GetSelectedImages(), m_pano, wxcode::wxTreeListCtrl::SelectAll(), and threshold().
Referenced by Create().
|
protected |
event handler, when column width was changed, save into wxConfig
Definition at line 943 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::GetColumnWidth(), m_configClassName, and threshold().
Referenced by Create().
|
protected |
event handler to display context menu
Definition at line 1106 of file ImagesTree.cpp.
References GenerateSubMenu(), PanoOperation::GetControlPointsOperationVector(), HuginBase::Panorama::getImage(), PanoOperation::GetImagesOperationVector(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetItemText(), PanoOperation::GetLensesOperationVector(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), PanoOperation::GetResetOperationVector(), GetSelectedImages(), PanoOperation::GetStacksOperationVector(), GROUP_LENS, GROUP_STACK, GUI_SIMPLE, ID_ACTIVATE_IMAGE, ID_DEACTIVATE_IMAGE, ID_EDIT, ID_LINK, ID_OPERATION_START, ID_SELECT_ALL, ID_SELECT_LENS_STACK, ID_UNLINK, ID_UNSELECT_ALL, ID_UNSELECT_LENS_STACK, ImagesTreeData::IsGroup(), m_columnVector, m_editableColumns, m_groupMode, m_guiLevel, m_markDisabledImages, m_menuOperation, m_optimizerMode, m_pano, m_selectedColumn, m_variableVector, OnActivateImage(), OnDeactivateImage(), OnLinkImageVariables(), OnSelectAll(), OnSelectLensStack(), OnUnlinkImageVariables(), OnUnselectAll(), OnUnselectLensStack(), set_contains(), and threshold().
Referenced by Create().
|
protected |
event handler for deactivate image
Definition at line 1414 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::Panorama::getActiveImages(), PanoCommand::GlobalCmdHist::getInstance(), GetSelectedImages(), m_pano, and threshold().
Referenced by OnContextMenu().
|
protected |
event handler for updating dpi
Definition at line 1012 of file ImagesTree.cpp.
References CreateCheckboxImages(), m_optimizerMode, and wxcode::wxTreeListCtrl::Refresh().
Referenced by Create().
|
protected |
event handler for showing image variables editing dialog
Definition at line 1467 of file ImagesTree.cpp.
References DISPLAY_LENS, DISPLAY_PHOTOMETRICS, DISPLAY_PHOTOMETRICS_IMAGES, DISPLAY_PHOTOMETRICS_LENSES, GetSelectedImages(), m_columnMap, m_displayMode, m_guiLevel, m_pano, m_selectedColumn, and threshold().
Referenced by Create().
|
protected |
event handler for ending editing, updates the Panorama with modified value
Definition at line 2049 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, wxcode::wxTreeListCtrl::GetFirstChild(), HuginBase::Panorama::getImage(), ImagesTreeData::GetImgNr(), PanoCommand::GlobalCmdHist::getInstance(), wxcode::wxTreeListCtrl::GetItemData(), hugin_utils::HuginMessageBox(), ImagesTreeData::IsGroup(), m_columnVector, m_editOldString, m_editVal, m_pano, wxcode::wxTreeListCtrl::Refresh(), wxcode::wxTreeListCtrl::SetItemText(), hugin_utils::str2double(), and threshold().
Referenced by Create().
|
protected |
menu event handler for PanoOperation (context menu items)
Definition at line 2117 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoOperation::PanoOperation::GetCommand(), PanoCommand::GlobalCmdHist::getInstance(), GetSelectedImages(), m_guiLevel, m_menuOperation, m_pano, and threshold().
Referenced by GenerateSubMenu().
|
protected |
event handler for context menu on header
Definition at line 1390 of file ImagesTree.cpp.
References ID_SELECT_ALL, ID_UNSELECT_ALL, m_editableColumns, m_optimizerMode, m_selectedColumn, OnSelectAll(), OnUnselectAll(), set_contains(), and threshold().
Referenced by Create().
|
protected |
event handler for left double click
Definition at line 2127 of file ImagesTree.cpp.
References flags, wxcode::wxTreeListCtrl::HitTest(), ID_EDIT, m_optimizerMode, m_selectedColumn, and threshold().
Referenced by Create().
|
protected |
event handler for left mouse down, handles toggle of optimizer variables
Definition at line 1785 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::EndEdit(), flags, wxcode::wxTreeListCtrl::GetItemText(), wxcode::wxTreeListCtrl::HitTest(), m_dragging, m_editableColumns, m_leftDownColumn, m_leftDownItem, set_contains(), and threshold().
Referenced by SetOptimizerMode().
|
protected |
event handler for left up, handles end of dragging and updates of optimizer variables states
Definition at line 1522 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), flags, MainFrame::Get(), GLPreviewFrame::GetDragGroupImages(), wxcode::wxTreeListCtrl::GetFirstChild(), MainFrame::getGLPreview(), ImagesTreeData::GetGroupNr(), ImagesTreeData::GetImgNr(), PanoCommand::GlobalCmdHist::getInstance(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetItemImage(), wxcode::wxTreeListCtrl::GetItemParent(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), wxcode::wxTreeListCtrl::GetNextChild(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), GetSelectedImages(), HuginBase::ConstStandardImageVariableGroups::getStackVariables(), GROUP_LENS, GROUP_NONE, wxcode::wxTreeListCtrl::HitTest(), ImagesTreeData::IsGroup(), wxcode::wxTreeListCtrl::IsSelected(), m_columnVector, m_dragging, m_draggingImages, m_groupMode, m_leftDownColumn, m_leftDownItem, m_optimizerMode, m_pano, set_contains(), GLPreviewFrame::SetDragGroupImages(), and threshold().
Referenced by Create().
|
protected |
event handler for linking image variables
Definition at line 1457 of file ImagesTree.cpp.
References UnLinkImageVariables().
Referenced by OnContextMenu().
|
protected |
event handler for mouse motion, handles focussing of check boxes
Definition at line 1815 of file ImagesTree.cpp.
References flags, wxcode::wxTreeListCtrl::GetItemImage(), wxcode::wxTreeListCtrl::HitTest(), m_lastCurrentCol, m_lastCurrentItem, wxcode::wxTreeListCtrl::SetItemImage(), and threshold().
Referenced by SetOptimizerMode().
|
protected |
event handler for select all optimizer variables
Definition at line 1960 of file ImagesTree.cpp.
References SelectAllParameters().
Referenced by OnContextMenu(), and OnHeaderContextMenu().
|
protected |
event handler for select all optimizer variables for selected lens/stack
Definition at line 1970 of file ImagesTree.cpp.
References SelectAllParameters().
Referenced by OnContextMenu().
|
protected |
event handler for unlinking image variables
Definition at line 1462 of file ImagesTree.cpp.
References UnLinkImageVariables().
Referenced by OnContextMenu().
|
protected |
event handler for unselect all optimizer variables
Definition at line 1965 of file ImagesTree.cpp.
References SelectAllParameters().
Referenced by OnContextMenu(), and OnHeaderContextMenu().
|
protected |
event handler for unselect all optimizer variables for selected lens/stack
Definition at line 1975 of file ImagesTree.cpp.
References SelectAllParameters().
Referenced by OnContextMenu().
|
virtual |
receives notification about panorama changes
Implements HuginBase::PanoramaObserver.
Definition at line 226 of file ImagesTree.cpp.
References fill_set(), HuginBase::Panorama::getNrOfImages(), GROUP_OUTPUTLAYERS, GROUP_OUTPUTSTACK, m_groupMode, m_needsUpdate, m_optimizerMode, panoramaImagesChanged(), wxcode::wxTreeListCtrl::Refresh(), threshold(), and UpdateOptimizerVariables().
|
virtual |
receive the update signal and update display accordingly
Implements HuginBase::PanoramaObserver.
Definition at line 246 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::AppendItem(), DEBUG_TRACE, wxcode::wxTreeListCtrl::Delete(), fill_set(), HuginBase::Panorama::getActiveImages(), wxcode::wxTreeListCtrl::GetChildrenCount(), wxcode::wxTreeListCtrl::GetFirstChild(), wxcode::wxTreeListCtrl::GetLastChild(), HuginBase::StandardImageVariableGroups::getLenses(), wxcode::wxTreeListCtrl::GetNextChild(), HuginBase::Panorama::getNrOfImages(), HuginBase::ConstImageVariableGroup::getNumberOfParts(), HuginBase::Panorama::getOptions(), HuginBase::ConstImageVariableGroup::getPartsSet(), HuginBase::StandardImageVariableGroups::getStacks(), GROUP_LENS, GROUP_NONE, GROUP_OUTPUTLAYERS, GROUP_OUTPUTSTACK, GROUP_STACK, m_groupMode, m_markDisabledImages, m_needsUpdate, m_optimizerMode, m_pano, m_root, m_variable_groups, SetGroupMode(), threshold(), HuginBase::StandardImageVariableGroups::update(), UpdateGroup(), UpdateGroupText(), UpdateItemFont(), and UpdateOptimizerVariables().
Referenced by panoramaChanged(), and SetGroupMode().
select/unselect all variables in the active column @select true selects all, false unselect all @allImages true works on all images, false only on images of current lens or stack
Definition at line 1848 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::PanoramaOptions::colorReferenceImage, fill_set(), wxcode::wxTreeListCtrl::GetFirstChild(), HuginBase::Panorama::getImage(), ImagesTreeData::GetImgNr(), PanoCommand::GlobalCmdHist::getInstance(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetItemParent(), wxcode::wxTreeListCtrl::GetNextChild(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), wxcode::wxTreeListCtrl::GetSelections(), ImagesTreeData::IsGroup(), m_columnVector, m_pano, m_selectedColumn, HuginBase::PanoramaOptions::optimizeReferenceImage, and threshold().
Referenced by OnSelectAll(), OnSelectLensStack(), OnUnselectAll(), and OnUnselectLensStack().
| void ImagesTreeCtrl::SetDisplayMode | ( | DisplayMode | newMode | ) |
sets the display mode to given mode
Definition at line 1048 of file ImagesTree.cpp.
References DISPLAY_EXIF, DISPLAY_GENERAL, DISPLAY_LENS, DISPLAY_PHOTOMETRICS, DISPLAY_PHOTOMETRICS_IMAGES, DISPLAY_PHOTOMETRICS_LENSES, DISPLAY_POSITION, GUI_ADVANCED, GUI_EXPERT, m_columnMap, m_displayMode, m_guiLevel, wxcode::wxTreeListCtrl::Refresh(), wxcode::wxTreeListCtrl::SetColumnShown(), and threshold().
Referenced by OptimizePanel::Init(), OptimizePhotometricPanel::Init(), ImagesPanel::OnDisplayModeChanged(), and SetGuiLevel().
sets the group mode to given mode
Definition at line 1022 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::DeleteChildren(), wxcode::wxTreeListCtrl::ExpandAll(), fill_set(), HuginBase::Panorama::getNrOfImages(), GROUP_NONE, m_groupMode, m_needsUpdate, m_pano, m_root, panoramaImagesChanged(), and threshold().
Referenced by OptimizePanel::Init(), OptimizePhotometricPanel::Init(), ImagesPanel::OnGroupModeChanged(), and panoramaImagesChanged().
sets the GuiLevel of the control
Definition at line 952 of file ImagesTree.cpp.
References m_displayMode, m_guiLevel, SetDisplayMode(), and threshold().
Referenced by ImagesPanel::SetGuiLevel(), OptimizePanel::SetGuiLevel(), and OptimizePhotometricPanel::SetGuiLevel().
| void ImagesTreeCtrl::SetOptimizerMode | ( | ) |
sets to control into optimizer mode
this marks the variables, which should be optimized, bold and underlined, also activates the context menu for optimizer
Definition at line 994 of file ImagesTree.cpp.
References CreateCheckboxImages(), m_columnVector, m_editableColumns, m_optimizerMode, OnLeftDown(), OnMouseMove(), wxcode::wxTreeListCtrl::SetColumnEditable(), and threshold().
Referenced by OptimizePanel::Init(), and OptimizePhotometricPanel::Init().
helper procedure for link/unlink image variables
Definition at line 1425 of file ImagesTree.cpp.
References PanoCommand::CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::ConstStandardImageVariableGroups::getLensVariables(), GetSelectedImages(), HuginBase::ConstStandardImageVariableGroups::getStackVariables(), GROUP_LENS, m_groupMode, m_pano, m_selectedColumn, and m_variableVector.
Referenced by OnLinkImageVariables(), and OnUnlinkImageVariables().
|
protected |
updates the given group, updates number of images and the images itself
Definition at line 787 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::AppendItem(), wxcode::wxTreeListCtrl::Delete(), wxcode::wxTreeListCtrl::GetChildrenCount(), wxcode::wxTreeListCtrl::GetFirstChild(), ImagesTreeData::GetImgNr(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetLastChild(), wxcode::wxTreeListCtrl::GetNextChild(), set_contains(), ImagesTreeData::SetImgNr(), threshold(), and UpdateImageText().
Referenced by panoramaImagesChanged().
|
protected |
updates the information fot the given lens/stack in the tree
Definition at line 592 of file ImagesTree.cpp.
References hugin_utils::doubleTowxString(), wxcode::wxTreeListCtrl::GetChildrenCount(), wxcode::wxTreeListCtrl::GetFirstChild(), HuginBase::Panorama::getImage(), ImagesTreeData::GetImgNr(), wxcode::wxTreeListCtrl::GetItemData(), getProjectionString(), getResponseString(), GROUP_LENS, GROUP_NONE, GROUP_OUTPUTLAYERS, GROUP_OUTPUTSTACK, GROUP_STACK, m_columnMap, m_degDigits, m_distDigits, m_groupMode, m_pano, m_pixelDigits, HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, wxcode::wxTreeListCtrl::SetItemBold(), wxcode::wxTreeListCtrl::SetItemText(), threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by panoramaImagesChanged().
|
protected |
updates the information for the given image in tree
Definition at line 360 of file ImagesTree.cpp.
References HuginBase::PanoramaOptions::colorReferenceImage, hugin_utils::doubleTowxString(), flags, FormatString::GetAperture(), wxcode::wxTreeListCtrl::GetChildrenCount(), HuginBase::Panorama::getCtrlPointsForImage(), FormatString::GetExifDateTime(), FormatString::GetExposureTime(), FormatString::GetFocalLength(), HuginBase::Panorama::getImage(), ImagesTreeData::GetImgNr(), FormatString::GetIso(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetItemParent(), HuginBase::StandardImageVariableGroups::getLenses(), HuginBase::Panorama::getOptions(), HuginBase::ConstImageVariableGroup::getPartNumber(), getProjectionString(), getResponseString(), HuginBase::StandardImageVariableGroups::getStacks(), GROUP_LENS, GROUP_NONE, GROUP_STACK, HUGIN_CONV_FILENAME, m_columnMap, m_degDigits, m_distDigits, m_groupMode, m_pano, m_pixelDigits, m_variable_groups, HuginBase::PanoramaOptions::optimizeReferenceImage, HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, wxcode::wxTreeListCtrl::SetItemText(), threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by UpdateGroup().
|
private |
update the font colour for all items
Definition at line 1307 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::GetFirstChild(), HuginBase::Panorama::getImage(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetNextChild(), m_markDisabledImages, m_pano, m_root, wxcode::wxTreeListCtrl::SetItemTextColour(), and threshold().
Referenced by MarkActiveImages(), and panoramaImagesChanged().
|
private |
updates the display of the optimizer variables (set font)
Definition at line 845 of file ImagesTree.cpp.
References wxcode::wxTreeListCtrl::GetColumnCount(), wxcode::wxTreeListCtrl::GetFirstChild(), ImagesTreeData::GetImgNr(), wxcode::wxTreeListCtrl::GetItemData(), wxcode::wxTreeListCtrl::GetItemText(), wxcode::wxTreeListCtrl::GetNext(), wxcode::wxTreeListCtrl::GetNextChild(), HuginBase::Panorama::getOptimizeVector(), ImagesTreeData::IsGroup(), m_columnVector, m_editableColumns, m_pano, m_root, set_contains(), wxcode::wxTreeListCtrl::SetItemImage(), and threshold().
Referenced by panoramaChanged(), and panoramaImagesChanged().
|
private |
map for easier access to column information
Definition at line 188 of file ImagesTree.h.
Referenced by OnEditImageVariables(), SetDisplayMode(), UpdateGroupText(), and UpdateImageText().
|
private |
vector for easier access to column information
Definition at line 190 of file ImagesTree.h.
Referenced by OnBeginEdit(), OnContextMenu(), OnEndEdit(), OnLeftUp(), SelectAllParameters(), SetOptimizerMode(), and UpdateOptimizerVariables().
|
private |
Definition at line 221 of file ImagesTree.h.
Referenced by Create(), CreateColumns(), and OnColumnWidthChange().
|
private |
Definition at line 176 of file ImagesTree.h.
Referenced by Create(), UpdateGroupText(), and UpdateImageText().
|
private |
the active display mode
Definition at line 186 of file ImagesTree.h.
Referenced by ImagesTreeCtrl(), OnEditImageVariables(), SetDisplayMode(), and SetGuiLevel().
|
private |
Definition at line 177 of file ImagesTree.h.
Referenced by Create(), UpdateGroupText(), and UpdateImageText().
|
private |
true, if dragging
Definition at line 202 of file ImagesTree.h.
Referenced by ImagesTreeCtrl(), OnBeginDrag(), OnLeftDown(), and OnLeftUp().
|
private |
UIntSet of dragging images.
Definition at line 200 of file ImagesTree.h.
Referenced by OnBeginDrag(), and OnLeftUp().
|
private |
set, which contains editable columns (all column which contains numeric image variables
Definition at line 192 of file ImagesTree.h.
Referenced by OnContextMenu(), OnHeaderContextMenu(), OnLeftDown(), SetOptimizerMode(), and UpdateOptimizerVariables().
|
private |
wxString, as shown before editing started
Definition at line 206 of file ImagesTree.h.
Referenced by OnBeginEdit(), and OnEndEdit().
|
private |
value, which is currently edited
Definition at line 204 of file ImagesTree.h.
Referenced by OnBeginEdit(), and OnEndEdit().
|
private |
the active group mode
Definition at line 170 of file ImagesTree.h.
Referenced by ImagesTreeCtrl(), OnBeginDrag(), OnContextMenu(), OnLeftUp(), panoramaChanged(), panoramaImagesChanged(), SetGroupMode(), UnLinkImageVariables(), UpdateGroupText(), and UpdateImageText().
|
private |
stores the active GuiLevel
Definition at line 180 of file ImagesTree.h.
Referenced by GenerateSubMenu(), ImagesTreeCtrl(), OnContextMenu(), OnEditImageVariables(), OnExecuteOperation(), SetDisplayMode(), and SetGuiLevel().
|
private |
Definition at line 215 of file ImagesTree.h.
Referenced by OnMouseMove().
|
private |
stores last item on which the mouse was hovering
Definition at line 214 of file ImagesTree.h.
Referenced by OnMouseMove().
|
private |
Definition at line 218 of file ImagesTree.h.
Referenced by OnLeftDown(), and OnLeftUp().
|
private |
stores where left mouse click happend
Definition at line 217 of file ImagesTree.h.
Referenced by OnLeftDown(), and OnLeftUp().
|
private |
true, if disabled images should be marked with other font color
Definition at line 184 of file ImagesTree.h.
Referenced by ImagesTreeCtrl(), MarkActiveImages(), OnContextMenu(), panoramaImagesChanged(), and UpdateItemFont().
|
private |
map with current active context menu PanoOperation
Definition at line 196 of file ImagesTree.h.
Referenced by GenerateSubMenu(), OnContextMenu(), and OnExecuteOperation().
|
private |
helper variable for update of output stacks/layers
Definition at line 208 of file ImagesTree.h.
Referenced by ImagesTreeCtrl(), panoramaChanged(), panoramaImagesChanged(), and SetGroupMode().
|
private |
true, if in optimizer mode
Definition at line 182 of file ImagesTree.h.
Referenced by ImagesTreeCtrl(), OnContextMenu(), OnDpiChanged(), OnHeaderContextMenu(), OnLeftDblClick(), OnLeftUp(), panoramaChanged(), panoramaImagesChanged(), and SetOptimizerMode().
|
private |
Definition at line 168 of file ImagesTree.h.
Referenced by GenerateSubMenu(), ImagesTreeCtrl(), Init(), OnActivateImage(), OnBeginDrag(), OnBeginEdit(), OnChar(), OnContextMenu(), OnDeactivateImage(), OnEditImageVariables(), OnEndEdit(), OnExecuteOperation(), OnLeftUp(), panoramaImagesChanged(), SelectAllParameters(), SetGroupMode(), UnLinkImageVariables(), UpdateGroupText(), UpdateImageText(), UpdateItemFont(), UpdateOptimizerVariables(), and ~ImagesTreeCtrl().
|
private |
Definition at line 178 of file ImagesTree.h.
Referenced by Create(), UpdateGroupText(), and UpdateImageText().
|
private |
pointer to root item, not shown
Definition at line 211 of file ImagesTree.h.
Referenced by Create(), panoramaImagesChanged(), SetGroupMode(), UpdateItemFont(), and UpdateOptimizerVariables().
|
private |
selected column
Definition at line 198 of file ImagesTree.h.
Referenced by OnContextMenu(), OnEditImageVariables(), OnHeaderContextMenu(), OnLeftDblClick(), SelectAllParameters(), and UnLinkImageVariables().
|
private |
Definition at line 173 of file ImagesTree.h.
Referenced by Init(), panoramaImagesChanged(), UpdateImageText(), and ~ImagesTreeCtrl().
|
private |
vector for easier access to linking information
Definition at line 194 of file ImagesTree.h.
Referenced by OnContextMenu(), and UnLinkImageVariables().