63 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"));
129 void OnChar(wxTreeEvent &e);
144 #if wxCHECK_VERSION(3,1,3)
146 void OnDpiChanged(wxDPIChangedEvent& e);
224 DECLARE_EVENT_TABLE()
236 virtual wxObject *DoCreateResource();
237 virtual bool CanHandle(wxXmlNode *node);
240 #endif // _IMAGESTREE_H
ImagesTreeCtrl()
general constructor
std::map< std::string, size_t > m_columnMap
map for easier access to column information
void OnChar(wxTreeEvent &e)
event handler for key events
GroupMode m_groupMode
the active group mode
declaration of helper for work with different GuiLevels
void SetGroupMode(GroupMode newMode)
sets the group mode to given mode
void OnHeaderContextMenu(wxListEvent &e)
event handler for context menu on header
void OnEndEdit(wxTreeEvent &e)
event handler for ending editing, updates the Panorama with modified value
void OnLeftDown(wxMouseEvent &e)
event handler for left mouse down, handles toggle of optimizer variables
void OnExecuteOperation(wxCommandEvent &e)
menu event handler for PanoOperation (context menu items)
void OnLeftUp(wxMouseEvent &e)
event handler for left up, handles end of dragging and updates of optimizer variables states ...
DisplayMode m_displayMode
the active display mode
bool m_dragging
true, if dragging
void UpdateGroup(wxTreeItemId parent, const HuginBase::UIntSet imgs, HuginBase::UIntSet &changed)
updates the given group, updates number of images and the images itself
std::vector< HuginBase::ImageVariableGroup::ImageVariableEnum > m_variableVector
vector for easier access to linking information
Somewhere to specify what variables belong to what.
void OnUnlinkImageVariables(wxCommandEvent &e)
event handler for unlinking image variables
wxTreeItemId m_root
pointer to root item, not shown
virtual void panoramaChanged(HuginBase::Panorama &pano)
receives notification about panorama changes
bool m_markDisabledImages
true, if disabled images should be marked with other font color
void OnDeactivateImage(wxCommandEvent &e)
event handler for deactivate image
void OnLeftDblClick(wxMouseEvent &e)
event handler for left double click
Definition of PanoOperation class.
void Init(HuginBase::Panorama *pano)
initialization, connects all control with Panorama, register observer
wxTreeItemId m_leftDownItem
stores where left mouse click happend
std::set< unsigned int > UIntSet
void OnContextMenu(wxTreeEvent &e)
event handler to display context menu
DisplayMode
enumeration for display mode, limits the displayed columns
void OnLinkImageVariables(wxCommandEvent &e)
event handler for linking image variables
bool m_needsUpdate
helper variable for update of output stacks/layers
void MarkActiveImages(const bool markActive)
sets the flag, if active/disabled image should be marked with different colour
void OnBeginEdit(wxTreeEvent &e)
event handler for beginning editing
void UpdateImageText(wxTreeItemId item)
updates the information for the given image in tree
wxString m_configClassName
void SetDisplayMode(DisplayMode newMode)
sets the display mode to given mode
void UnLinkImageVariables(bool linked)
helper procedure for link/unlink image variables
GroupMode
enumeration for grouping mode
double m_editVal
value, which is currently edited
std::vector< std::string > m_columnVector
vector for easier access to column information
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
void OnColumnWidthChange(wxListEvent &e)
event handler, when column width was changed, save into wxConfig
HuginBase::Panorama * m_pano
bool m_optimizerMode
true, if in optimizer mode
wxTreeItemId m_lastCurrentItem
stores last item on which the mouse was hovering
void SetGuiLevel(GuiLevel newSetting)
sets the GuiLevel of the control
HuginBase::UIntSet GetSelectedImages()
returns the selected images
void OnEditImageVariables(wxCommandEvent &e)
event handler for showing image variables editing dialog
void OnSelectAll(wxCommandEvent &e)
event handler for select all optimizer variables
void OnSelectLensStack(wxCommandEvent &e)
event handler for select all optimizer variables for selected lens/stack
size_t m_selectedColumn
selected column
std::map< int, PanoOperation::PanoOperation * > m_menuOperation
map with current active context menu PanoOperation
void OnBeginDrag(wxTreeEvent &e)
event handler when dragging begins, veto if dragging is not possible
this handler class will receive change events from the Panorama.
the main images tree control, used on images and optimizer tabs
void OnActivateImage(wxCommandEvent &e)
event handler for activate image
void OnMouseMove(wxMouseEvent &e)
event handler for mouse motion, handles focussing of check boxes
void GenerateSubMenu(wxMenu *menu, PanoOperation::PanoOperationVector *operations, int &id)
generates submenu for given PanoOperationVector
GuiLevel m_guiLevel
stores the active GuiLevel
wxString m_editOldString
wxString, as shown before editing started
void SelectAllParameters(bool select, bool allImages)
select/unselect all variables in the active column true selects all, false unselect all true works ...
std::vector< PanoOperation * > PanoOperationVector
HuginBase::StandardImageVariableGroups * m_variable_groups
HuginBase::UIntSet m_draggingImages
UIntSet of dragging images.
void UpdateGroupText(wxTreeItemId item)
updates the information fot the given lens/stack in the tree
void UpdateItemFont()
update the font colour for all items
void OnUnselectLensStack(wxCommandEvent &e)
event handler for unselect all optimizer variables for selected lens/stack
HuginBase::UIntSet m_editableColumns
set, which contains editable columns (all column which contains numeric image variables ...
void CreateColumns()
creates all columns and stores information in m_columnMap, m_columnVector, m_editableColumns and m_va...
void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
receive the update signal and update display accordingly
void OnUnselectAll(wxCommandEvent &e)
event handler for unselect all optimizer variables
void UpdateOptimizerVariables()
updates the display of the optimizer variables (set font)
void CreateCheckboxImages()
create image list with necessary images of checkboxes
void SetOptimizerMode()
sets to control into optimizer mode
virtual ~ImagesTreeCtrl(void)
destructor