![]() |
IOLink C# 1.16.1
|
Public Member Functions | |
| Region3u64 (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
| override bool | Equals (object obj) |
| Region3u64 () | |
| Create an empty region. | |
| Region3u64 (Vector3u64 origin, Vector3u64 size) | |
| uint | GetDimensionCount () |
| Return number of dimension of this region. | |
| Vector3u64 | GetOrigin () |
| Return region's origin. | |
| Vector3u64 | GetSize () |
| uint | GetElementCount () |
| Vector3u64 | GetMin () |
| Vector3u64 | GetMax () |
| bool | GetEmpty () |
| bool | Contains (Region3u64 other) |
| bool | Contains (Vector3u64 position) |
| bool | Intersect (Region3u64 other) |
| Region3u64 | Intersection (Region3u64 other) |
| Region3u64 | ExtractSliceFromAxis (uint dimension, ulong origin) |
| Region3u64 (RegionXu64 other) | |
| string | ToString () |
| Return a string representation. | |
| Region3u64 (Region3u64 other) | |
Static Public Member Functions | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (Region3u64 obj) |
| static global::System.Runtime.InteropServices.HandleRef | swigRelease (Region3u64 obj) |
| static bool | operator== (Region3u64 v1, Region3u64 v2) |
| static bool | operator!= (Region3u64 v1, Region3u64 v2) |
| static bool | InternalEqual (Region3u64 v1, Region3u64 v2) |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
Protected Attributes | |
| bool | swigCMemOwn |
Properties | |
| uint | DimensionCount [get] |
The number of dimensions of this Region | |
| Vector3u64 | Origin [get] |
| The origin of the region. | |
| Vector3u64 | Size [get] |
The number of element in this Region along each dimension. | |
| Vector3u64 | Min [get] |
| The point of the region the closest to the coordinate system's origin. | |
| Vector3u64 | Max [get] |
| The point of the region the furthest to the coordinate system's origin. | |
| uint | ElementCount [get] |
| The number of elements in this region. | |
| bool | IsEmpty [get] |
| Checks if the region has no element in it. | |
A multi-dimensional region defined by its origin and its size. Origin is always the left-bottom corner 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:
|
inline |
Create a region with given origin and size
| origin | vector containing region origin |
| size | vector containing region size |
|
inline |
Returns if the current region contains the given one
| other | region to test if it is contained into current one |
|
inline |
Returns if the given region contains the given position vector
| position | point to test if it is contained into current one |
|
inline |
Returns a region of size one along one axis
| dimension | axis on which the slice must be selected |
| origin | position of slice in given dimension |
| InvalidArgument | if dimension or origin are out of range |
e.g. a 3D region {{0, 0, 0}, {5, 6, 7}}
|
inline |
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
|
inline |
Indicates if region is empty
|
inline |
return max region coordinates
|
inline |
return min region coordinates
|
inline |
return size of region
|
inline |
Returns if the given region intersects the given position vector
| other | region to test if it intersects with current one |
|
inline |
Returns the intersection region between current and given one
| other | region |