This interface expose APIs to sort or apply permutation to a collection of objects implemented ILSortable interface.
More...
|
double | ColumnSpace [get, set] |
| The approximated column space used for array initialization. By default, it's set to 0, means we'll generate a proper value on the fly, based on the positions of the source points.
|
|
LPVPositionMode | PositionMode [get, set] |
| Specify which point is used as the source object's position.
|
|
double | RowSpace [get, set] |
| The approximated row space used for array initialization. By default, it's set to 0, means we'll generate a proper value on the fly, based on the positions of the source points.
|
|
double | ToleranceFactor [get, set] |
| The factor is used to control the filtering behavior for the source points which do not locate exactly on the array's grid. It's in range 0 ~ 1, the smaller factor indicates the stricter filtering. Set it to 1 means no filtering. By default, it's 0.5.
|
|
This interface expose APIs to sort or apply permutation to a collection of objects implemented ILSortable interface.
To use this interface, you should create a LSorter object.
Example Code
C++
Code snippets: snippets/Sort.cpp
ILMatchResultsPtr matchResults;
ILSorterPtr sorter = LSorter::Create();
sorter->RowSpace = 170;
sorter->ColumnSpace = 150;
sorter->ToleranceFactor = 1;
sorter->PositionMode = LPVPositionMode::LPVPosModeCenter;
ILSortedArrayPtr sortedArray;
LPVErrorCode err = sorter->SortToArray2(ILSortables::Cast(matchResults), &sortedArray);
LPVErrorCode
This enumeration represents the type of a LPV function error.
Definition: LPVCore.idl:530
C#
Code snippets: snippets/Sort.cs
LMatchResults matchResults;
LSorter sorter = new LSorter();
sorter.RowSpace = 170;
sorter.ColumnSpace = 150;
sorter.ToleranceFactor = 1;
LSortedArray sortedArray;
LPVErrorCode err = sorter.SortToArray2((ILSortables)matchResults, out sortedArray);
LPVPositionMode
This enumeration represents which point is used as a object's position, used in sorting.
Definition: LPVCore.idl:1259
COM
ILMatchResultsPtr matchResults;
ILSorterPtr sorter = LSorter::Create();
sorter->RowSpace = 170;
sorter->ColumnSpace = 150;
sorter->ToleranceFactor = 1;
sorter->PositionMode = LPVPositionMode::LPVPosModeCenter;
ILSortedArrayPtr sortedArray;
LPVErrorCode err = sorter->SortToArray2((ILSortablesPtr)matchResults, &sortedArray);