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... | |
QList< QVector3D > * | getCoordIndexList () |
return the list of coordinates pixel index More... | |
camitk::ImageComponent * | getImage () |
the managed ImageComponent More... | |
QList< QVector3D > * | getPixelIndexList () |
return the list of pixel index More... | |
QList< double > * | getPixelValueList () |
return the liste of pixel values More... | |
QList< QVector3D > * | getRealWorldList () |
return the list of coordinates in real world frame 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... | |
This class is dedicated to manage an ImageComponent with a list of selected/picked pixels.
This class allows one to manage a generic list of pixels too (add, remove, modify and save some points).
Since Frame Usage in CamiTK, PickedPixelMap stores 4 lists:
No convertion between the lists is done in this class. These conversions are done at pixel clickin by the ImageComponent.
PickedPixelMap::PickedPixelMap | ( | camitk::ImageComponent * | imageComp | ) |
constructor
|
virtual |
destructor
void PickedPixelMap::addPixel | ( | ) |
Allows one to add a pixel in the list using the last picked pixel.
Referenced by MultiPickingWidget::addPixelinTable().
QList< QVector3D > * PickedPixelMap::getCoordIndexList | ( | ) |
return the list of coordinates pixel index
Referenced by MultiPickingWidget::updateTable().
ImageComponent * PickedPixelMap::getImage | ( | ) |
the managed ImageComponent
QList< QVector3D > * PickedPixelMap::getPixelIndexList | ( | ) |
return the list of pixel index
Referenced by RegionGrowingWidget::getSeedPoints(), BoxVOIWidget::getSeedPoints(), MultiPickingWidget::removeSeedNumber(), and MultiPickingWidget::updateTable().
QList< double > * PickedPixelMap::getPixelValueList | ( | ) |
return the liste of pixel values
Referenced by MultiPickingWidget::updateTable().
QList< QVector3D > * PickedPixelMap::getRealWorldList | ( | ) |
return the list of coordinates in real world frame
Referenced by MultiPickingWidget::updateTable().
void PickedPixelMap::modifyPixel | ( | int | row | ) |
Allows one to modify one pixel in the list.
row | the index in the list of the pixel to modify using the last picked pixel |
Referenced by MultiPickingWidget::manuallyModified(), and MultiPickingWidget::removeSeedNumber().
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)
References CAMITK_WARNING_ALT.
Referenced by MultiPickingWidget::openPixelList().
void PickedPixelMap::removePixel | ( | int | id | ) |
Allows one to remove one pixel in the list.
id | the index in the list of the pixel to remove |
Referenced by MultiPickingWidget::removePixelFromTable(), and MultiPickingWidget::removeSeedNumber().
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)
fileName | the location where the file will be saved |
Referenced by MultiPickingWidget::savePixelList().