Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ImagesTreeCtrl Class Reference

the main images tree control, used on images and optimizer tabs More...

#include <ImagesTree.h>

Inheritance diagram for ImagesTreeCtrl:
Inheritance graph

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...
 

Public Member Functions

 ImagesTreeCtrl ()
 general constructor
 
bool 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
 
void Init (HuginBase::Panorama *pano)
 initialization, connects all control with Panorama, register observer
 
virtual ~ImagesTreeCtrl (void)
 destructor
 
void SetGroupMode (GroupMode newMode)
 sets the group mode to given mode
 
void SetDisplayMode (DisplayMode newMode)
 sets the display mode to given mode
 
void SetGuiLevel (GuiLevel newSetting)
 sets the GuiLevel of the control
 
void SetOptimizerMode ()
 sets to control into optimizer mode
 
virtual void panoramaChanged (HuginBase::Panorama &pano)
 receives notification about panorama changes
 
void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
 receive the update signal and update display accordingly
 
HuginBase::UIntSet GetSelectedImages ()
 returns the selected images
 
void MarkActiveImages (const bool markActive)
 sets the flag, if active/disabled image should be marked with different colour
 
- Public Member Functions inherited from wxcode::wxTreeListCtrl
 wxTreeListCtrl ()
 
 wxTreeListCtrl (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTR_DEFAULT_STYLE, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTreeListCtrlNameStr)
 
virtual ~wxTreeListCtrl ()
 
bool Create (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTR_DEFAULT_STYLE, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTreeListCtrlNameStr)
 
void Refresh (bool erase=TRUE, const wxRect *rect=NULL)
 
void SetFocus ()
 
size_t GetCount () const
 
unsigned int GetIndent () const
 
void SetIndent (unsigned int indent)
 
unsigned int GetLineSpacing () const
 
void SetLineSpacing (unsigned int spacing)
 
wxImageListGetImageList () const
 
wxImageListGetStateImageList () const
 
wxImageListGetButtonsImageList () const
 
void SetImageList (wxImageList *imageList)
 
void SetStateImageList (wxImageList *imageList)
 
void SetButtonsImageList (wxImageList *imageList)
 
void AssignImageList (wxImageList *imageList)
 
void AssignStateImageList (wxImageList *imageList)
 
void AssignButtonsImageList (wxImageList *imageList)
 
void SetToolTip (const wxString &tip)
 
void SetToolTip (wxToolTip *tip)
 
void SetItemToolTip (const wxTreeItemId &item, const wxString &tip)
 
void AddColumn (const wxString &text, int width=DEFAULT_COL_WIDTH, int flag=wxALIGN_LEFT, int image=-1, bool shown=true, bool edit=false, const wxString &tooltip=wxEmptyString)
 
void AddColumn (const wxTreeListColumnInfo &colInfo)
 
void InsertColumn (int before, const wxString &text, int width=DEFAULT_COL_WIDTH, int flag=wxALIGN_LEFT, int image=-1, bool shown=true, bool edit=false, const wxString &tooltip=wxEmptyString)
 
void InsertColumn (int before, const wxTreeListColumnInfo &colInfo)
 
void RemoveColumn (int column)
 
int GetColumnCount () const
 
void SetMainColumn (int column)
 
int GetMainColumn () const
 
void SetColumn (int column, const wxTreeListColumnInfo &colInfo)
 
wxTreeListColumnInfo GetColumn (int column)
 
const wxTreeListColumnInfoGetColumn (int column) const
 
void SetColumnText (int column, const wxString &text)
 
wxString GetColumnText (int column) const
 
void SetColumnWidth (int column, int width)
 
int GetColumnWidth (int column) const
 
void SetColumnAlignment (int column, int flag)
 
int GetColumnAlignment (int column) const
 
void SetColumnImage (int column, int image)
 
int GetColumnImage (int column) const
 
void SetColumnShown (int column, bool shown=true)
 
bool IsColumnShown (int column) const
 
void SetColumnEditable (int column, bool edit=true)
 
bool IsColumnEditable (int column) const
 
wxString GetItemText (const wxTreeItemId &item) const
 
wxString GetItemText (const wxTreeItemId &item, int column) const
 
