creaImageIO_lib
creaImageIOTreeView.h
Go to the documentation of this file.
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 #
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
16 #
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
21 # liability.
22 #
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------
26 */
27 
28 
29 #ifndef __creaImageIOTreeView_h_INCLUDED__
30 #define __creaImageIOTreeView_h_INCLUDED__
31 
32 #include <creaImageIOTreeHandler.h>
34 #include <creaImageIOSystem.h>
35 #include <vtkImageData.h>
36 
37 namespace creaImageIO
38 {
39 
40  class GimmickView;
41 
46  //=====================================================================
47 
48  //=====================================================================
50  class TreeView
51  {
52  public:
56  virtual ~TreeView();
57 
58 
60  virtual void UpdateLevel( int )
61  { GimmickError("INTERNAL ERROR : TreeView::UpdateLevel not overloaded");}
62 
64  virtual void RemoveSelected(std::string &i_save )
65  { GimmickError("INTERNAL ERROR : TreeView::RemoveSelected not overloaded");}
66 
68  virtual void ValidateSelectedImages()
69  { GimmickError("INTERNAL ERROR : TreeView::ValidateSelected not overloaded");}
70 
72  virtual unsigned int GetLastSelectedLevel(){GimmickError("INTERNAL ERROR : TreeView::GetLastSelectedLevel not overloaded");}
73 
75  virtual int GetNumberOfLevels(){ GimmickError("INTERNAL ERROR : TreeView::GetLevels not overloaded"); }
77  virtual void GetSelectedAsString(std::vector<std::string>&s){ GimmickError("INTERNAL ERROR : TreeView::GetSelectedAsString not overloaded"); }
78 
80  virtual const std::vector<tree::Node*>& GetSelected(int level){ GimmickError("INTERNAL ERROR : TreeView::GetSelected not overloaded"); }
81 
83  virtual void GetNodes(std::vector<tree::Node*>& nodes, bool direction){ GimmickError("INTERNAL ERROR : TreeView::GetNodes not overloaded"); }
84 
86  virtual void GetAttributes(std::vector<std::string>& areShown, std::vector<std::string>& notShown, int level){ GimmickError("INTERNAL ERROR : TreeView::GetAttributes not overloaded"); }
87 
89  virtual void SetNonVisibleAttributes(const std::vector<std::string>& notShown, int level){ GimmickError("INTERNAL ERROR : TreeView::SetNonVisibleAttributes not overloaded"); }
90 
92  virtual void CreateCtrl(std::vector<std::string>& notShown, int nlevel){ GimmickError("INTERNAL ERROR : TreeView::CreateCtrl not overloaded"); }
93 
94  protected:
97 
98  private:
103 
104  };
105  // EO class TreeView
106  //=====================================================================
107 
108 
109 } // EO namespace creaImageIO
110 
111 // EOF
112 #endif