LImageViewer::SelectCell
#include "ltwrappr.h"
L_INT LImageViewer::SelectCell (nCellIndex, bSelect, uFlags);
|
L_INT nCellIndex; |
/* index of the cell */ |
|
L_BOOL bSelect; |
/* selection flag*/ |
|
L_UINT uFlags; |
/* reserved for future use */ |
Selects or deselects the cell at the specified index. This function is available only in the Medical Imaging Suite toolkits.
|
Parameter |
Description |
|
|
nCellIndex |
A zero-based index of the cell for which to set the selection status. Pass -1 to apply this effect on all cells. Pass -2 to apply this effect on the selected cells. |
|
|
bSelect |
Flag that indicates whether to select or deselect the cell at the specified index. Possible values are: |
|
|
|
Value |
Meaning |
|
|
TRUE |
Select the cell at the specified index. |
|
|
FALSE |
Deselect the cell at the specified index. |
|
uFlags |
Reserved for future use. Pass 0. |
|
Returns
|
SUCCESS |
The function was successful. |
|
< 1 |
An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
|
LTIVW For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Example
The following example toggles the selection state:
L_INT LImageViewer_SelectCellExample(LImageViewer& ImageViewer)
{
// Get the cell count
L_INT nCount = ImageViewer.GetCellCount(0);
L_INT nI;
L_INT nRet = 0 ;
// if there is a selected cell, make it unselected and vice versa
for (nI = 0; nI < nCount; nI++)
{
nRet = ImageViewer.SelectCell(nI, !ImageViewer.IsCellSelected(nI, 0), 0);
if(nRet != SUCCESS)
return nRet;
}
return SUCCESS;
}