Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 More...
 
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"))
 creates the control More...
 
void Init (HuginBase::Panorama *pano)
 initialization, connects all control with Panorama, register observer More...
 
virtual ~ImagesTreeCtrl (void)
 destructor More...
 
void SetGroupMode (GroupMode newMode)
 sets the group mode to given mode More...
 
void SetDisplayMode (DisplayMode newMode)
 sets the display mode to given mode More...
 
void SetGuiLevel (GuiLevel newSetting)
 sets the GuiLevel of the control More...
 
void SetOptimizerMode ()
 sets to control into optimizer mode More...
 
virtual void panoramaChanged (HuginBase::Panorama &pano)
 receives notification about panorama changes More...
 
void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
 receive the update signal and update display accordingly More...
 
HuginBase::UIntSet GetSelectedImages ()
 returns the selected images More...
 
void MarkActiveImages (const bool markActive)
 sets the flag, if active/disabled image should be marked with different colour More...
 
- 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)
 
wxImageList * GetImageList () const
 
wxImageList * GetStateImageList () const
 
wxImageList * GetButtonsImageList () 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 More...
 
void UpdateGroupText (wxTreeItemId item)
 updates the information fot the given lens/stack in the tree More...
 
void UpdateGroup (wxTreeItemId parent, const HuginBase::UIntSet imgs, HuginBase::UIntSet &changed)
 updates the given group, updates number of images and the images itself More...
 
void OnColumnWidthChange (wxListEvent &e)
 event handler, when column width was changed, save into wxConfig More...
 
void OnLinkImageVariables (wxCommandEvent &e)
 event handler for linking image variables More...
 
void OnUnlinkImageVariables (wxCommandEvent &e)
 event handler for unlinking image variables More...
 
void OnEditImageVariables (wxCommandEvent &e)
 event handler for showing image variables editing dialog More...
 
void OnBeginDrag (wxTreeEvent &e)
 event handler when dragging begins, veto if dragging is not possible More...
 
void OnLeftUp (wxMouseEvent &e)
 event handler for left up, handles end of dragging and updates of optimizer variables states More...
 
void OnLeftDown (wxMouseEvent &e)
 event handler for left mouse down, handles toggle of optimizer variables More...
 
void OnMouseMove (wxMouseEvent &e)
 event handler for mouse motion, handles focussing of check boxes More...
 
void OnLeftDblClick (wxMouseEvent &e)
 event handler for left double click More...
 
void OnSelectAll (wxCommandEvent &e)
 event handler for select all optimizer variables More...
 
void OnUnselectAll (wxCommandEvent &e)
 event handler for unselect all optimizer variables More...
 
void OnSelectLensStack (wxCommandEvent &e)
 event handler for select all optimizer variables for selected lens/stack More...
 
void OnUnselectLensStack (wxCommandEvent &e)
 event handler for unselect all optimizer variables for selected lens/stack More...
 
void OnChar (wxTreeEvent &e)
 event handler for key events More...
 
void OnBeginEdit (wxTreeEvent &e)
 event handler for beginning editing More...
 
void OnEndEdit (wxTreeEvent &e)
 event handler for ending editing, updates the Panorama with modified value More...
 
void OnExecuteOperation (wxCommandEvent &e)
 menu event handler for PanoOperation (context menu items) More...
 
void OnContextMenu (wxTreeEvent &e)
 event handler to display context menu More...
 
void OnHeaderContextMenu (wxListEvent &e)
 event handler for context menu on header More...
 
void OnActivateImage (wxCommandEvent &e)
 event handler for activate image More...
 
void OnDeactivateImage (wxCommandEvent &e)
 event handler for deactivate image More...
 
void OnDpiChanged (wxDPIChangedEvent &e)
 event handler for updating dpi More...
 
- 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 More...
 
void UnLinkImageVariables (bool linked)
 helper procedure for link/unlink image variables More...
 
void SelectAllParameters (bool select, bool allImages)
 select/unselect all variables in the active column true selects all, false unselect all true works on all images, false only on images of current lens or stack More...
 
void UpdateOptimizerVariables ()
 updates the display of the optimizer variables (set font) More...
 
