Computer Assisted Medical Intervention Tool Kit  version 5.1
PickedPixelMap.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2023 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
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 PICKEDPIXELMAP_H
27#define PICKEDPIXELMAP_H
28
29#include <QWidget>
30#include <QVector3D>
31#include <QCoreApplication>
32
33#include "MultiPickingAPI.h"
34#include "ImageComponent.h"
35
36
54
55 Q_DECLARE_TR_FUNCTIONS(PickedPixelMap)
56
57public:
60
62 virtual ~PickedPixelMap();
63
67 void removePixel(int id);
68
72 void modifyPixel(int row);
73
75 void addPixel();
76
82 void savePixelList(QString fileName);
83
87 void openPixelList(QString fileName);
88
90 QList<QVector3D>* getPixelIndexList();
91
93 QList<QVector3D>* getCoordIndexList();
94
96 QList<QVector3D>* getRealWorldList();
97
99 QList<double>* getPixelValueList();
100
102 camitk::ImageComponent* getImage();
103
105 void resetPixelList();
106
107private:
108
110 QList<QVector3D>* pixelIndexList;
111
113 QList<QVector3D>* coordIndexList;
114
116 QList<QVector3D>* realCoordList;
117
119 QList<double>* pixelValueList;
120
123
124};
125
126#endif // PICKEDPIXELMAP_H
#define MULTIPICKING_API
Definition: MultiPickingAPI.h:50
This class is dedicated to manage an ImageComponent with a list of selected/picked pixels.
Definition: PickedPixelMap.h:53
The manager of the Image Volume data.
Definition: ImageComponent.h:77