Matrix row selection class. More...
#include <ilviews/gadgets/matsel.h>
Public Member Functions | |
IlvMatrixRowSelection (IlUShort row=0, IlUShort col1=0, IlUShort col2=0) | |
Constructor. More... | |
IlUShort | getColumnCount () const |
Returns the selected matrix item count. More... | |
IlUShort | getFirstColumn () const |
Returns the column of the first selected matrix item. More... | |
IlUShort | getLastColumn () const |
Returns the column of the last selected matrix item. More... | |
IlUShort | getRow () const |
Returns the row of the selected matrix item. More... | |
Matrix row selection class.
Library: ilvadvgdt
This class is used to store selected matrix items from a row. If two selected items are separated by at least one unselected item, each selected item will be stored into a specific instance of IlvMatrixRowSelection
.
IlvMatrixCoordinate
, IlvMatrixSelection
IlvMatrixRowSelection::IlvMatrixRowSelection | ( | IlUShort | row = 0 , |
IlUShort | col1 = 0 , |
||
IlUShort | col2 = 0 |
||
) |
Constructor.
Initializes a new instance of the class IlvMatrixRowSelection
.
row | The row of the selected matrix items. |
col1 | The column of the first selected matrix item. |
col2 | The column of the last selected matrix item. All items between columns col1 and col2 are also considered to be selected. |
IlUShort IlvMatrixRowSelection::getColumnCount | ( | ) | const |
Returns the selected matrix item count.
IlUShort IlvMatrixRowSelection::getFirstColumn | ( | ) | const |
Returns the column of the first selected matrix item.
IlUShort IlvMatrixRowSelection::getLastColumn | ( | ) | const |
Returns the column of the last selected matrix item.
IlUShort IlvMatrixRowSelection::getRow | ( | ) | const |
Returns the row of the selected matrix item.