int GetItemImage (const wxTreeItemId &item, wxTreeItemIcon which=wxTreeItemIcon_Normal) const
 
int GetItemImage (const wxTreeItemId &item, int column) const
 
wxTreeItemData * GetItemData (const wxTreeItemId &item) const
 
wxTreeItemData * GetItemData (const wxTreeItemId &item, int column) const
 
bool GetItemBold (const wxTreeItemId &item) const
 
bool GetItemBold (const wxTreeItemId &item, int column) const
 
wxColour GetItemTextColour (const wxTreeItemId &item) const
 
wxColour GetItemTextColour (const wxTreeItemId &item, int column) const
 
wxColour GetItemBackgroundColour (const wxTreeItemId &item) const
 
wxColour GetItemBackgroundColour (const wxTreeItemId &item, int column) const
 
wxFont GetItemFont (const wxTreeItemId &item) const
 
wxFont GetItemFont (const wxTreeItemId &item, int column) const
 
void SetItemText (const wxTreeItemId &item, const wxString &text)
 
void SetItemText (const wxTreeItemId &item, int column, const wxString &text)
 
void SetItemImage (const wxTreeItemId &item, int image, wxTreeItemIcon which=wxTreeItemIcon_Normal)
 
void SetItemImage (const wxTreeItemId &item, int column, int image)
 
void SetItemData (const wxTreeItemId &item, wxTreeItemData *data)
 
void SetItemData (const wxTreeItemId &item, int column, wxTreeItemData *data)
 
void SetItemBold (const wxTreeItemId &item, bool bold=true)
 
void SetItemBold (const wxTreeItemId &item, int column, bool bold=true)
 
void SetItemTextColour (const wxTreeItemId &item, const wxColour &colour)
 
void SetItemTextColour (const wxTreeItemId &item, int column, const wxColour &colour)
 
void SetItemBackgroundColour (const wxTreeItemId &item, const wxColour &colour)
 
void SetItemBackgroundColour (const wxTreeItemId &item, int column, const wxColour &colour)
 
void SetItemFont (const wxTreeItemId &item, const wxFont &font)
 
void SetItemFont (const wxTreeItemId &item, int column, const wxFont &font)
 
void SetItemHasChildren (const wxTreeItemId &item, bool has=true)
 
bool IsVisible (const wxTreeItemId &item, bool fullRow=false, bool within=true) const
 
bool HasChildren (const wxTreeItemId &item) const
 
bool IsExpanded (const wxTreeItemId &item) const
 
bool IsSelected (const wxTreeItemId &item) const
 
bool IsBold (const wxTreeItemId &item) const
 
bool IsBold (const wxTreeItemId &item, int column) const
 
virtual bool SetFont (const wxFont &font)
 
virtual void SetWindowStyleFlag (long styles)
 
virtual long GetWindowStyleFlag () const
 
size_t GetChildrenCount (const wxTreeItemId &item, bool recursively=true)
 
wxTreeItemId GetRootItem () const
 
wxTreeItemId GetSelection () const
 
size_t GetSelections (wxArrayTreeItemIds &) const
 
wxTreeItemId GetItemParent (const wxTreeItemId &item) const
 
wxTreeItemId GetFirstChild (const wxTreeItemId &item, wxTreeItemIdValue &cookie) const
 
wxTreeItemId GetNextChild (const wxTreeItemId &item, wxTreeItemIdValue &cookie) const
 
wxTreeItemId GetPrevChild (const wxTreeItemId &item, wxTreeItemIdValue &cookie) const
 
wxTreeItemId GetLastChild (const wxTreeItemId &item, wxTreeItemIdValue &cookie) const
 
wxTreeItemId GetNextSibling (const wxTreeItemId &item) const
 
wxTreeItemId GetPrevSibling (const wxTreeItemId &item) const
 
wxTreeItemId GetNext (const wxTreeItemId &item) const
 
wxTreeItemId GetPrev (const wxTreeItemId &item) const
 
wxTreeItemId GetFirstExpandedItem () const
 
wxTreeItemId GetNextExpanded (const wxTreeItemId &item) const
 
wxTreeItemId GetPrevExpanded (const wxTreeItemId &item) const
 
wxTreeItemId GetFirstVisibleItem (bool fullRow=false) const
 
