@Platform(include="<nix/Dimensions.hpp>") @Platform(value="linux",link="nix@.1",preload="hdf5@.7") @Platform(value="windows",link="nix",preload={"hdf5","msvcp120","msvcr120","szip","zlib"}) @Namespace(value="nix") public class SetDimension<T extends SetDimension> extends ImplContainer implements Comparable<T>
The SetDimension is used in cases where data is given as a set or list. This can be just a collection of values but also a list of recorded signals or a stack of images. Optionally an array of labels, one for each index of this dimension, can be specified.
Dimension
,
RangeDimension
,
SampledDimension
Constructor and Description |
---|
SetDimension()
Constructor that creates an uninitialized SetDimension.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(T dimension) |
int |
getDimensionType()
The type of the dimension.
|
long |
getIndex()
The actual dimension that is described by the dimension descriptor.
|
List<String> |
getLabels()
Get the labels of the range dimension.
|
boolean |
isNone()
Check if entity is null
|
void |
setLabels(List<String> labels)
Set the labels for the dimension.
|
isInitialized
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, zero
public SetDimension()
Calling any method on an uninitialized dimension will throw a RuntimeException
.
@Cast(value="bool") public boolean isNone()
ImplContainer
isNone
in class ImplContainer
@Name(value="index") @Cast(value="size_t") public long getIndex()
The index of the dimension entity representing the dimension of the actual data that is defined by this descriptor.
@Name(value="dimensionType") @ByVal @Cast(value="nix::DimensionType") public int getDimensionType()
This field indicates whether the dimension is a SampledDimension, SetDimension or RangeDimension.
public List<String> getLabels()
The labels serve as names for each index of the data at the respective dimension.
public void setLabels(List<String> labels)
labels
- A list containing all new labels. If null removes the labels from the dimension.public int compareTo(T dimension)
compareTo
in interface Comparable<T extends SetDimension>
Copyright © 2016. All rights reserved.