VivoQuant
|
Customizable view to allow various layout configurations of the displayed data. More...
Public Member Functions | |
bool | setLayoutSize (int rows, int cols) |
Reshape the layout (all merge will be lost) More... | |
bool | resetLayout () |
resetLayout Reset the layout to 1x1 and reset all data/plane. More... | |
bool | setHangProtocol (string name) |
Sets to the specified hanging protocol. More... | |
bool | setPlane (int row, int col, int plane) |
Adjust plane located at row,col. More... | |
bool | setData (int row, int col, int viewIndex, Index dataIndex) |
Select an image used at the specified viewport. More... | |
bool | removeData (int row, int col, int viewIndex) |
Remove an image used at the specified viewport. More... | |
int | getDataID (int row, int col, int viewIndex) |
Get DataList/DataManager top-level image indice for a specific viewport. More... | |
string | getDataIndexString (int row, int col, int viewIndex) |
Get DataList/DataManager images index as a string for a specific viewport. More... | |
int | getPlaneID (int row, int col) |
Get the plane ID at row,col (0:Coronal, 1:Sagittal, 2:Transverse) More... | |
int | getActiveRows () |
Get the number of rows in the layout. More... | |
int | getActiveColumns () |
Get the number of columns in the layout. More... | |
int | getMaxDim () |
Get the maximum possible dimension for row and col. More... | |
bool | isMerged (int row, int col) |
Check if the layout at row,col is a merged viewport. More... | |
bool | merge (int row, int col, int rowSpan, int colSpan) |
Merge the viewport at row,col (A span of 1 means no merge) More... | |
bool | split (int row, int col) |
Split the merged viewport at row,col. More... | |
bool | fullView (int row, int col, bool enabled) |
Sets the viewport at row,col to full view. More... | |
int | getSaveImageIndex (int row, int col) |
Gets the index of the viewport at row,col to be used with MainWin::saveImage() . More... | |
void | showAllROIs (bool enabled) |
Show all ROIs for all the viewport. | |
void | showROIs (int row, int col, bool enabled) |
Show ROIs for specified viewport. | |
bool | isShowingROIs (int row, int col) |
Get Show ROIs state for specified viewport. | |
Customizable view to allow various layout configurations of the displayed data.
This object can be used to configure the layout of the Multi View. It can also be used to change the selected data and the view plane. It also allows to change the hanging protocol used. Actions can be taken while any operators is loaded.
Rows and columns are indexed from 0. See also ScriptMaster::currentView() to obtain this object.
bool fullView | ( | int | row, |
int | col, | ||
bool | enabled | ||
) |
Sets the viewport at row,col to full view.
int getActiveColumns | ( | ) |
Get the number of columns in the layout.
int getActiveRows | ( | ) |
Get the number of rows in the layout.
int getDataID | ( | int | row, |
int | col, | ||
int | viewIndex | ||
) |
Get DataList/DataManager top-level image indice for a specific viewport.
row | row index in the layout |
col | column index in the layout |
viewIndex | should be 0:Reference, 1:Input1, 2:Input2 |
string getDataIndexString | ( | int | row, |
int | col, | ||
int | viewIndex | ||
) |
Get DataList/DataManager images index as a string for a specific viewport.
row | row index in the layout |
col | column index in the layout |
viewIndex | should be 0:Reference, 1:Input1, 2:Input2 |
int getMaxDim | ( | ) |
Get the maximum possible dimension for row and col.
int getPlaneID | ( | int | row, |
int | col | ||
) |
Get the plane ID at row,col (0:Coronal, 1:Sagittal, 2:Transverse)
int getSaveImageIndex | ( | int | row, |
int | col | ||
) |
Gets the index of the viewport at row,col to be used with MainWin::saveImage() .
bool isMerged | ( | int | row, |
int | col | ||
) |
Check if the layout at row,col is a merged viewport.
bool merge | ( | int | row, |
int | col, | ||
int | rowSpan, | ||
int | colSpan | ||
) |
Merge the viewport at row,col (A span of 1 means no merge)
bool removeData | ( | int | row, |
int | col, | ||
int | viewIndex | ||
) |
Remove an image used at the specified viewport.
row | row index in the layout |
col | column index in the layout |
viewIndex | should be 0:Reference, 1:Input1, 2:Input2 |
bool resetLayout | ( | ) |
resetLayout Reset the layout to 1x1 and reset all data/plane.
bool setData | ( | int | row, |
int | col, | ||
int | viewIndex, | ||
Index | dataIndex | ||
) |
Select an image used at the specified viewport.
row | row index in the layout |
col | column index in the layout |
viewIndex | should be 0:Reference, 1:Input1, 2:Input2 |
dataIndex | Index of data (see ScriptMaster::index()) |
bool setHangProtocol | ( | string | name | ) |
Sets to the specified hanging protocol.
name | The hanging protocol name |
bool setLayoutSize | ( | int | rows, |
int | cols | ||
) |
Reshape the layout (all merge will be lost)
rows | The number of rows for the layout |
cols | The number of columns for the layout |
bool setPlane | ( | int | row, |
int | col, | ||
int | plane | ||
) |
Adjust plane located at row,col.
plane | should be 0:Coronal, 1:Sagittal, 2:Transverse |
bool split | ( | int | row, |
int | col | ||
) |
Split the merged viewport at row,col.