wxTreeItemId GetFirstVisible (bool fullRow=false, bool within=true) const
 
wxTreeItemId GetNextVisible (const wxTreeItemId &item, bool fullRow=false, bool within=true) const
 
wxTreeItemId GetPrevVisible (const wxTreeItemId &item, bool fullRow=false, bool within=true) const
 
wxTreeItemId GetLastVisible (bool fullRow=false, bool within=true) const
 
wxTreeItemId AddRoot (const wxString &text, int image=-1, int selectedImage=-1, wxTreeItemData *data=NULL)
 
wxTreeItemId PrependItem (const wxTreeItemId &parent, const wxString &text, int image=-1, int selectedImage=-1, wxTreeItemData *data=NULL)
 
wxTreeItemId InsertItem (const wxTreeItemId &parent, const wxTreeItemId &idPrevious, const wxString &text, int image=-1, int selectedImage=-1, wxTreeItemData *data=NULL)
 
wxTreeItemId InsertItem (const wxTreeItemId &parent, size_t index, const wxString &text, int image=-1, int selectedImage=-1, wxTreeItemData *data=NULL)
 
wxTreeItemId AppendItem (const wxTreeItemId &parent, const wxString &text, int image=-1, int selectedImage=-1, wxTreeItemData *data=NULL)
 
void Delete (const wxTreeItemId &item)
 
void DeleteChildren (const wxTreeItemId &item)
 
void DeleteRoot ()
 
void SetItemParent (const wxTreeItemId &parent, const wxTreeItemId &item)
 
void Expand (const wxTreeItemId &item)
 
void ExpandAll (const wxTreeItemId &item)
 
void Collapse (const wxTreeItemId &item)
 
void CollapseAndReset (const wxTreeItemId &item)
 
void Toggle (const wxTreeItemId &item)
 
void SetCurrentItem (const wxTreeItemId &item=(wxTreeItemId *) NULL)
 
void Unselect ()
 
void UnselectAll ()
 
bool SelectItem (const wxTreeItemId &item, const wxTreeItemId &last=(wxTreeItemId *) NULL, bool unselect_others=true)
 
void SelectAll ()
 
void EnsureVisible (const wxTreeItemId &item)
 
void ScrollTo (const wxTreeItemId &item)
 
wxTreeItemId HitTest (const wxPoint &point)
 
wxTreeItemId HitTest (const wxPoint &point, int &flags)
 
wxTreeItemId HitTest (const wxPoint &point, int &flags, int &column)
 
bool GetBoundingRect (const wxTreeItemId &item, wxRect &rect, bool textOnly=false) const
 
void EditLabel (const wxTreeItemId &item)
 
void EditLabel (const wxTreeItemId &item, int column)
 
void EndEdit (bool isCancelled)
 
virtual wxString OnGetItemText (wxTreeItemData *item, long column) const
 
virtual int OnCompareItems (const wxTreeItemId &item1, const wxTreeItemId &item2)
 
virtual int OnCompareItems (const wxTreeItemId &item1, const wxTreeItemId &item2, int column)
 
void SortChildren (const wxTreeItemId &item, int column=-1, bool reverseOrder=false)
 
wxTreeItemId FindItem (const wxTreeItemId &item, const wxString &str, int mode=0)
 
wxTreeItemId FindItem (const wxTreeItemId &item, int column, const wxString &str, int mode=0)
 
virtual bool SetBackgroundColour (const wxColour &colour)
 
virtual bool SetForegroundColour (const wxColour &colour)
 
void SetDragItem (const wxTreeItemId &item=(wxTreeItemId *) NULL)
 
virtual wxSize DoGetBestSize () const
 
- Public Member Functions inherited from HuginBase::PanoramaObserver
virtual ~PanoramaObserver ()
 

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
wxTreeListHeaderWindowGetHeaderWindow () const
 
wxTreeListMainWindowGetMainWindow () 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::Panoramam_pano
 
GroupMode m_groupMode
 the active group mode
 
HuginBase::StandardImageVariableGroupsm_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_tm_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::ImageVariableEnumm_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
wxTreeListHeaderWindowm_header_win
 
wxTreeListMainWindowm_main_win
 

Detailed Description

the main images tree control, used on images and optimizer tabs

Definition at line 36 of file ImagesTree.h.

