|
double | AvgColumnSpace [get] |
| The average column space between objects in the array.
|
|
double | AvgRowSpace [get] |
| The average row space between objects in the array.
|
|
int | ColumnCount [get] |
| The count of columns after sorting.
|
|
ILLine | ColumnLine (int columnIndex) [get] |
| The column line of the given index. It's the fitting result of all positions on the column. More...
|
|
int | FilteredCount [get] |
| The count of the filtered objects after sorting. More...
|
|
BOOL | HasItem (int columnIndex, int rowIndex) [get] |
| Query the presence of object for the given column and row index after sorting. More...
|
|
ILSortable | Item (int columnIndex, int rowIndex) [get] |
| Get the object for the given column and row index after sorting. More...
|
|
ILSortable | ItemFiltered (int index) [get] |
| Get the filtered object after sorting. More...
|
|
ILPoint | Position (int columnIndex, int rowIndex) [get] |
| Get the position point for the given column and row index after sorting. If there is an object for the given indexes, the position of the object is returned; otherwise, the intersection point of the corresponding column and row line is returned. More...
|
|
int | RowCount [get] |
| The count of rows after sorting.
|
|
ILLine | RowLine (int rowIndex) [get] |
| The row line of the given index. It's the fitting result of all positions on the row. More...
|
|
This interface holds the array-sorting result.
Usually you get the LSortedArray object from the ILSorter::SortToArray() as sorting result. You can then use this interface for row and column indexing and metrics calculation.
Example Code
C++
ILSortedArrayPtr sortedArray;
LPVErrorCode err = sorter->SortToArray(LPVPositionMode::LPVPosModeCenter, 20, 10, 1, &sortedArray);
if (err != LPVErrorCode::LPVNoError) return;
for (int j = 0; j < sorter->RowCount; ++j) {
for (int i = 0; i < sorter->ColumnCount; ++i) {
bool hasItem = sorter->GetHasItem(i, j);
if (hasItem) {
ILRegionPtr sortedRegion = LRectRegion::Cast(sorter->GetItem(i, j));
}
else {
ILPointPtr missingPosition = sorter->GetPosition(i, j);
}
}
}
LPVErrorCode
This enumeration represents the type of a LPV function error.
Definition: LPVCore.idl:530
C#
LSortedArray sortedArray;
for (int j = 0; j < sorter.RowCount; ++j) {
for (int i = 0; i < sorter.ColumnCount; ++i) {
bool hasItem = sorter.HasItem[i][j];
if (hasItem) {
LRegion sortedRegion = sorter.Item[i][j];
}
else {
LPoint missingPosition = sorter.Position[i][j];
}
}
}
LPVPositionMode
This enumeration represents which point is used as a object's position, used in sorting.
Definition: LPVCore.idl:1259
COM
ILSortedArrayPtr sortedArray;
LPVErrorCode err = sorter->SortToArray(LPVPositionMode::LPVPosModeCenter, 20, 10, 1, &sortedArray);
if (err != LPVErrorCode::LPVNoError) return;
for (int j = 0; j < sorter->RowCount; ++j) {
for (int i = 0; i < sorter->ColumnCount; ++i) {
BOOL hasItem = sorter->HasItem[i][j];
if (hasItem) {
ILRegionPtr sortedRegion = sorter->Item[i][j];
}
else {
ILPointPtr missingPosition = sorter->Position[i][j];
}
}
}