Maven module :un.api : api-geometry :
Class : un.api.geometry.AbstractTupleBuffer
Extends/Implements : un.api.CObject un.api.geometry.TupleBuffer
Subclasses : -

author  Johann Sorel


Variables : sampleType, nbSample, bitsPerSample, bitsPerDoxel, dimensions
Functions : AbstractTupleBuffer, AbstractTupleBuffer, updateModel, createPrimitiveBuffer, create, getExtent, getBitsPerSample, getPrimitiveType, getSampleCount, copy, createTupleStore, getTuple, getTupleBoolean, getTupleByte, getTupleUByte, getTupleShort, getTupleUShort, getTupleInt, getTupleUInt, getTupleLong, getTupleFloat, getTupleDouble, setTuple, setTuple, createIterator, clipToBufferBox, ensureType, getHash, equals, createPrimitiveBuffer


protected int sampleType

protected int nbSample

protected int bitsPerSample


= nbSample*bitsPerSample
protected int bitsPerDoxel

protected Extent.Long dimensions


public void AbstractTupleBuffer ()


param  dimensions
param  sampleType : one of Primitive.TYPE_X
param  nbSample
public void AbstractTupleBuffer (Extent.Long dimensions, int sampleType, int nbSample)


param  dimensions
param  sampleType
param  nbSample
protected void updateModel (Extent.Long dimensions, int sampleType, int nbSample)

public Buffer createPrimitiveBuffer (Extent.Long dimensions, BufferFactory factory)

public TupleBuffer create (Extent.Long dimensions)

public Extent.Long getExtent ()

public int getBitsPerSample ()

public int getPrimitiveType ()

public int getSampleCount ()

public TupleBuffer copy ()

public Object createTupleStore ()

public Object getTuple (int[] coordinate, Object buffer)

public boolean[] getTupleBoolean (int[] coordinate, boolean[] buffer)

public byte[] getTupleByte (int[] coordinate, byte[] buffer)

public int[] getTupleUByte (int[] coordinate, int[] buffer)

public short[] getTupleShort (int[] coordinate, short[] buffer)

public int[] getTupleUShort (int[] coordinate, int[] buffer)

public int[] getTupleInt (int[] coordinate, int[] buffer)

public long[] getTupleUInt (int[] coordinate, long[] buffer)

public long[] getTupleLong (int[] coordinate, long[] buffer)

public float[] getTupleFloat (int[] coordinate, float[] buffer)

public double[] getTupleDouble (int[] coordinate, double[] buffer)

public void setTuple (int[] coordinate, Object sample)

public void setTuple (BBox box, Object sample)

public TupleIterator createIterator (BBox bbox)


Ensure given bbox do not exit buffer bounds.
param  box
return  BoundingBox or null if no intersection
protected BBox clipToBufferBox (BBox box)


Test and convert sample container to this buffer type.
param  sampleContainer
return
protected Object ensureType (Object sampleContainer)

public int getHash ()

public boolean equals (Object obj)

public Buffer createPrimitiveBuffer (Extent.Long dimensions, int sampleType, int nbSample, BufferFactory factory)