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


Variable Index

 o currentImageSize
the requested image size
 o dataRange
hold data range in the image
   dataRange[0] = the minimum the the image data
   dataRange[2] = the maxnimum the the image data
  
 o imageArgv
hold image arguments.
 o imageData
the image data
 o imagePalette
the iamge palette data
 o images
byte array containing data for animation images
 o information
the string containing the SDS information
 o originalImageSize
the original image size

Constructor Index

 o HDFSDS()
Constructs an HDFSDS with default parameters
 o HDFSDS(HDFObjectNode, String)
Construct an HDFSDS with specified HDFObjectNode and filename

Method Index

 o createRainbowPalette()
Return the RAINBOW palette rgb rgb rgb rgb rgb ....
 o defineDataObject(int, int)
define the data object
 o fromServer(HDFMessage)
process the message received from the server
 o getCurrentImageSize()
return the requested image size
 o getDataRange()
return the iamge data range
 o getImageArgv()
return the image arguments
 o getImageData()
return the image data
 o getImagePalette()
return the image palette data
 o getImages()
return data for animation images
 o getInformation()
return the information
 o getOriginalImageSize()
return the original image size
 o getSDSInfo(HDFLibrary, String, HDFObjectNode)
get HDF SDS image information for the selected HDF file
 o service()
overwrite HDFGR
 o toClient()
create a message for sending to the client

Variables

 o information
 protected String information
the string containing the SDS information

 o originalImageSize
 protected Dimension originalImageSize
the original image size

 o currentImageSize
 protected Dimension currentImageSize
the requested image size

 o imageData
 protected Object imageData
the image data

 o imagePalette
 protected byte imagePalette[]
the iamge palette data

 o imageArgv
 protected int imageArgv[]
hold image arguments.
   imageArgv[0] = number of images
   imageArgv[1] = image data type
  

 o images
 protected byte images[][]
byte array containing data for animation images

 o 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
  

Constructors

 o HDFSDS
 public HDFSDS()
Constructs an HDFSDS with default parameters

 o 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

Methods

 o toClient
 public HDFMessage toClient()
create a message for sending to the client

Returns:
the HDFMessage created by this object
Overrides:
toClient in class HDFObject
 o service
 public void service()
overwrite HDFGR

Overrides:
service in class HDFObject
 o 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
 o getSDSInfo
 public static String getSDSInfo(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
 o defineDataObject
 public Object defineDataObject(int dataType,
                                int dataSize)
define the data object

Parameters:
dataType - the type of the iamge data
dataSize - the size of the image data array
 o createRainbowPalette
 protected byte[] createRainbowPalette()
Return the RAINBOW palette rgb rgb rgb rgb rgb ....

 o getInformation
 public String getInformation()
return the information

 o getOriginalImageSize
 public Dimension getOriginalImageSize()
return the original image size

 o getCurrentImageSize
 public Dimension getCurrentImageSize()
return the requested image size

 o getImageData
 public Object getImageData()
return the image data

 o getImagePalette
 public byte[] getImagePalette()
return the image palette data

 o getImageArgv
 public int[] getImageArgv()
return the image arguments

 o getDataRange
 public double[] getDataRange()
return the iamge data range

 o getImages
 public byte[][] getImages()
return data for animation images


All Packages  Class Hierarchy  This Package  Previous  Next  Index