Public Member Functions | |
| RegionSelector (DisposableList< Region > regions) | |
| Creates a RegionSelector with a collection of Region objects. | |
| RegionSelector | SelectByArea (IntervalU interval) |
| Selects regions based on their area. | |
| RegionSelector | SelectByCenterOfGravityX (IntervalF interval) |
| Selects regions based on the x-coordinate of the center of gravity. | |
| RegionSelector | SelectByCenterOfGravityY (IntervalF interval) |
| Selects regions based on the y-coordinate of the center of gravity. | |
| RegionSelector | SelectByCenterOfGravityRectangle (RectangleF rect) |
| Selects regions based on whether their center of gravity lies within the given rectangle. | |
Data Fields | |
| readonly DisposableList< Region > | Regions |
| The currently selected regions. | |
Selects regions based on feature criteria.
Represents a region selector used to filter a specified set of regions based on features such as area or center of gravity. Used to select the regions the user is interested in.
Definition at line 19 of file RegionSelector.cs.
|
inline |
Creates a RegionSelector with a collection of Region objects.
| regions | Collection of Region objects to select from. Must not be null. |
Definition at line 34 of file RegionSelector.cs.
|
inline |
Selects regions based on their area.
Provides regions where: interval.minimum <= area(region) <= interval.maximum.
| interval | Interval to select by. Only positive values are allowed. |
Definition at line 53 of file RegionSelector.cs.
|
inline |
Selects regions based on whether their center of gravity lies within the given rectangle.
Provides regions where: rect.x <= x(region) <= rect.x + rect.width && rect.y <= y(region) <= rect.y + rect.height.
| rect | Rectangle to select by. |
Definition at line 124 of file RegionSelector.cs.
|
inline |
Selects regions based on the x-coordinate of the center of gravity.
Provides regions where: interval.minimum <= x(region) <= interval.maximum.
| interval | Interval to select by. |
Definition at line 74 of file RegionSelector.cs.
|
inline |
Selects regions based on the y-coordinate of the center of gravity.
Provides regions where: interval.minimum <= y(region) <= interval.maximum.
| interval | Interval to select by. |
Definition at line 95 of file RegionSelector.cs.
| readonly DisposableList<Region> Regions |
The currently selected regions.
Definition at line 25 of file RegionSelector.cs.