void GenerateSubMenu (wxMenu *menu, PanoOperation::PanoOperationVector *operations, int &id)
 generates submenu for given PanoOperationVector More...
 
void UpdateItemFont ()
 update the font colour for all items More...
 
void CreateCheckboxImages ()
 create image list with necessary images of checkboxes More...
 

Private Attributes

HuginBase::Panoramam_pano
 
GroupMode m_groupMode
 the active group mode More...
 
HuginBase::StandardImageVariableGroupsm_variable_groups
 
int m_degDigits
 
int m_distDigits
 
int m_pixelDigits
 
GuiLevel m_guiLevel
 stores the active GuiLevel More...
 
bool m_optimizerMode
 true, if in optimizer mode More...
 
bool m_markDisabledImages
 true, if disabled images should be marked with other font color More...
 
DisplayMode m_displayMode
 the active display mode More...
 
std::map< std::string, size_t > m_columnMap
 map for easier access to column information More...
 
std::vector< std::string > m_columnVector
 vector for easier access to column information More...
 
HuginBase::UIntSet m_editableColumns
 set, which contains editable columns (all column which contains numeric image variables More...
 
std::vector
< HuginBase::ImageVariableGroup::ImageVariableEnum
m_variableVector
 vector for easier access to linking information More...
 
std::map< int,
PanoOperation::PanoOperation * > 
m_menuOperation
 map with current active context menu PanoOperation More...
 
size_t m_selectedColumn
 selected column More...
 
HuginBase::UIntSet m_draggingImages
 UIntSet of dragging images. More...
 
bool m_dragging
 true, if dragging More...
 
double m_editVal
 value, which is currently edited More...
 
wxString m_editOldString
 wxString, as shown before editing started More...
 
bool m_needsUpdate
 helper variable for update of output stacks/layers More...
 
wxTreeItemId m_root
 pointer to root item, not shown More...
 
wxTreeItemId m_lastCurrentItem
 stores last item on which the mouse was hovering More...
 
long m_lastCurrentCol
 
wxTreeItemId m_leftDownItem
 stores where left mouse click happend More...
 
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

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.

Constructor & Destructor Documentation

ImagesTreeCtrl::ImagesTreeCtrl ( )
ImagesTreeCtrl::~ImagesTreeCtrl ( void  )
virtual

destructor

Definition at line 227 of file ImagesTree.cpp.

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

Member Function Documentation

bool ImagesTreeCtrl::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 ImagesTreeCtrl::CreateCheckboxImages ( )
private

create image list with necessary images of checkboxes

Definition at line 959 of file ImagesTree.cpp.

References wxcode::wxTreeListCtrl::AssignImageList().

Referenced by OnDpiChanged(), and SetOptimizerMode().

void ImagesTreeCtrl::CreateColumns ( )
private

creates all columns and stores information in m_columnMap, m_columnVector, m_editableColumns and m_variableVector

Definition at line 134 of file ImagesTree.cpp.

References ADDCOLUMN, wxcode::wxTreeListCtrl::AddColumn(), wxcode::wxTreeListCtrl::GetColumnCount(), m_configClassName, and wxcode::wxTreeListCtrl::SetColumnWidth().

Referenced by Create().

void ImagesTreeCtrl::GenerateSubMenu ( wxMenu *  menu,
PanoOperation::PanoOperationVector operations,
int &  id 
)
private

generates submenu for given PanoOperationVector

Definition at line 1274 of file ImagesTree.cpp.

References GetSelectedImages(), m_guiLevel, m_menuOperation, and m_pano.

Referenced by OnContextMenu().

HuginBase::UIntSet ImagesTreeCtrl::GetSelectedImages ( )
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 213 of file ImagesTree.cpp.

References HuginBase::Panorama::addObserver(), DEBUG_ASSERT, m_pano, and m_variable_groups.

Referenced by OptimizePhotometricPanel::Init(), ImagesPanel::Init(), and OptimizePanel::Init().

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, and UpdateItemFont().

Referenced by OptimizePhotometricPanel::SetOnlyActiveImages(), and OptimizePanel::SetOnlyActiveImages().

void ImagesTreeCtrl::OnActivateImage ( wxCommandEvent &  e)
protected
void ImagesTreeCtrl::OnBeginDrag ( wxTreeEvent &  e)
protected

event handler when dragging begins, veto if dragging is not possible

Definition at line 1482 of file ImagesTree.cpp.

References HuginBase::Panorama::getNrOfImages(), GetSelectedImages(), GROUP_LENS, GROUP_NONE, GROUP_STACK, m_dragging, m_draggingImages, m_groupMode, and m_pano.

void ImagesTreeCtrl::OnBeginEdit ( wxTreeEvent &  e)
protected
void ImagesTreeCtrl::OnChar ( wxTreeEvent &  e)
protected
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(), and m_configClassName.

void ImagesTreeCtrl::OnContextMenu ( wxTreeEvent &  e)
protected
void ImagesTreeCtrl::OnDeactivateImage ( wxCommandEvent &  e)
protected
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().

void ImagesTreeCtrl::OnEditImageVariables ( wxCommandEvent &  e)
protected
void ImagesTreeCtrl::OnEndEdit ( wxTreeEvent &  e)
protected
void ImagesTreeCtrl::OnExecuteOperation ( wxCommandEvent &  e)
protected
void ImagesTreeCtrl::OnHeaderContextMenu ( wxListEvent &  e)
protected

event handler for context menu on header

Definition at line 1371 of file ImagesTree.cpp.

References ID_SELECT_ALL, ID_UNSELECT_ALL, m_editableColumns, m_optimizerMode, m_selectedColumn, and set_contains().

void ImagesTreeCtrl::OnLeftDblClick ( wxMouseEvent &  e)
protected

event handler for left double click

Definition at line 2111 of file ImagesTree.cpp.

References flags, wxcode::wxTreeListCtrl::HitTest(), ID_EDIT, m_optimizerMode, and m_selectedColumn.

void ImagesTreeCtrl::OnLeftDown ( wxMouseEvent &  e)
protected

event handler for left mouse down, handles toggle of optimizer variables

Definition at line 1764 of file ImagesTree.cpp.

References wxcode::wxTreeListCtrl::EndEdit(), flags, wxcode::wxTreeListCtrl::GetItemText(), wxcode::wxTreeListCtrl::HitTest(), m_dragging, m_editableColumns, m_leftDownColumn, m_leftDownItem, and set_contains().

Referenced by SetOptimizerMode().

void ImagesTreeCtrl::OnLeftUp ( wxMouseEvent &  e)
protected
void ImagesTreeCtrl::OnLinkImageVariables ( wxCommandEvent &  e)
protected

event handler for linking image variables

Definition at line 1436 of file ImagesTree.cpp.

References UnLinkImageVariables().

void ImagesTreeCtrl::OnMouseMove ( wxMouseEvent &  e)
protected

event handler for mouse motion, handles focussing of check boxes

Definition at line 1794 of file ImagesTree.cpp.

References flags, wxcode::wxTreeListCtrl::GetItemImage(), wxcode::wxTreeListCtrl::HitTest(), m_lastCurrentCol, m_lastCurrentItem, and wxcode::wxTreeListCtrl::SetItemImage().

Referenced by SetOptimizerMode().

void ImagesTreeCtrl::OnSelectAll ( wxCommandEvent &  e)
protected

event handler for select all optimizer variables

Definition at line 1939 of file ImagesTree.cpp.

References SelectAllParameters().

void ImagesTreeCtrl::OnSelectLensStack ( wxCommandEvent &  e)
protected

event handler for select all optimizer variables for selected lens/stack

Definition at line 1949 of file ImagesTree.cpp.

References SelectAllParameters().

void ImagesTreeCtrl::OnUnlinkImageVariables ( wxCommandEvent &  e)
protected

event handler for unlinking image variables

Definition at line 1441 of file ImagesTree.cpp.

References UnLinkImageVariables().

void ImagesTreeCtrl::OnUnselectAll ( wxCommandEvent &  e)
protected

event handler for unselect all optimizer variables

Definition at line 1944 of file ImagesTree.cpp.

References SelectAllParameters().

void ImagesTreeCtrl::OnUnselectLensStack ( wxCommandEvent &  e)
protected

event handler for unselect all optimizer variables for selected lens/stack

Definition at line 1954 of file ImagesTree.cpp.

References SelectAllParameters().

void ImagesTreeCtrl::panoramaChanged ( HuginBase::Panorama pano)
virtual
void ImagesTreeCtrl::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet imgNr 
)
virtual
void ImagesTreeCtrl::SelectAllParameters ( bool  select,
bool  allImages 
)
private
void ImagesTreeCtrl::SetDisplayMode ( DisplayMode  newMode)
void ImagesTreeCtrl::SetGroupMode ( GroupMode  newMode)
void ImagesTreeCtrl::SetGuiLevel ( GuiLevel  newSetting)

