|
|
| Region2u64 (global::System.IntPtr cPtr, bool cMemoryOwn) |
| |
|
void | Dispose () |
| |
|
override bool | Equals (object obj) |
| |
|
| Region2u64 () |
| | Create an empty region.
|
| |
| | Region2u64 (Vector2u64 origin, Vector2u64 size) |
| | Create a region with given origin and size.
|
| |
|
uint | GetDimensionCount () |
| | Return number of dimension of this region.
|
| |
|
Vector2u64 | GetOrigin () |
| | Return region's origin.
|
| |
| Vector2u64 | GetSize () |
| | return size of region
|
| |
|
uint | GetElementCount () |
| | Return number of elements (pixel, voxel, samples) contained in the region. For Integer-indexed-regions, it return product of each dimensions. This method has no sense for Float-indexed-regions and thus return 0.
|
| |
| Vector2u64 | GetMin () |
| | return min region coordinates
|
| |
| Vector2u64 | GetMax () |
| | return max region coordinates
|
| |
| bool | GetEmpty () |
| | Indicates if region is empty.
|
| |
| bool | Contains (Region2u64 other) |
| | Returns if the current region contains the given one.
|
| |
| bool | Contains (Vector2u64 position) |
| | Returns if the given region contains the given position vector.
|
| |
| bool | Intersect (Region2u64 other) |
| | Returns if the given region intersects the given position vector.
|
| |
| Region2u64 | Intersection (Region2u64 other) |
| | Returns the intersection region between current and given one.
|
| |
| Region2u64 | ExtractSliceFromAxis (uint dimension, ulong origin) |
| | Returns a region of size one along one axis.
|
| |
|
| Region2u64 (RegionXu64 other) |
| |
|
string | ToString () |
| | Return a string representation.
|
| |
|
| Region2u64 (Region2u64 other) |
| |
A multi-dimensional region defined by its origin and its size.
Origin is always the left-bottom corner of the region.
- Parameters
-
| T | The type of region indexers |
| N | The dimension of the region. |
Region definition is different according to its indexer type. Float-indexed-regions are defined from origin point (Org) to Max = Org + region size. Integer-indexed-regions are defined from Org to Max = Org + region size - 1
Up-boundaries are not included for integer-indexers-regions (except when size is 0 and region is a point).
Up-boundaries are included for float-indexers-regions.
Aliases can be used to made this class more practical to use. They use the following convention: RegionNX
Where N is the dimension and X the type. The types currently available are:
- F for single precision floats.
- D for double precision floats.
- U64 for uint64_t.
Examples:
- Region2u64: 2 dimensional uint64_t region.
| Region2u64 IOLink.Region2u64.ExtractSliceFromAxis |
( |
uint |
dimension, |
|
|
ulong |
origin |
|
) |
| |
|
inline |
Returns a region of size one along one axis.
- Parameters
-
| dimension | axis on which the slice must be selected |
| origin | position of slice in given dimension |
- Returns
- the slice at given position for given dimension
- Exceptions
-
| InvalidArgument | if dimension or origin are out of range |
e.g. a 3D region {{0, 0, 0}, {5, 6, 7}}
- extractSliceFromAxis(0, 3) returns 3D region {{3, 0, 0}, {1, 6, 7}}
- extractSliceFromAxis(1, 4) returns 3D region {{0, 4, 0}, {5, 1, 7}}
- extractSliceFromAxis(2, 5) returns 3D region {{0, 0, 5}, {5, 6, 1}}
e.g. a 3D region with non-null origin { {2, 3, 4}, {5, 6, 7}}
extractSliceFromAxis(0, 3) returns 3D region {{5, 3, 4}, {1, 6, 7}}