Member Enumeration Documentation

◆ DisplayMode

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.

◆ GroupMode

enumeration for grouping mode

Enumerator
GROUP_NONE 
GROUP_LENS 
GROUP_STACK 
GROUP_OUTPUTLAYERS 
GROUP_OUTPUTSTACK 

Definition at line 40 of file ImagesTree.h.

Constructor & Destructor Documentation

◆ ImagesTreeCtrl()

ImagesTreeCtrl::ImagesTreeCtrl ( )

◆ ~ImagesTreeCtrl()

ImagesTreeCtrl::~ImagesTreeCtrl ( void  )
virtual

destructor

Definition at line 219 of file ImagesTree.cpp.

References DEBUG_TRACE, m_pano, m_variable_groups, and HuginBase::Panorama::removeObserver().

Member Function Documentation

◆ Create()

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" 
)

◆ CreateCheckboxImages()

void ImagesTreeCtrl::CreateCheckboxImages ( )
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().

◆ CreateColumns()

void ImagesTreeCtrl::CreateColumns ( )
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().

◆ GenerateSubMenu()

void ImagesTreeCtrl::GenerateSubMenu ( wxMenu menu,
PanoOperation::PanoOperationVector operations,
int id 
)
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().

◆ GetSelectedImages()

HuginBase::UIntSet ImagesTreeCtrl::GetSelectedImages ( )

◆ Init()

void ImagesTreeCtrl::Init ( HuginBase::Panorama pano)

initialization, connects all control with Panorama, register observer

Todo:
check new didn't return NULL in non-debug builds.

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().

◆ MarkActiveImages()

void ImagesTreeCtrl::MarkActiveImages ( const bool  markActive)

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().

◆ OnActivateImage()

void ImagesTreeCtrl::OnActivateImage ( wxCommandEvent &  e)
protected

◆ OnBeginDrag()

void ImagesTreeCtrl::OnBeginDrag ( wxTreeEvent e)
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().

◆ OnBeginEdit()

void ImagesTreeCtrl::OnBeginEdit ( wxTreeEvent e)
protected

◆ OnChar()

void ImagesTreeCtrl::OnChar ( wxTreeEvent e)
protected

◆ OnColumnWidthChange()

void ImagesTreeCtrl::OnColumnWidthChange ( wxListEvent e)
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().

◆ OnContextMenu()

void ImagesTreeCtrl::OnContextMenu ( wxTreeEvent e)
protected

◆ OnDeactivateImage()

void ImagesTreeCtrl::OnDeactivateImage ( wxCommandEvent &  e)
protected

◆ OnDpiChanged()

void ImagesTreeCtrl::OnDpiChanged ( wxDPIChangedEvent e)
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().

◆ OnEditImageVariables()

void ImagesTreeCtrl::OnEditImageVariables ( wxCommandEvent &  e)
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().

◆ OnEndEdit()

void ImagesTreeCtrl::OnEndEdit ( wxTreeEvent e)
protected

◆ OnExecuteOperation()

void ImagesTreeCtrl::OnExecuteOperation ( wxCommandEvent &  e)
protected

◆ OnHeaderContextMenu()

void ImagesTreeCtrl::OnHeaderContextMenu ( wxListEvent e)
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().

◆ OnLeftDblClick()

void ImagesTreeCtrl::OnLeftDblClick ( wxMouseEvent e)
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().

◆ OnLeftDown()

void ImagesTreeCtrl::OnLeftDown ( wxMouseEvent e)
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().

◆ OnLeftUp()

void ImagesTreeCtrl::OnLeftUp ( wxMouseEvent e)
protected

◆ OnLinkImageVariables()

void ImagesTreeCtrl::OnLinkImageVariables ( wxCommandEvent &  e)
protected

event handler for linking image variables

Definition at line 1457 of file ImagesTree.cpp.

References UnLinkImageVariables().

Referenced by OnContextMenu().

◆ OnMouseMove()

void ImagesTreeCtrl::OnMouseMove ( wxMouseEvent e)
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().

◆ OnSelectAll()

void ImagesTreeCtrl::OnSelectAll ( wxCommandEvent &  e)
protected

event handler for select all optimizer variables

Definition at line 1960 of file ImagesTree.cpp.

