Implementation of a class representing an interval (and implementing the libCZI::IDimBounds
-interface).
More...
#include <libCZI_DimCoordinate.h>
Implementation of a class representing an interval (and implementing the libCZI::IDimBounds
-interface).
◆ CDimBounds() [1/2]
libCZI::CDimBounds::CDimBounds |
( |
const IDimBounds * |
other | ) |
|
|
inlineexplicit |
Constructor which copies the content of the specified IDimBounds-object.
- Parameters
-
other | The IDimBounds-object to copy information from. |
◆ CDimBounds() [2/2]
Construct a libCZI::CDimBounds object from an initializer-list.
- Parameters
-
list | The list of "dimension, start and size". |
◆ Clear()
Clears the validity of the specified dimension.
- Parameters
-
◆ EnumValidDimensions()
void libCZI::CDimBounds::EnumValidDimensions |
( |
const std::function< bool(libCZI::DimensionIndex dim, int start, int size)> & |
func | ) |
const |
|
inline |
Enumerate valid dimensions.
- Parameters
-
func | The functor which will be called for all valid dimensions. |
◆ IsEmpty()
bool libCZI::CDimBounds::IsEmpty |
( |
| ) |
const |
|
inline |
Query if this object is empty - no valid dimensions contained.
- Returns
- True if empty, false if not.
◆ Parse()
static CDimBounds libCZI::CDimBounds::Parse |
( |
const char * |
str | ) |
|
|
static |
Parse the specified string and construct a CDimBounds-object from the information. The syntax for the string is - a character identifying the dimension (one of 'Z', 'C', 'T', 'R', 'S', 'I', 'H', 'V', 'B') followed by an integer (possibly with a + or -) specifying the start-index, followed by a colon ':', then followed by an integer specifying the size. There can be more than one dimension given, in which case the above sequence is repeated for a different dimension. It is illegal to give the same dimension multiple times. Examples: "T0:10", "T0:5Z0:10", "C0:2T0:10Z0:5".
- Exceptions
-
- Parameters
-
- Returns
- A CDimBounds object constructed from the string.
◆ Set()
Sets (for the specified dimension) the start and the size.
- Parameters
-
dimension | The dimension. |
start | The start. |
size | The size. |
◆ TryGetInterval()
Attempts to get interval and size for the specified dimension.
- Parameters
-
| dim | The dimemension. |
[out] | startIndex | If non-null, it will receive the start index. |
[out] | size | If non-null, it will receive the size. |
- Returns
- True if it succeeds, false if it fails.
Implements libCZI::IDimBounds.
The documentation for this class was generated from the following file: