|
VivoQuant 6.4.0
|
Object to access the functions of a check list table.
This object can be used to manipulate the items of a check list widget.
Obtain this object from the Multi-Atlas Segmentation Tool with VQ.MASTool().getROIsList(), VQ.MASTool().getModalitiesList() or VQ.MASTool().getImagesList().
Public Member Functions | |
| int | rowCount (Index parent=Index()) |
| Get the number of rows of the list. | |
| int | columnCount (Index parent=Index()) |
| Get the number of columns of the list. | |
| void | setHeader (string h1, string h2) |
| Sets the header title of both column. | |
| void | setHeader (int col, string h) |
| Sets the header title of a given column. | |
| void | addRow (bool checked, string name) |
| Add a new row to the list. | |
| void | removeAllRows () |
| Clear the list of all rows. | |
| bool | getChecked (int index) |
| Get the checked state of a row by index. | |
| bool | getChecked (string name) |
| Get the checked state of a row by name. | |
| bool | setChecked (int row, bool checked) |
| Check a row by index. | |
| bool | setChecked (string name, bool checked) |
| Check a row by index. | |
| string | getName (int index) |
| Get the name of a given row. | |
| Variant | getElement (int row, int col) |
| Get extra element value of a given cell. | |
| void | setElement (int row, int col, Variant value) |
| Set an extra element value of a given cell. | |
| void addRow | ( | bool | checked, |
| string | name ) |
Add a new row to the list.
| checked | The checked state of the row |
| name | The row name |
| int columnCount | ( | Index | parent = Index() | ) |
Get the number of columns of the list.
| bool getChecked | ( | int | index | ) |
Get the checked state of a row by index.
| index | The row index (0-based) |
| bool getChecked | ( | string | name | ) |
Get the checked state of a row by name.
| name | The row name |
| Variant getElement | ( | int | row, |
| int | col ) |
Get extra element value of a given cell.
| row | The cell row index (0-based) |
| col | The cell col index (0-based) |
| string getName | ( | int | index | ) |
Get the name of a given row.
| index | The index of the row to the name from |
| int rowCount | ( | Index | parent = Index() | ) |
Get the number of rows of the list.
| bool setChecked | ( | int | row, |
| bool | checked ) |
Check a row by index.
| row | The row index (0-based) |
| checked | The checked state |
| bool setChecked | ( | string | name, |
| bool | checked ) |
Check a row by index.
| name | The row name |
| checked | The checked state |
| void setElement | ( | int | row, |
| int | col, | ||
| Variant | value ) |
Set an extra element value of a given cell.
| row | The cell row index (0-based) |
| col | The cell col index (0-based) |
| value | the variant element |
| void setHeader | ( | int | col, |
| string | h ) |
Sets the header title of a given column.
| col | The column index (0-based) |
| h | The title string |
| void setHeader | ( | string | h1, |
| string | h2 ) |
Sets the header title of both column.
| h1 | The title of the first column |
| h2 | The title of the second column |