All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.hdf.message.HDFSDS
java.lang.Object
|
+----ncsa.hdf.message.HDFObject
|
+----ncsa.hdf.message.HDFSDS
- public class HDFSDS
- extends HDFObject
HDFSDS holds HDF SDS information
- Version:
- 1.1.3 September 22 1997
- Author:
- Peter X. Cao
-
dataRange
- hold data range in the image
dataRange[0] = the minimum the the image data
dataRange[2] = the maxnimum the the image data
-
dimScales
- dimension scales
-
dimTypes
- dimension types
-
dimUnits
- dimension units
-
imageArgv
- hold image arguments.
-
imagePalette
- the iamge palette data
-
images
- byte array containing data for animation images
-
MAX_VAR_DIMS
-
-
originalImageSize
- the original image size
-
selectedImageSize
- the requested image size
-
HDFSDS()
- Constructs an HDFSDS with default parameters
-
HDFSDS(HDFObjectNode, String)
- Construct an HDFSDS with specified HDFObjectNode and filename
-
fromServer(HDFMessage)
- process the message received from the server
-
getCurrentImageSize()
- return the requested image size
-
getDataRange()
- return the iamge data range
-
getDimScales()
- return dimension scales
-
getDimTypes()
- return dimension types
-
getDimUnits()
- return dimension units
-
getImageArgv()
- return the image arguments
-
getImagePalette()
- return the image palette data
-
getImages()
- return data for animation images
-
getOriginalImageSize()
- return the original image size
-
readInfo(HDFLibrary, String, HDFObjectNode)
- get HDF SDS image information for the selected HDF file
-
service()
- overwrite HDFGR
-
toClient()
- create a message for sending to the client
MAX_VAR_DIMS
public static final int MAX_VAR_DIMS
originalImageSize
protected Dimension originalImageSize
- the original image size
selectedImageSize
protected Dimension selectedImageSize
- the requested image size
imagePalette
protected byte imagePalette[]
- the iamge palette data
dimUnits
protected String dimUnits[]
- dimension units
dimScales
protected Object dimScales[]
- dimension scales
dimTypes
protected int dimTypes[]
- dimension types
imageArgv
protected int imageArgv[]
- hold image arguments.
imageArgv[0] = number of images
imageArgv[1] = image data type
images
protected byte images[][]
- byte array containing data for animation images
dataRange
protected double dataRange[]
- hold data range in the image
dataRange[0] = the minimum the the image data
dataRange[2] = the maxnimum the the image data
HDFSDS
public HDFSDS()
- Constructs an HDFSDS with default parameters
HDFSDS
public HDFSDS(HDFObjectNode node,
String filename)
- Construct an HDFSDS with specified HDFObjectNode and filename
- Parameters:
- node - the HDFObjectNode to be transfered to the server
- filename - the requested HDF file
toClient
public HDFMessage toClient()
- create a message for sending to the client
- Returns:
- the HDFMessage created by this object
- Overrides:
- toClient in class HDFObject
service
public void service()
- overwrite HDFGR
- Overrides:
- service in class HDFObject
fromServer
public void fromServer(HDFMessage message)
- process the message received from the server
- Parameters:
- message - the HDFMessage received from the server
- Overrides:
- fromServer in class HDFObject
readInfo
public static String readInfo(HDFLibrary hdf,
String filename,
HDFObjectNode node) throws HDFException
- get HDF SDS image information for the selected HDF file
- Parameters:
- filename - the string of the hdf file name
- node - the HDFObjectNode
- Returns:
- the string the HDF SDS image information
- Throws: HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
getOriginalImageSize
public Dimension getOriginalImageSize()
- return the original image size
getCurrentImageSize
public Dimension getCurrentImageSize()
- return the requested image size
getImagePalette
public byte[] getImagePalette()
- return the image palette data
getImageArgv
public int[] getImageArgv()
- return the image arguments
getDataRange
public double[] getDataRange()
- return the iamge data range
getImages
public byte[][] getImages()
- return data for animation images
getDimUnits
public String[] getDimUnits()
- return dimension units
getDimTypes
public int[] getDimTypes()
- return dimension types
getDimScales
public Object[] getDimScales()
- return dimension scales
All Packages Class Hierarchy This Package Previous Next Index