X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOWxTreeView.h;h=126c9410a6aabe86abfa02274f783ad9c7609874;hb=e13ea6551e8721b11998dc33ddccf3f89458f173;hp=76440a4ae0993526a8608e6471097ced25a5e41b;hpb=4029ce2d66a658d9f598cca1c95b82a42e26a3d9;p=creaImageIO.git diff --git a/src2/creaImageIOWxTreeView.h b/src2/creaImageIOWxTreeView.h index 76440a4..126c941 100644 --- a/src2/creaImageIOWxTreeView.h +++ b/src2/creaImageIOWxTreeView.h @@ -68,6 +68,15 @@ namespace creaImageIO /// Gets the attributes that are being shown and the ones that have been blocked on a specific level void GetAttributes(std::vector& areShown, std::vector& notShown, int level); + + ///Sets the non visible attributes and refreshes the GUI + void SetNonVisibleAttributes(const std::vector& notShown, int level); + + ///Creates a new listctrl + void CreateCtrl(std::vector& notShown, int nlevel); + + ///Returns true if the attribute passed as a parameter is visible or not + bool IsAttributeVisible(const std::string& val, int level); /// Actual processing of item selection/deselection /// Called by OnItemSelected and OnItemDeSelected @@ -82,8 +91,6 @@ namespace creaImageIO wxListCtrl* wxCtrl; wxSplitterWindow* wxSplitter; std::vector key; - //The vector of not shown attributes - std::vector notShownAtts; // The vector of currently selected nodes of the level std::vector Selected; // True iff the vector Selected is up to date @@ -93,7 +100,8 @@ namespace creaImageIO ///Boolean that defines the direction of the sort ///True is ascending order and false is descending bool SortAscending; - // + //The vector of not shown attributes + std::vector notShownAtts; }; /// The vector of levels : one for each level of the tree std::vector mLevelList; @@ -122,10 +130,6 @@ namespace creaImageIO /// Updates the view of a level given the selected items of upper level /// Recursive method virtual void RecursiveUpdateLevel( int ); - ///Sets the color of a selected item - void SetColor(int level, int item); - ///Creates the color palette for the first level - void CreateColorPalette(); ///Selects all the elements of a level void SelectAll(int level); ///UnSelects all the elements of a level