This file is indexed.

/usr/include/camitk-3.3/actions/multipicking/PickedPixelMap.h is in libcamitk3-dev 3.3.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*****************************************************************************
 * $CAMITK_LICENCE_BEGIN$
 *
 * CamiTK - Computer Assisted Medical Intervention ToolKit
 * (c) 2001-2014 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
 *
 * Visit http://camitk.imag.fr for more information
 *
 * This file is part of CamiTK.
 *
 * CamiTK is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * CamiTK is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with CamiTK.  If not, see <http://www.gnu.org/licenses/>.
 *
 * $CAMITK_LICENCE_END$
 ****************************************************************************/

#ifndef PICKEDPIXELMAP_H
#define PICKEDPIXELMAP_H

#include <QWidget>
#include <qvector3d.h>

#include "MultiPickingAPI.h"
#include "ImageComponent.h"


/**
 * @ingroup group_sdk_actions_image_multipicking
 * 
 * @brief
 * This class is dedicated to manage an ImageComponent with a list of selected/picked pixels.
 * This class allows to manage a generic list of pixels too (add, remove, modify and save some points).
 *  
 */ 
class MULTIPICKING_API PickedPixelMap {

public:
  /// constructor
  PickedPixelMap (camitk::ImageComponent*);

  /// destructor
  virtual ~PickedPixelMap();

  /** Allows one to remove one pixel in the list
   * @param id the index in the list of the pixel to remove
   */
  void removePixel (int id);

  /** Allows one to modify one pixel in the list
   * @param row the index in the list of the pixel to modify using the last picked pixel
   */
  void modifyPixel (int row);

  /// Allows one to add a pixel in the list using the last picked pixel
  void addPixel();

  /** save the list of pixel in a given file base name (CSV format, separator = comma).
   *  ".csv" is automatically added if needed.
   * the format is : index (int) , i (int) , j (int) , k (int) , x (double) , y (double) , z (double)
   * @param fileName the location where the file will be saved
   */
  void savePixelList (QString fileName);

  /** open a list of pixel in a given file base name (CSV format, separator = comma).
   *  the format is : index (int) , i (int) , j (int) , k (int) , x (double) , y (double) , z (double)
   **/
  void openPixelList (QString fileName);

  /// return the list of pixel index
  QList<QVector3D>* getPixelIndexList();

  /// return the list of coordinates pixel index
  QList<QVector3D>* getCoordIndexList();

  /// return the liste of pixel values
  QList<double> * getPixelValueList();

  /// the managed ImageComponent
  camitk::ImageComponent* getImage();

  /// Empties the pixel list.
  void resetPixelList();

  /// Change pixel list (copy the one given in parameters)
  void changePixelIndexList(QList<QVector3D> * liste);

  /// Change pixel list from a list of real coordinates
  void changePixelIndexListFromRealCoordinates(QList<QVector3D> * listeOfRealCoords);


private:

  /** conversion pixel index to coordinates
   * @param i the first index pixel to retrieve x in coordinate
   * @param j the second index pixel to retrieve y in coordinate
   * @param k the third index pixel to retrieve z in coordinate
   */
  QVector3D convertIndexToCoordinates (int i, int j, int k);

  /** conversion pixel index to coordinates
   * @param x 
   * @param y 
   * @param z 
   */
  QVector3D convertCoordinatesToIndex (double x, double y, double z);

  /// this is a list of pixels (as i,j,k indexes in the 3 directions)
  QList<QVector3D> *pixelIndexList;

  /// ImageComponent where the pixels are clicked
  camitk::ImageComponent *image;

};

#endif // PICKEDPIXELMAP_H