References SelectAllParameters().

Referenced by OnContextMenu(), and OnHeaderContextMenu().

◆ OnSelectLensStack()

void ImagesTreeCtrl::OnSelectLensStack ( wxCommandEvent &  e)
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().

◆ OnUnlinkImageVariables()

void ImagesTreeCtrl::OnUnlinkImageVariables ( wxCommandEvent &  e)
protected

event handler for unlinking image variables

Definition at line 1462 of file ImagesTree.cpp.

References UnLinkImageVariables().

Referenced by OnContextMenu().

◆ OnUnselectAll()

void ImagesTreeCtrl::OnUnselectAll ( wxCommandEvent &  e)
protected

event handler for unselect all optimizer variables

Definition at line 1965 of file ImagesTree.cpp.

References SelectAllParameters().

Referenced by OnContextMenu(), and OnHeaderContextMenu().

◆ OnUnselectLensStack()

void ImagesTreeCtrl::OnUnselectLensStack ( wxCommandEvent &  e)
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().

◆ panoramaChanged()

void ImagesTreeCtrl::panoramaChanged ( HuginBase::Panorama pano)
virtual

◆ panoramaImagesChanged()

void ImagesTreeCtrl::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet imgNr 
)
virtual

◆ SelectAllParameters()

void ImagesTreeCtrl::SelectAllParameters ( bool  select,
bool  allImages 
)
private

◆ SetDisplayMode()

void ImagesTreeCtrl::SetDisplayMode ( DisplayMode  newMode)

◆ SetGroupMode()

void ImagesTreeCtrl::SetGroupMode ( GroupMode  newMode)

◆ SetGuiLevel()

void ImagesTreeCtrl::SetGuiLevel ( GuiLevel  newSetting)

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().

◆ SetOptimizerMode()

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().

◆ UnLinkImageVariables()

void ImagesTreeCtrl::UnLinkImageVariables ( bool  linked)
private

◆ UpdateGroup()

void ImagesTreeCtrl::UpdateGroup ( wxTreeItemId  parent,
const HuginBase::UIntSet  imgs,
HuginBase::UIntSet changed 
)
protected

◆ UpdateGroupText()

void ImagesTreeCtrl::UpdateGroupText ( wxTreeItemId  item)
protected

◆ UpdateImageText()

void ImagesTreeCtrl::UpdateImageText ( wxTreeItemId  item)
protected

◆ UpdateItemFont()

void ImagesTreeCtrl::UpdateItemFont ( )
private

◆ UpdateOptimizerVariables()

void ImagesTreeCtrl::UpdateOptimizerVariables ( )
private

Member Data Documentation

◆ m_columnMap

std::map<std::string,size_t> ImagesTreeCtrl::m_columnMap
private

map for easier access to column information

Definition at line 188 of file ImagesTree.h.

Referenced by OnEditImageVariables(), SetDisplayMode(), UpdateGroupText(), and UpdateImageText().

◆ m_columnVector

std::vector<std::string> ImagesTreeCtrl::m_columnVector
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().

◆ m_configClassName

wxString ImagesTreeCtrl::m_configClassName
private

Definition at line 221 of file ImagesTree.h.

Referenced by Create(), CreateColumns(), and OnColumnWidthChange().

◆ m_degDigits

int ImagesTreeCtrl::m_degDigits
private

Definition at line 176 of file ImagesTree.h.

Referenced by Create(), UpdateGroupText(), and UpdateImageText().

◆ m_displayMode

DisplayMode ImagesTreeCtrl::m_displayMode
private

the active display mode

Definition at line 186 of file ImagesTree.h.

Referenced by ImagesTreeCtrl(), OnEditImageVariables(), SetDisplayMode(), and SetGuiLevel().

◆ m_distDigits

int ImagesTreeCtrl::m_distDigits
private

Definition at line 177 of file ImagesTree.h.

Referenced by Create(), UpdateGroupText(), and UpdateImageText().

◆ m_dragging

bool ImagesTreeCtrl::m_dragging
private

true, if dragging

Definition at line 202 of file ImagesTree.h.

Referenced by ImagesTreeCtrl(), OnBeginDrag(), OnLeftDown(), and OnLeftUp().

◆ m_draggingImages