sets the GuiLevel of the control

Definition at line 952 of file ImagesTree.cpp.

References m_displayMode, m_guiLevel, and SetDisplayMode().

Referenced by OptimizePhotometricPanel::SetGuiLevel(), OptimizePanel::SetGuiLevel(), and ImagesPanel::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(), and wxcode::wxTreeListCtrl::SetColumnEditable().

Referenced by OptimizePhotometricPanel::Init(), and OptimizePanel::Init().

void ImagesTreeCtrl::UnLinkImageVariables ( bool  linked)
private
void ImagesTreeCtrl::UpdateGroup ( wxTreeItemId  parent,
const HuginBase::UIntSet  imgs,
HuginBase::UIntSet changed 
)
protected
void ImagesTreeCtrl::UpdateGroupText ( wxTreeItemId  item)
protected
void ImagesTreeCtrl::UpdateImageText ( wxTreeItemId  item)
protected
void ImagesTreeCtrl::UpdateItemFont ( )
private
void ImagesTreeCtrl::UpdateOptimizerVariables ( )
private

Member Data Documentation

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

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

wxString ImagesTreeCtrl::m_configClassName
private

Definition at line 221 of file ImagesTree.h.

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

int ImagesTreeCtrl::m_degDigits
private

Definition at line 176 of file ImagesTree.h.

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

