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
-
imageArgv
- hold image arguments.
-
imageData
- the image data
-
imagePalette
- the iamge palette data
-
images
- byte array containing data for animation images
-
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
-
createRainbowPalette()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
-
fromServer(HDFMessage)
- process the message received from the server
-
getCurrentImageSize()
- return the requested image size
-
getDataRange()
- return the iamge data range
-
getImageArgv()
- return the image arguments
-
getImageData()
- return the image data
-
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
originalImageSize
protected Dimension originalImageSize
- the original image size
selectedImageSize
protected Dimension selectedImageSize
- the requested image size
imageData
protected Object imageData
- the image data
imagePalette
protected byte imagePalette[]
- the iamge palette data
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
createRainbowPalette
protected byte[] createRainbowPalette()
- Return the RAINBOW palette
rgb rgb rgb rgb rgb ....
getOriginalImageSize
public Dimension getOriginalImageSize()
- return the original image size
getCurrentImageSize
public Dimension getCurrentImageSize()
- return the requested image size
getImageData
public Object getImageData()
- return the image data
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
All Packages Class Hierarchy This Package Previous Next Index