Computer Assited Medical Intervention Tool Kit  version 4.1
MultiPickingWidget.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 #ifndef MULTIPLEPICKINGWIDGET_H
27 #define MULTIPLEPICKINGWIDGET_H
28 
29 // Includes Qt
30 #include <QWidget>
31 
32 // Includes CamiTK
33 #include <ImageComponent.h>
34 
35 // local includes
36 #include "MultiPickingAPI.h"
37 #include "ui_MultiPickingWidget.h"
38 #include "PickedPixelMap.h"
39 
47 class MULTIPICKING_API MultiPickingWidget : public QWidget {
48  Q_OBJECT
49 
50 public:
52  MultiPickingWidget(QWidget* parent = nullptr);
53 
55  ~MultiPickingWidget() override = default;
56 
58  void updateComponent(camitk::ImageComponent* image);
59 
61  PickedPixelMap* getPickedPixelMap(camitk::ImageComponent* image);
62 
63 
64 public slots:
66  void setPointTypeTable();
67 
69  void addPixelinTable();
70 
72  void removePixelFromTable();
73 
74  void removeSeedNumber(int, int);
75 
77  void savePixelList();
78 
80  void openPixelList();
81 
83  void manuallyModified(int, int);
84 
86  void updateTable();
87 
88 
89 protected:
90  Ui::MultiPickingWidget ui;
91 
96  void createItems(QList< QVector3D >* liste, QList<double>* valueList);
97 
100 
103 
104  QMap<camitk::ImageComponent*, PickedPixelMap*> map;
105 
107  void resizeGraphicalTable();
108 
109 };
110 
111 #endif // MULTIPLEPICKINGWIDGET_H
camitk::ImageComponent * img
the current Image Component
Definition: MultiPickingWidget.h:99
The manager of the Image Volume data.
Definition: ImageComponent.h:73
PickedPixelMap * pPM
the current PickedPixelMap
Definition: MultiPickingWidget.h:102
QMap< camitk::ImageComponent *, PickedPixelMap * > map
Definition: MultiPickingWidget.h:104
The multipicking action widget (a table with the pixel coordinates/3D indexes + some buttons to inter...
Definition: MultiPickingWidget.h:47
#define MULTIPICKING_API
Definition: MultiPickingAPI.h:50
Ui::MultiPickingWidget ui
Definition: MultiPickingWidget.h:90
This class is dedicated to manage an ImageComponent with a list of selected/picked pixels...
Definition: PickedPixelMap.h:53