DisplayMode ImagesTreeCtrl::m_displayMode
private

the active display mode

Definition at line 186 of file ImagesTree.h.

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

int ImagesTreeCtrl::m_distDigits
private

Definition at line 177 of file ImagesTree.h.

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

bool ImagesTreeCtrl::m_dragging
private

true, if dragging

Definition at line 202 of file ImagesTree.h.

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

HuginBase::UIntSet ImagesTreeCtrl::m_draggingImages
private

UIntSet of dragging images.

Definition at line 200 of file ImagesTree.h.

Referenced by OnBeginDrag(), and OnLeftUp().

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

wxString ImagesTreeCtrl::m_editOldString
private

wxString, as shown before editing started

Definition at line 206 of file ImagesTree.h.

Referenced by OnBeginEdit(), and OnEndEdit().

double ImagesTreeCtrl::m_editVal
private

value, which is currently edited

Definition at line 204 of file ImagesTree.h.

Referenced by OnBeginEdit(), and OnEndEdit().

GroupMode ImagesTreeCtrl::m_groupMode
private
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().

long ImagesTreeCtrl::m_lastCurrentCol
private

Definition at line 215 of file ImagesTree.h.

Referenced by OnMouseMove().

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

long ImagesTreeCtrl::m_leftDownColumn
private

Definition at line 218 of file ImagesTree.h.

Referenced by OnLeftDown(), and OnLeftUp().

wxTreeItemId ImagesTreeCtrl::m_leftDownItem
private

stores where left mouse click happend

Definition at line 217 of file ImagesTree.h.

Referenced by OnLeftDown(), and OnLeftUp().

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

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

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

bool ImagesTreeCtrl::m_optimizerMode
private
HuginBase::Panorama* ImagesTreeCtrl::m_pano
private
int ImagesTreeCtrl::m_pixelDigits
private

Definition at line 178 of file ImagesTree.h.

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

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

size_t ImagesTreeCtrl::m_selectedColumn
private
HuginBase::StandardImageVariableGroups* ImagesTreeCtrl::m_variable_groups
private

Definition at line 173 of file ImagesTree.h.

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

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: