Constructor and Description |
---|
DefaultNoData()
Constructor
|
DefaultNoData(Number noData,
Number nativeNoData,
String fileName)
Constructor.
|
DefaultNoData(Number noData,
Number nativeNoData,
String fileName,
int bandCount)
Constructor
|
DefaultNoData(String fileName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a copy of this object.
|
boolean |
compare(NoData noData)
Compares two NoData objects an returns true if contains the same values
|
void |
delete()
Deletes the nodata value.
|
int |
getBandCount()
Gets the number of bands
|
int |
getDataType()
Gets the NoData data type
|
Number |
getNativeValue()
The native is the original value
saved in the head of the file or its metadata.
|
Number |
getValue()
Gets a unique value for nodata.
|
Number |
getValueByBand(int nBand)
Gets the nodata value by band
|
boolean |
isDefined()
Returns true if getValue is defined and false if is null
|
boolean |
isNoDataTransparent()
Flag to renderize nodata values as transparent
|
void |
load()
Loads this class from the rmf.
|
void |
restore()
Restores native value.
|
void |
save()
NoData value persistence.
|
void |
setBandCount(int bandCount)
Sets the number of bands
|
void |
setDataType(int datatype)
Sets the datatype
|
void |
setFileName(String fileName)
Sets the file name
|
void |
setNativeValue(Number nativeNoDataValue)
The native is the original value
saved in the head of the file or its metadata.
|
void |
setNoDataTransparent(boolean noDataAsTransparent)
Flag to renderize nodata values as transparent
|
void |
setValue(Number noData)
Sets a unique value for nodata.
|
void |
setValueByBand(Number noDataValue,
int nBand)
Assigns one value in a band
|
public DefaultNoData()
public DefaultNoData(String fileName)
fileName
- Name of file owner of this nodata value. This string is useful to
save and load throw the rmf.public DefaultNoData(Number noData, Number nativeNoData, String fileName)
noData
- value to assign to all bandsnativeNoData
- The native is the original value
saved in the head of the file or its metadata.fileName
- Name of file owner of this nodata value. This string is useful to
save and load throw the rmf.public DefaultNoData(Number noData, Number nativeNoData, String fileName, int bandCount)
noData
- value to assign to all bandsnativeNoData
- The native is the original value
saved in the head of the file or its metadata.fileName
- Name of file owner of this nodata value. This string is useful to
save the rmf filebandCount
- Number of bands of the filepublic Number getValue()
NoData
public boolean isDefined()
NoData
public void setValue(Number noData)
NoData
public Number getNativeValue()
NoData
getNativeValue
in interface NoData
public void setNativeValue(Number nativeNoDataValue)
NoData
setNativeValue
in interface NoData
public void delete()
NoData
public void restore()
NoData
public void save()
NoData
public void load()
NoData
public void setFileName(String fileName)
NoData
setFileName
in interface NoData
public boolean isNoDataTransparent()
NoData
isNoDataTransparent
in interface NoData
public void setNoDataTransparent(boolean noDataAsTransparent)
NoData
setNoDataTransparent
in interface NoData
public int getDataType()
NoData
getDataType
in interface NoData
public void setDataType(int datatype)
NoData
setDataType
in interface NoData
public boolean compare(NoData noData)
NoData
public Object clone()
NoData
public Number getValueByBand(int nBand)
NoData
getValueByBand
in interface NoData
public void setValueByBand(Number noDataValue, int nBand)
NoData
setValueByBand
in interface NoData
public int getBandCount()
NoData
getBandCount
in interface NoData
public void setBandCount(int bandCount)
NoData
setBandCount
in interface NoData