Computer Assited Medical Intervention Tool Kit  version 5.0
MultiPickingWidget Class Reference

The multipicking action widget (a table with the pixel coordinates/3D indexes + some buttons to interact with it) More...

#include <MultiPickingWidget.h>

+ Inheritance diagram for MultiPickingWidget:
+ Collaboration diagram for MultiPickingWidget:

Public Slots

void addPixelinTable ()
 Slot called when the button add is clicked. More...
 
void manuallyModified (int, int)
 Slot called when the user manually changes a value in the table. More...
 
void openPixelList ()
 Slot called when open CSV file button is clicked. More...
 
void removePixelFromTable ()
 Slot called when remove button is clicked. More...
 
void removeSeedNumber (int, int)
 
void savePixelList ()
 Slot called when save as button is clicked. More...
 
void setPointTypeTable ()
 Slot called when the state of the radioButton pixel index changed. More...
 
void updateTable ()
 Update the tableWidget when it's necessary. More...
 

Public Member Functions

PickedPixelMapgetPickedPixelMap (camitk::ImageComponent *image)
 Give the picked pixel map (for other actions needing picking) More...
 
 MultiPickingWidget (QWidget *parent=nullptr)
 basic constructor More...
 
void updateComponent (camitk::ImageComponent *image)
 Update the widget with the correct PickedPixelMap (ImageComponent + Qlist of the selected points) More...
 
 ~MultiPickingWidget () override=default
 destructor More...
 

Protected Member Functions

void createItems (QList< QVector3D > *liste, QList< double > *valueList)
 allows one to construct the table More...
 
void resizeGraphicalTable ()
 allows one to resize the QtableWidget More...
 

Protected Attributes

camitk::ImageComponentimg
 the current Image Component More...
 
QMap< camitk::ImageComponent *, PickedPixelMap * > map
 
PickedPixelMappPM
 the current PickedPixelMap More...
 
Ui::MultiPickingWidget ui
 

Detailed Description

The multipicking action widget (a table with the pixel coordinates/3D indexes + some buttons to interact with it)

Constructor & Destructor Documentation

◆ MultiPickingWidget()

MultiPickingWidget::MultiPickingWidget ( QWidget *  parent = nullptr)

basic constructor

References img, pPM, and ui.

◆ ~MultiPickingWidget()

MultiPickingWidget::~MultiPickingWidget ( )
overridedefault

destructor

Member Function Documentation

◆ addPixelinTable

void MultiPickingWidget::addPixelinTable ( )
slot

Slot called when the button add is clicked.

References PickedPixelMap::addPixel(), pPM, and updateTable().

+ Here is the call graph for this function:

◆ createItems()

void MultiPickingWidget::createItems ( QList< QVector3D > *  liste,
QList< double > *  valueList 
)
protected

allows one to construct the table

Parameters
listethe * list to display in the QtableWidget
valueListthe pointer to the values

References EDIT_TABLE_FILE, EDIT_TABLE_INDEX, REMOVE_TABLE_FILE, REMOVE_TABLE_INDEX, ui, VALUE_TABLE_INDEX, VIEW_TABLE_FILE, VIEW_TABLE_INDEX, X_TABLE_INDEX, Y_TABLE_INDEX, and Z_TABLE_INDEX.

Referenced by updateTable().

+ Here is the caller graph for this function:

◆ getPickedPixelMap()

PickedPixelMap * MultiPickingWidget::getPickedPixelMap ( camitk::ImageComponent image)

Give the picked pixel map (for other actions needing picking)

References map.

Referenced by BoxVOIWidget::getSeedPoints(), and RegionGrowingWidget::getSeedPoints().

+ Here is the caller graph for this function:

◆ manuallyModified

void MultiPickingWidget::manuallyModified ( int  i,
int  j 
)
slot

Slot called when the user manually changes a value in the table.

References CAMITK_WARNING, camitk::ImageComponent::getAxialSlices(), camitk::ImageComponent::getImageData(), camitk::Component::getName(), img, PickedPixelMap::modifyPixel(), camitk::ImageComponent::pixelPicked(), pPM, camitk::refresh(), camitk::Component::setSlice, ui, updateTable(), VALUE_TABLE_INDEX, X_TABLE_INDEX, Y_TABLE_INDEX, and Z_TABLE_INDEX.

+ Here is the call graph for this function:

◆ openPixelList

void MultiPickingWidget::openPixelList ( )
slot

Slot called when open CSV file button is clicked.

References PickedPixelMap::openPixelList(), pPM, and updateTable().

+ Here is the call graph for this function:

◆ removePixelFromTable

void MultiPickingWidget::removePixelFromTable ( )
slot

Slot called when remove button is clicked.

References pPM, camitk::refresh(), PickedPixelMap::removePixel(), ui, and updateTable().

+ Here is the call graph for this function:

◆ removeSeedNumber

void MultiPickingWidget::removeSeedNumber ( int  i,
int  j 
)
slot

References EDIT_TABLE_INDEX, camitk::ImageComponent::getImageData(), PickedPixelMap::getPixelIndexList(), img, PickedPixelMap::modifyPixel(), camitk::ImageComponent::pixelPicked(), pPM, camitk::refresh(), REMOVE_TABLE_INDEX, PickedPixelMap::removePixel(), ui, updateTable(), and VIEW_TABLE_INDEX.

+ Here is the call graph for this function:

◆ resizeGraphicalTable()

void MultiPickingWidget::resizeGraphicalTable ( )
protected

allows one to resize the QtableWidget

References NB_TABLE_COLUMNS, and ui.

Referenced by updateTable().

+ Here is the caller graph for this function:

◆ savePixelList

void MultiPickingWidget::savePixelList ( )
slot

Slot called when save as button is clicked.

References camitk::ImageComponent::getImageName(), img, pPM, and PickedPixelMap::savePixelList().

+ Here is the call graph for this function:

◆ setPointTypeTable

void MultiPickingWidget::setPointTypeTable ( )
slot

Slot called when the state of the radioButton pixel index changed.

References updateTable().

+ Here is the call graph for this function:

◆ updateComponent()

void MultiPickingWidget::updateComponent ( camitk::ImageComponent image)

Update the widget with the correct PickedPixelMap (ImageComponent + Qlist of the selected points)

References img, map, pPM, and updateTable().

Referenced by MultiPicking::getWidget(), BoxVOIWidget::updateComponent(), and RegionGrowingWidget::updateComponent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateTable

void MultiPickingWidget::updateTable ( )
slot

Update the tableWidget when it's necessary.

References createItems(), PickedPixelMap::getCoordIndexList(), PickedPixelMap::getPixelIndexList(), PickedPixelMap::getPixelValueList(), PickedPixelMap::getRealWorldList(), HEADER_TABLE_IMG, HEADER_TABLE_REAL, HEADER_TABLE_VOXEL, NB_TABLE_COLUMNS, pPM, resizeGraphicalTable(), and ui.

Referenced by addPixelinTable(), manuallyModified(), openPixelList(), removePixelFromTable(), removeSeedNumber(), setPointTypeTable(), and updateComponent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ img

camitk::ImageComponent* MultiPickingWidget::img
protected

◆ map

QMap<camitk::ImageComponent*, PickedPixelMap*> MultiPickingWidget::map
protected

◆ pPM

◆ ui

Ui::MultiPickingWidget MultiPickingWidget::ui
protected

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