Computer Assited Medical Intervention Tool Kit  version 5.0
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-2021 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 
57 public:
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 
107 private:
108 
110  QList<QVector3D>* pixelIndexList;
111 
113  QList<QVector3D>* coordIndexList;
114 
116  QList<QVector3D>* realCoordList;
117 
119  QList<double>* pixelValueList;
120 
122  camitk::ImageComponent* image;
123 
124 };
125 
126 #endif // PICKEDPIXELMAP_H
PickedPixelMap::getPixelValueList
QList< double > * getPixelValueList()
return the liste of pixel values
Definition: PickedPixelMap.cpp:98
CAMITK_WARNING_ALT
#define CAMITK_WARNING_ALT(MSG)
Definition: Log.h:267
PickedPixelMap::openPixelList
void openPixelList(QString fileName)
open a list of pixel in a given file base name (CSV format, separator = comma).
Definition: PickedPixelMap.cpp:202
PickedPixelMap::addPixel
void addPixel()
Allows one to add a pixel in the list using the last picked pixel.
Definition: PickedPixelMap.cpp:62
camitk::ImageComponent
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:77
PickedPixelMap.h
PickedPixelMap::~PickedPixelMap
virtual ~PickedPixelMap()
destructor
Definition: PickedPixelMap.cpp:46
PickedPixelMap::getRealWorldList
QList< QVector3D > * getRealWorldList()
return the list of coordinates in real world frame
Definition: PickedPixelMap.cpp:108
Log.h
MULTIPICKING_API
#define MULTIPICKING_API
Definition: MultiPickingAPI.h:50
PickedPixelMap::removePixel
void removePixel(int id)
Allows one to remove one pixel in the list.
Definition: PickedPixelMap.cpp:145
PickedPixelMap::PickedPixelMap
PickedPixelMap(camitk::ImageComponent *)
constructor
Definition: PickedPixelMap.cpp:36
MultiPickingAPI.h
PickedPixelMap::getImage
camitk::ImageComponent * getImage()
the managed ImageComponent
Definition: PickedPixelMap.cpp:264
PickedPixelMap::getCoordIndexList
QList< QVector3D > * getCoordIndexList()
return the list of coordinates pixel index
Definition: PickedPixelMap.cpp:94
PickedPixelMap::getPixelIndexList
QList< QVector3D > * getPixelIndexList()
return the list of pixel index
Definition: PickedPixelMap.cpp:103
PickedPixelMap::modifyPixel
void modifyPixel(int row)
Allows one to modify one pixel in the list.
Definition: PickedPixelMap.cpp:113
PickedPixelMap::savePixelList
void savePixelList(QString fileName)
save the list of pixel in a given file base name (CSV format, separator = comma).
Definition: PickedPixelMap.cpp:155
PickedPixelMap
This class is dedicated to manage an ImageComponent with a list of selected/picked pixels....
Definition: PickedPixelMap.h:53
PickedPixelMap::resetPixelList
void resetPixelList()
Empties the pixel list.
Definition: PickedPixelMap.cpp:269
ImageComponent.h
camitk
Definition: Action.cpp:35