public class DefaultArrayDescription extends Object implements ArrayDescription
Modifier and Type | Field and Description |
---|---|
protected long[] |
arrayDims
Array dimensions; equal to
arrayShape.getDims() . |
protected BadHandler |
arrayHandler
The array bad value handler as returned by the getBadHandler method.
|
protected boolean |
arrayIsRandom
The array random access availability as returned by the isRandom method.
|
protected boolean |
arrayIsReadable
The array readability as returned by the isReadable method.
|
protected boolean |
arrayIsWritable
The array writability as returned by teh isWritable method.
|
protected long |
arrayNdim
Number of dimensions; equal to
arrayShape.getNumDims() . |
protected long |
arrayNpix
Number of pixels; equal to
arrayShape.getNumPixels() . |
protected Order |
arrayOrder
Pixel ordering scheme; equal to
arrayShape.getOrder() . |
protected long[] |
arrayOrigin
Array origin; equal to
arrayShape.getOrigin() . |
protected OrderedNDShape |
arrayShape
The array shape as returned by the getShape method.
|
protected Type |
arrayType
The array type as returned by the getType method.
|
Constructor and Description |
---|
DefaultArrayDescription(ArrayDescription descrip)
Constructs an ArrayDescription object with attributes copied from
an existing one.
|
DefaultArrayDescription(ArrayDescription desc,
Requirements req)
Constructs an ArrayDescription object with attributes copied from
an existing one except as overridden by the requirements of a
Requirements object.
|
DefaultArrayDescription(OrderedNDShape oshape,
Type type,
BadHandler badHandler,
boolean isRandom,
boolean isReadable,
boolean isWritable)
Constructs an ArrayDescription object with all its attributes
specified explicitly.
|
Modifier and Type | Method and Description |
---|---|
BadHandler |
getBadHandler()
Gets an object capable of handling bad pixel values for this array.
|
OrderedNDShape |
getShape()
Gets the OrderedNDShape object which describes the origin, dimensions
and pixel ordering scheme of this array.
|
Type |
getType()
Returns the type of the primitive data in this array.
|
boolean |
isRandom()
Indicates whether random access is available.
|
boolean |
isReadable()
Indicates whether the pixels of this array may be read.
|
boolean |
isWritable()
Indicates whether the pixels of this array may be written.
|
protected final OrderedNDShape arrayShape
protected final Type arrayType
protected final BadHandler arrayHandler
protected final boolean arrayIsRandom
protected final boolean arrayIsReadable
protected final boolean arrayIsWritable
protected final Order arrayOrder
arrayShape.getOrder()
.protected final long arrayNpix
arrayShape.getNumPixels()
.protected final long arrayNdim
arrayShape.getNumDims()
.protected final long[] arrayDims
arrayShape.getDims()
.protected final long[] arrayOrigin
arrayShape.getOrigin()
.public DefaultArrayDescription(OrderedNDShape oshape, Type type, BadHandler badHandler, boolean isRandom, boolean isReadable, boolean isWritable)
oshape
- array shapetype
- array typebadHandler
- array bad value handlerisRandom
- whether random access is providedisReadable
- whether read access is providedisWritable
- whether write access is providedpublic DefaultArrayDescription(ArrayDescription descrip)
descrip
- an existing ArrayDescription object whose properties
this one is to inheritpublic DefaultArrayDescription(ArrayDescription desc, Requirements req)
desc
parameter, except that the
BadHandler, Type, Window and Order attributes of the req
parameter if they are not null, and its Random attribute will be the
logical OR of the Random attributes of desc
and req
.desc
- an existing ArrayDescription objectreq
- a Requirements objectpublic OrderedNDShape getShape()
ArrayDescription
getShape
in interface ArrayDescription
public Type getType()
ArrayDescription
getType
in interface ArrayDescription
public BadHandler getBadHandler()
ArrayDescription
getBadHandler
in interface ArrayDescription
public boolean isRandom()
ArrayDescription
isRandom
in interface ArrayDescription
public boolean isReadable()
ArrayDescription
isReadable
in interface ArrayDescription
public boolean isWritable()
ArrayDescription
isWritable
in interface ArrayDescription
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.