Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MultiPickingWidget Class Reference

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

#include <MultiPickingWidget.h>

Public Slots

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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

MultiPickingWidget::MultiPickingWidget ( QWidget *  parent = 0)

basic constructor

References img, pPM, and ui.

MultiPickingWidget::~MultiPickingWidget ( )
virtual

destructor

Member Function Documentation

void MultiPickingWidget::addPixelinTable ( )
slot

Slot called when the button add is clicked.

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

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

allows to construct the table

Parameters
listethe * list to display in the QtableWidget

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

PickedPixelMap * MultiPickingWidget::getPickedPixelMap ( ImageComponent image)

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

References map.

Referenced by RegionGrowingWidget::getSeedPoints().

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

Slot called when open CSV file button is clicked.

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

void MultiPickingWidget::removePixelFromTable ( )
slot

Slot called when remove button is clicked.

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

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

allows to resize the QtableWidget

References NB_TABLE_COLUMNS, and ui.

Referenced by updateTable().

void MultiPickingWidget::savePixelList ( )
slot

Slot called when save as button is clicked.

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

void MultiPickingWidget::setPointTypeTable ( )
slot

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

References updateTable().

void MultiPickingWidget::updateComponent ( 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(), and RegionGrowingWidget::updateComponent().

void MultiPickingWidget::updateTable ( )
slot

Member Data Documentation

ImageComponent* MultiPickingWidget::img
protected
QMap<ImageComponent *, PickedPixelMap *> MultiPickingWidget::map
protected
PickedPixelMap* MultiPickingWidget::pPM
protected
Ui::MultiPickingWidget MultiPickingWidget::ui
protected

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