From: caballero Date: Fri, 22 May 2009 16:09:08 +0000 (+0000) Subject: Added interface for attribute visualization selection. X-Git-Tag: EED.02Oct2009~59 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4029ce2d66a658d9f598cca1c95b82a42e26a3d9;p=creaImageIO.git Added interface for attribute visualization selection. --- diff --git a/src2/CMakeLists.txt b/src2/CMakeLists.txt index 0ced6db..951ccc7 100644 --- a/src2/CMakeLists.txt +++ b/src2/CMakeLists.txt @@ -51,6 +51,7 @@ SET( SRCS creaImageIOWxCustomizeConfigPanel creaImageIOWxListenerPanel creaImageIOWxEditFieldsPanel + creaImageIOWxAttributeSelectionPanel # BlockScopeWxApp diff --git a/src2/creaImageIOTreeView.h b/src2/creaImageIOTreeView.h index df92b14..611c7d0 100644 --- a/src2/creaImageIOTreeView.h +++ b/src2/creaImageIOTreeView.h @@ -54,6 +54,9 @@ namespace creaImageIO /// Gets the next nodes on the list, be it up(true) or down(false). virtual void GetNodes(std::vector& nodes, bool direction){ GimmickError("INTERNAL ERROR : TreeView::GetNodes not overloaded"); } + /// Gets the attributes that are being shown and the ones that have been blocked on a specific level + virtual void GetAttributes(std::vector& areShown, std::vector& notShown, int level){ GimmickError("INTERNAL ERROR : TreeView::GetAttributes not overloaded"); } + protected: TreeHandler* GetTreeHandler() { return mTreeHandler; } GimmickView* GetGimmickView() { return mGimmickView; } diff --git a/src2/creaImageIOWxAttributeSelectionPanel.cpp b/src2/creaImageIOWxAttributeSelectionPanel.cpp new file mode 100644 index 0000000..113dcfe --- /dev/null +++ b/src2/creaImageIOWxAttributeSelectionPanel.cpp @@ -0,0 +1,192 @@ +#include +#include + +namespace creaImageIO +{ + const int ID_COMBO = 180; + // CTor + WxAttributeSelectionPanel::WxAttributeSelectionPanel(wxWindow *parent, + wxDialog* dial, + WxGimmickView* view, + std::vector sAtts, + std::vector nsAtts, + int numLev) + : wxPanel( parent, + -1, wxDefaultPosition, + wxDefaultSize, + wxRESIZE_BORDER | + wxSYSTEM_MENU | + wxCLOSE_BOX | + wxMAXIMIZE_BOX | + wxMINIMIZE_BOX | + wxCAPTION + ), + dialog(dial), + shownA(sAtts), + notShownA(nsAtts), + mView(view) + { + GimmickDebugMessage(1,"WxCustomizeConfigPanel::WxCustomizeConfigPanel" + <