Views
Gadgets Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvMatrixRowSelection Class Reference

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

Detailed Description

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.

See also
IlvMatrixCoordinate, IlvMatrixSelection

Constructor & Destructor Documentation

◆ IlvMatrixRowSelection()

IlvMatrixRowSelection::IlvMatrixRowSelection ( IlUShort  row = 0,
IlUShort  col1 = 0,
IlUShort  col2 = 0 
)

Constructor.

Initializes a new instance of the class IlvMatrixRowSelection.

Parameters
rowThe row of the selected matrix items.
col1The column of the first selected matrix item.
col2The column of the last selected matrix item. All items between columns col1 and col2 are also considered to be selected.

Member Function Documentation

◆ getColumnCount()

IlUShort IlvMatrixRowSelection::getColumnCount ( ) const

Returns the selected matrix item count.

Returns
The selected matrix item count.

◆ getFirstColumn()

IlUShort IlvMatrixRowSelection::getFirstColumn ( ) const

Returns the column of the first selected matrix item.

Returns
The column of the first selected matrix item.

◆ getLastColumn()

IlUShort IlvMatrixRowSelection::getLastColumn ( ) const

Returns the column of the last selected matrix item.

Returns
The column of the last selected matrix item.

◆ getRow()

IlUShort IlvMatrixRowSelection::getRow ( ) const

Returns the row of the selected matrix item.

Returns
The row of the selected matrix item.