Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
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-2025 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, 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
91
94
97
100
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
void addPixel()
Allows one to add a pixel in the list using the last picked pixel.
Definition PickedPixelMap.cpp:62
QList< double > * getPixelValueList()
return the liste of pixel values
Definition PickedPixelMap.cpp:98
camitk::ImageComponent * getImage()
the managed ImageComponent
Definition PickedPixelMap.cpp:264
QList< QVector3D > * getCoordIndexList()
return the list of coordinates pixel index
Definition PickedPixelMap.cpp:94
void openPixelList(QString fileName)
open a list of pixel in a given file base name (CSV format, separator = comma).
Definition PickedPixelMap.cpp:202
void savePixelList(QString fileName)
save the list of pixel in a given file base name (CSV format, separator = comma).
Definition PickedPixelMap.cpp:155
void modifyPixel(int row)
Allows one to modify one pixel in the list.
Definition PickedPixelMap.cpp:113
PickedPixelMap(camitk::ImageComponent *)
constructor
Definition PickedPixelMap.cpp:36
void removePixel(int id)
Allows one to remove one pixel in the list.
Definition PickedPixelMap.cpp:145
QList< QVector3D > * getPixelIndexList()
return the list of pixel index
Definition PickedPixelMap.cpp:103
QList< QVector3D > * getRealWorldList()
return the list of coordinates in real world frame
Definition PickedPixelMap.cpp:108
void resetPixelList()
Empties the pixel list.
Definition PickedPixelMap.cpp:269
Definition PersistenceManager.h:30
The manager of the Image Volume data.
Definition ImageComponent.h:76