Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PickedPixelMap Class Reference

This class is dedicated to manage an ImageComponent with a list of selected/picked pixels. More...

#include <PickedPixelMap.h>

Public Member Functions

void addPixel ()
 Allows one to add a pixel in the list using the last picked pixel. More...
 
void changePixelIndexList (QList< QVector3D > *liste)
 Change pixel list (copy the one given in parameters) More...
 
void changePixelIndexListFromRealCoordinates (QList< QVector3D > *listeOfRealCoords)
 Change pixel list from a list of real coordinates. More...
 
QList< QVector3D > * getCoordIndexList ()
 return the list of coordinates pixel index More...
 
camitk::ImageComponentgetImage ()
 the managed ImageComponent More...
 
QList< QVector3D > * getPixelIndexList ()
 return the list of pixel index More...
 
QList< double > * getPixelValueList ()
 return the liste of pixel values More...
 
void modifyPixel (int row)
 Allows one to modify one pixel in the list. More...
 
void openPixelList (QString fileName)
 open a list of pixel in a given file base name (CSV format, separator = comma). More...
 
 PickedPixelMap (camitk::ImageComponent *)
 constructor More...
 
void removePixel (int id)
 Allows one to remove one pixel in the list. More...
 
void resetPixelList ()
 Empties the pixel list. More...
 
void savePixelList (QString fileName)
 save the list of pixel in a given file base name (CSV format, separator = comma). More...
 
virtual ~PickedPixelMap ()
 destructor More...
 

Private Member Functions

QVector3D convertCoordinatesToIndex (double x, double y, double z)
 conversion pixel index to coordinates More...
 
QVector3D convertIndexToCoordinates (int i, int j, int k)
 conversion pixel index to coordinates More...
 

Private Attributes

camitk::ImageComponentimage
 ImageComponent where the pixels are clicked. More...
 
QList< QVector3D > * pixelIndexList
 this is a list of pixels (as i,j,k indexes in the 3 directions) More...
 

Detailed Description

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).

Constructor & Destructor Documentation

PickedPixelMap::PickedPixelMap ( camitk::ImageComponent )

constructor

virtual PickedPixelMap::~PickedPixelMap ( )
virtual

destructor

Member Function Documentation

void PickedPixelMap::addPixel ( )

Allows one to add a pixel in the list using the last picked pixel.

void PickedPixelMap::changePixelIndexList ( QList< QVector3D > *  liste)

Change pixel list (copy the one given in parameters)

void PickedPixelMap::changePixelIndexListFromRealCoordinates ( QList< QVector3D > *  listeOfRealCoords)

Change pixel list from a list of real coordinates.

QVector3D PickedPixelMap::convertCoordinatesToIndex ( double  x,
double  y,
double  z 
)
private

conversion pixel index to coordinates

Parameters
x
y
z
QVector3D PickedPixelMap::convertIndexToCoordinates ( int  i,
int  j,
int  k 
)
private

conversion pixel index to coordinates

Parameters
ithe first index pixel to retrieve x in coordinate
jthe second index pixel to retrieve y in coordinate
kthe third index pixel to retrieve z in coordinate
QList<QVector3D>* PickedPixelMap::getCoordIndexList ( )

return the list of coordinates pixel index

camitk::ImageComponent* PickedPixelMap::getImage ( )

the managed ImageComponent

QList<QVector3D>* PickedPixelMap::getPixelIndexList ( )

return the list of pixel index

QList<double>* PickedPixelMap::getPixelValueList ( )

return the liste of pixel values

void PickedPixelMap::modifyPixel ( int  row)

Allows one to modify one pixel in the list.

Parameters
rowthe index in the list of the pixel to modify using the last picked pixel
void PickedPixelMap::openPixelList ( 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 PickedPixelMap::removePixel ( int  id)

Allows one to remove one pixel in the list.

Parameters
idthe index in the list of the pixel to remove
void PickedPixelMap::resetPixelList ( )

Empties the pixel list.

void PickedPixelMap::savePixelList ( QString  fileName)

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)

Parameters
fileNamethe location where the file will be saved

Member Data Documentation

camitk::ImageComponent* PickedPixelMap::image
private

ImageComponent where the pixels are clicked.

QList<QVector3D>* PickedPixelMap::pixelIndexList
private

this is a list of pixels (as i,j,k indexes in the 3 directions)


The documentation for this class was generated from the following file: