Computer Assited Medical Intervention Tool Kit  version 4.1
FrameExplorer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 
27 #ifndef FRAMEEXPLORER_H
28 #define FRAMEEXPLORER_H
29 
30 // -- Core stuff
31 #include "Viewer.h"
32 
33 // -- QT stuff
34 #include <QTreeWidget>
35 #include <QTreeWidgetItem>
36 
37 namespace camitk {
38 // -- Core stuff classes
39 class InterfaceFrame;
40 
56  Q_OBJECT
57 
58 public:
61 
63  FrameExplorer();
64 
66  ~FrameExplorer() override = default;
67 
69  static FrameExplorer* getInstance();
71 
74  unsigned int numberOfViewedComponent() override;
77 
79  void refresh(Viewer* whoIsAsking = nullptr) override;
80 
82  QWidget* getWidget(QWidget* parent) override;
83 
85  virtual QWidget* getPreferenceWidget(QWidget* parent);
86 
87 public slots :
88 
89 private slots :
90 
92  void selectionChanged();
93 
94 private:
95 
99  QTreeWidgetItem* getNewItem(QTreeWidgetItem* parent, Component*);
100 
102  QTreeWidgetItem* add(QTreeWidgetItem*, Component*);
103 
107  void add(Component* comp);
108 
110  void remove();
111 
112 
114  QTreeWidget* explorerTree;
116 
117 };
118 
119 }
120 
121 
122 #endif
QTreeWidget * explorerTree
the list view
Definition: FrameExplorer.h:114
Viewer is an abstract viewer.
Definition: Viewer.h:55
Explorer window, display the list of all data currently opened in the application.
Definition: FrameExplorer.h:55
Definition: Action.cpp:36
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:298
#define CAMITK_API
Definition: CamiTKAPI.h:49