Computer Assited Medical Intervention Tool Kit  version 4.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-2016 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 PICKEDPIXELMAP_H
27 #define PICKEDPIXELMAP_H
28 
29 #include <QWidget>
30 #include <qvector3d.h>
31 
32 #include "MultiPickingAPI.h"
33 #include "ImageComponent.h"
34 
35 
53 
54 public:
57 
59  virtual ~PickedPixelMap();
60 
64  void removePixel (int id);
65 
69  void modifyPixel (int row);
70 
72  void addPixel();
73 
79  void savePixelList (QString fileName);
80 
84  void openPixelList (QString fileName);
85 
87  QList<QVector3D>* getPixelIndexList();
88 
90  QList<QVector3D>* getCoordIndexList();
91 
93  QList<QVector3D>* getRealWorldList();
94 
96  QList<double> * getPixelValueList();
97 
99  camitk::ImageComponent* getImage();
100 
102  void resetPixelList();
103 
104  // TODO CAMITK_DEPRECATED. This section list all the methods marked as deprecated. They are to be removed in CamiTK 4.0
107 
108  void changePixelIndexList(QList<QVector3D> * liste);
109 
110 
111  // TODO CAMITK_DEPRECATED. This section list all the methods marked as deprecated. They are to be removed in CamiTK 4.0
114 
115  void changePixelIndexListFromRealCoordinates(QList<QVector3D> * listeOfRealCoords);
116 
117 
118 private:
119 
120  // No more conversion in this class. Conversions are asked to ImageComponent while picking...
121 // /** conversion pixel index to coordinates
122 // * @param i the first index pixel to retrieve x in coordinate
123 // * @param j the second index pixel to retrieve y in coordinate
124 // * @param k the third index pixel to retrieve z in coordinate
125 // */
126 // QVector3D convertIndexToCoordinates (int i, int j, int k);
127 //
128 // /** conversion pixel index to coordinates
129 // * @param x
130 // * @param y
131 // * @param z
132 // */
133 // QVector3D convertCoordinatesToIndex (double x, double y, double z);
134 
136  QList<QVector3D> *pixelIndexList;
137 
139  QList<QVector3D> *coordIndexList;
140 
142  QList<QVector3D> *realCoordList;
143 
145  QList<double> *pixelValueList;
146 
149 
150 };
151 
152 #endif // PICKEDPIXELMAP_H
camitk::ImageComponent * image
ImageComponent where the pixels are clicked.
Definition: PickedPixelMap.h:148
QList< QVector3D > * realCoordList
list of corresponding coordinates in real world frame.
Definition: PickedPixelMap.h:142
The manager of the Image Volume data.
Definition: ImageComponent.h:69
QList< QVector3D > * coordIndexList
list of corresponding image coordinates, i.e. taking voxel size into account, but in the local frame ...
Definition: PickedPixelMap.h:139
QList< double > * pixelValueList
list of corresponding pixel values
Definition: PickedPixelMap.h:145
QList< QVector3D > * pixelIndexList
conversion pixel index to coordinates
Definition: PickedPixelMap.h:136
#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:52