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