Modifier and Type | Field and Description |
---|---|
float[] |
data
The array where the data is stored
|
h, offset, progressive, scanw, TYPE_BYTE, TYPE_FLOAT, TYPE_INT, TYPE_SHORT, ulx, uly, w
Constructor and Description |
---|
DataBlkFloat()
Creates a DataBlkFloat with 0 dimensions and no data array
(i.e.
|
DataBlkFloat(DataBlkFloat src)
Copy constructor.
|
DataBlkFloat(int ulx,
int uly,
int w,
int h)
Creates a DataBlkFloat with the specified dimensions and
position.
|
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Returns the array containing the data, or null if there is no
data array.
|
float[] |
getDataFloat()
Returns the array containing the data, or null if there is no
data array.
|
int |
getDataType()
Returns the identifier of this data type, TYPE_FLOAT,
as defined in DataBlk.
|
void |
setData(Object arr)
Sets the data array to the specified one.
|
void |
setDataFloat(float[] arr)
Sets the data array to the specified one.
|
String |
toString()
Returns a string of informations about the DataBlkInt.
|
public DataBlkFloat()
public DataBlkFloat(int ulx, int uly, int w, int h)
ulx
- The horizontal coordinate of the upper-left corner
of the blockuly
- The vertical coordinate of the upper-left corner
of the blockw
- The width of the block (in pixels)h
- The height of the block (in pixels)public DataBlkFloat(DataBlkFloat src)
DataBlkFloat
- the object to be copied.public final int getDataType()
getDataType
in class DataBlk
DataBlk.TYPE_FLOAT
public final Object getData()
getData
in class DataBlk
DataBlk.getDataType()
public final float[] getDataFloat()
public final void setData(Object arr)
setData
in class DataBlk
arr
- The data array to use. Must be a float array.DataBlk.getDataType()
public final void setDataFloat(float[] arr)
arr
- The data array to use.Copyright © 2015–2022 SCIFIO. All rights reserved.