HuginBase::UIntSet ImagesTreeCtrl::m_draggingImages
private

UIntSet of dragging images.

Definition at line 200 of file ImagesTree.h.

Referenced by OnBeginDrag(), and OnLeftUp().

◆ m_editableColumns

HuginBase::UIntSet ImagesTreeCtrl::m_editableColumns
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().

◆ m_editOldString

wxString ImagesTreeCtrl::m_editOldString
private

wxString, as shown before editing started

Definition at line 206 of file ImagesTree.h.

Referenced by OnBeginEdit(), and OnEndEdit().

◆ m_editVal

double ImagesTreeCtrl::m_editVal
private

value, which is currently edited

Definition at line 204 of file ImagesTree.h.

Referenced by OnBeginEdit(), and OnEndEdit().

◆ m_groupMode

GroupMode ImagesTreeCtrl::m_groupMode
private

◆ m_guiLevel

GuiLevel ImagesTreeCtrl::m_guiLevel
private

stores the active GuiLevel

Definition at line 180 of file ImagesTree.h.

Referenced by GenerateSubMenu(), ImagesTreeCtrl(), OnContextMenu(), OnEditImageVariables(), OnExecuteOperation(), SetDisplayMode(), and SetGuiLevel().

◆ m_lastCurrentCol

long ImagesTreeCtrl::m_lastCurrentCol
private

Definition at line 215 of file ImagesTree.h.

Referenced by OnMouseMove().

◆ m_lastCurrentItem

wxTreeItemId ImagesTreeCtrl::m_lastCurrentItem
private

stores last item on which the mouse was hovering

Definition at line 214 of file ImagesTree.h.

Referenced by OnMouseMove().

◆ m_leftDownColumn

long ImagesTreeCtrl::m_leftDownColumn
private

Definition at line 218 of file ImagesTree.h.

Referenced by OnLeftDown(), and OnLeftUp().

◆ m_leftDownItem

wxTreeItemId ImagesTreeCtrl::m_leftDownItem
private

stores where left mouse click happend

Definition at line 217 of file ImagesTree.h.

Referenced by OnLeftDown(), and OnLeftUp().

◆ m_markDisabledImages

bool ImagesTreeCtrl::m_markDisabledImages
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().

◆ m_menuOperation

std::map<int,PanoOperation::PanoOperation*> ImagesTreeCtrl::m_menuOperation
private

map with current active context menu PanoOperation

Definition at line 196 of file ImagesTree.h.

Referenced by GenerateSubMenu(), OnContextMenu(), and OnExecuteOperation().

◆ m_needsUpdate

bool ImagesTreeCtrl::m_needsUpdate
private

helper variable for update of output stacks/layers

Definition at line 208 of file ImagesTree.h.

Referenced by ImagesTreeCtrl(), panoramaChanged(), panoramaImagesChanged(), and SetGroupMode().

◆ m_optimizerMode

bool ImagesTreeCtrl::m_optimizerMode
private

◆ m_pano

HuginBase::Panorama* ImagesTreeCtrl::m_pano
private

◆ m_pixelDigits

int ImagesTreeCtrl::m_pixelDigits
private

Definition at line 178 of file ImagesTree.h.

Referenced by Create(), UpdateGroupText(), and UpdateImageText().

◆ m_root

wxTreeItemId ImagesTreeCtrl::m_root
private

pointer to root item, not shown

Definition at line 211 of file ImagesTree.h.

Referenced by Create(), panoramaImagesChanged(), SetGroupMode(), UpdateItemFont(), and UpdateOptimizerVariables().

◆ m_selectedColumn

size_t ImagesTreeCtrl::m_selectedColumn
private

◆ m_variable_groups

HuginBase::StandardImageVariableGroups* ImagesTreeCtrl::m_variable_groups
private

Definition at line 173 of file ImagesTree.h.

Referenced by Init(), panoramaImagesChanged(), UpdateImageText(), and ~ImagesTreeCtrl().

◆ m_variableVector

std::vector<HuginBase::ImageVariableGroup::ImageVariableEnum> ImagesTreeCtrl::m_variableVector
private

vector for easier access to linking information

Definition at line 194 of file ImagesTree.h.

Referenced by OnContextMenu(), and UnLinkImageVariables().


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