From 4029ce2d66a658d9f598cca1c95b82a42e26a3d9 Mon Sep 17 00:00:00 2001 From: caballero Date: Fri, 22 May 2009 16:09:08 +0000 Subject: [PATCH] Added interface for attribute visualization selection. --- src2/CMakeLists.txt | 1 + src2/creaImageIOTreeView.h | 3 + src2/creaImageIOWxAttributeSelectionPanel.cpp | 192 ++++++++++++++++++ src2/creaImageIOWxAttributeSelectionPanel.h | 61 ++++++ src2/creaImageIOWxGimmickView.cpp | 17 +- src2/creaImageIOWxGimmickView.h | 4 + src2/creaImageIOWxTreeView.cpp | 19 ++ src2/creaImageIOWxTreeView.h | 11 +- 8 files changed, 301 insertions(+), 7 deletions(-) create mode 100644 src2/creaImageIOWxAttributeSelectionPanel.cpp create mode 100644 src2/creaImageIOWxAttributeSelectionPanel.h 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" + <