@Platform(include={"<nix/util/dataAccess.hpp>","<nix/Block.hpp>","<nix/DataArray.hpp>","<nix/Dimensions.hpp>","<nix/Feature.hpp>","<nix/File.hpp>","<nix/MultiTag.hpp>","<nix/Property.hpp>","<nix/Section.hpp>","<nix/Source.hpp>","<nix/Tag.hpp>"}) @Platform(value="linux",link="nix@.1",preload="hdf5@.7") @Platform(value="windows",link="nix",preload={"hdf5","msvcp120","msvcr120","szip","zlib"}) @Namespace(value="nix::util") public class DataAccess extends Object
Constructor and Description |
---|
DataAccess() |
Modifier and Type | Method and Description |
---|---|
static void |
getOffsetAndCount(MultiTag tag,
DataArray array,
long index,
NDSize offsets,
NDSize counts)
Returns the offsets and element counts associated with position and extent of a Tag and
the referenced DataArray.
|
static void |
getOffsetAndCount(Tag tag,
DataArray array,
NDSize offsets,
NDSize counts)
Returns the offsets and element counts associated with position and extent of a Tag and
the referenced DataArray.
|
static boolean |
positionAndExtentInData(DataArray data,
NDSize position,
NDSize count)
Checks whether a given position plus count is in the extent of the given DataArray.
|
static boolean |
positionInData(DataArray data,
NDSize position)
Checks whether a given position is in the extent of the given DataArray.
|
static long |
positionToIndex(double position,
String unit,
RangeDimension dimension)
Converts a position given in a unit into an index according to the dimension descriptor.
|
static long |
positionToIndex(double position,
String unit,
SampledDimension dimension)
Converts a position given in a unit into an index according to the dimension descriptor.
|
static long |
positionToIndex(double position,
String unit,
SetDimension dimension)
Converts a position given in a unit into an index according to the dimension descriptor.
|
static DataView |
retrieveData(MultiTag tag,
long positionIndex,
long referenceIndex)
Retrieve the data referenced by the given position and extent of the MultiTag.
|
static DataView |
retrieveData(Tag tag,
long referenceIndex)
Retrieve the data referenced by the given position and extent of the Tag.
|
static DataView |
retrieveFeatureData(MultiTag tag,
long positionIndex)
Returns the feature data accosiated with the given MuliTag's position.
|
static DataView |
retrieveFeatureData(MultiTag tag,
long positionIndex,
long featureIndex)
Returns the feature data accosiated with the given MuliTag's position.
|
static DataView |
retrieveFeatureData(Tag tag)
Retruns the feature data associated with a Tag.
|
static DataView |
retrieveFeatureData(Tag tag,
long featureIndex)
Retruns the feature data associated with a Tag.
|
public static long positionToIndex(double position, @StdString String unit, @Const @ByRef SetDimension dimension)
This function can be used to get the index of e.g. a certain point in time in a Dimension that represents time. The units of the position and that provided by the Dimension must match, i.e. must be scalable versions of the same SI unit.
position
- The positionunit
- The unit in which the position is given, may be "none"dimension
- The dimension descriptor for the respective dimension.SetDimension
public static long positionToIndex(double position, @StdString String unit, @Const @ByRef SampledDimension dimension)
This function can be used to get the index of e.g. a certain point in time in a Dimension that represents time. The units of the position and that provided by the Dimension must match, i.e. must be scalable versions of the same SI unit.
position
- The positionunit
- The unit in which the position is given, may be "none"dimension
- The dimension descriptor for the respective dimension.SampledDimension
public static long positionToIndex(double position, @StdString String unit, @Const @ByRef RangeDimension dimension)
This function can be used to get the index of e.g. a certain point in time in a Dimension that represents time. The units of the position and that provided by the Dimension must match, i.e. must be scalable versions of the same SI unit.
position
- The positionunit
- The unit in which the position is given, may be "none"dimension
- The dimension descriptor for the respective dimension.RangeDimension
public static void getOffsetAndCount(@Const @ByRef Tag tag, @Const @ByRef DataArray array, @ByRef NDSize offsets, @ByRef NDSize counts)
public static void getOffsetAndCount(@Const @ByRef MultiTag tag, @Const @ByRef DataArray array, @Cast(value="size_t") long index, @ByRef NDSize offsets, @ByRef NDSize counts)
@ByVal public static DataView retrieveData(@Const @ByRef MultiTag tag, @Cast(value="size_t") long positionIndex, @Cast(value="size_t") long referenceIndex)
@ByVal public static DataView retrieveData(@Const @ByRef Tag tag, @Cast(value="size_t") long referenceIndex)
public static boolean positionInData(@Const @ByRef DataArray data, @Const @ByRef NDSize position)
public static boolean positionAndExtentInData(@Const @ByRef DataArray data, @Const @ByRef NDSize position, @Const @ByRef NDSize count)
@ByVal public static DataView retrieveFeatureData(@Const @ByRef Tag tag, @Cast(value="size_t") long featureIndex)
@ByVal public static DataView retrieveFeatureData(@Const @ByRef Tag tag)
@ByVal public static DataView retrieveFeatureData(@Const @ByRef MultiTag tag, @Cast(value="size_t") long positionIndex, @Cast(value="size_t") long featureIndex)
Copyright © 2016. All rights reserved.