HDF and HDF-EOS Workshop VII, September 23-25, 2003

This work is supported in part by a Cooperative Agreement
with the Na...
HDFView is a Java-based visual
tool to browse and edit HDF4
and HDF5 files.
Starting with a tree view of a
file hierarchy,...
Modular HDFView is an
improved HDFView where I/O
and GUI components are
replaceable modules.

HDFView
(main view)

Replace...
ncsa.ndf.object

FileFormat
ncsa.ndf.object.h4

H4File
ncsa.ndf.object.h5

H5File

TreeView

TableView

DefaultTableView

...
Reuse source code: users can extend their classes from

common packages and abstract classes for less coding

Configurable...
Abstract interfaces/classes along with a default
implementation: the main view will only access to abstract
interfaces/cla...
The common I/O object layer, ncsa.hdf.object,
defines basic abstract classes for data access such
as read/write data. Such...
ncsa.hdf.object.h4
H4File

ncsa.hdf.object
H4Datatype

FileFormat

Datatype

interface

DataFormat

H4Group
H4SDS
H4GRImag...
GUI components are defined as interfaces. The
main view, ncsa.hdf.view.HDFView, accesses only
to the interfaces, and is se...
interface

TreeView

interface

DefaultTreeView

ViewManager
interface
MetaDataView

HDFView

interface
interface

TextVie...
Required package, jhdfobj.jar
I/O module must be packed in jar file and put it under
lib/ext/
Register I/O module from eit...
Required package, jhdfview.jar
GUI module must be packed in jar file and put it under
lib/ext/
HDFView will automatically ...
Completed the first round of defining and coding
The first release is scheduled for December 2003
Platforms to support
Sol...
Upcoming SlideShare
Loading in …5
×

Modular HDFView

287 views

Published on

The Design of Modularized HDFview

Source: http://hdfeos.org/workshops/ws07/presentations/Cao/Cao_modular_hdfview_poster.ppt

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
287
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Modular HDFView

  1. 1. HDF and HDF-EOS Workshop VII, September 23-25, 2003 This work is supported in part by a Cooperative Agreement with the National Aeronautics and Space Agency (NASA) and National Center for Supercomputing Applications (NCSA) HDF and HDF-EOS Workshop VII, September 23-25, 2003 1
  2. 2. HDFView is a Java-based visual tool to browse and edit HDF4 and HDF5 files. Starting with a tree view of a file hierarchy, you can descend through the hierarchy, navigate among the file's data objects, and open data as standard image, table, or text. The current HDFView (version 1.3) is built as a integrated tool. It consists of standard TreeView, TableView, ImageView and MetadataView. These components can not be replaced. HDF and HDF-EOS Workshop VII, September 23-25, 2003 2
  3. 3. Modular HDFView is an improved HDFView where I/O and GUI components are replaceable modules. HDFView (main view) Replaceable modules include: File I/O (file/data format) Tree view (show file structure) Table view (spreadsheet-like) Text view (view/edit for text dataset) Image view (view/process image) Palette view (view/change palette) Metadata (attribute) view Modules I/O, TreeView, TableView, etc Default User Implementation Implementation HDF and HDF-EOS Workshop VII, September 23-25, 2003 3
  4. 4. ncsa.ndf.object FileFormat ncsa.ndf.object.h4 H4File ncsa.ndf.object.h5 H5File TreeView TableView DefaultTableView ImageView ncsa.ndf.object.he2 HE2File ncsa.ndf.object.nc2 NC2File ncsa.ndf.object.fits FitsFile UserTableView DefaultTreeView UserTreeView DefaultImageView HDF and HDF-EOS Workshop VII, September 23-25, 2003 UserImageView 4
  5. 5. Reuse source code: users can extend their classes from common packages and abstract classes for less coding Configurable installation: users can choose to install HDF4 support or HDF5 support or both Separation of file I/O and data viewer: GUI components do not depend on file I/O implementation. Adding a new file format does not need to change any GUI components Replaceable GUI modules: users can implement their GUI components to replace the default TreeView, TabeView, ImageView, and etc, which is intended for general purpose. Easy to maintain: replacing/changing one module does not change the rest of the source code HDF and HDF-EOS Workshop VII, September 23-25, 2003 5
  6. 6. Abstract interfaces/classes along with a default implementation: the main view will only access to abstract interfaces/classes. It does not depend on user implementation Dynamic loading user’s modules: HDFView automatically detect user’s module packed in jar files A mechanism for selecting which module to use: when multiple modules provided for a data object, users can choose which module to use and set their default choice. Extensive documentation and examples how to implement such a module HDF and HDF-EOS Workshop VII, September 23-25, 2003 6
  7. 7. The common I/O object layer, ncsa.hdf.object, defines basic abstract classes for data access such as read/write data. Such abstract I/O layer serves for two purposes: easily add new file/data format application software depend only on the abstract I/O layer not the implementation Com m on I Objec /O t User F l Fo mat ie r (ncsa.hdf.object) (hd , hdf5 hd -e , ne cdf ft,e c ) f4 , f os t , is t . HDF and HDF-EOS Workshop VII, September 23-25, 2003 7
  8. 8. ncsa.hdf.object.h4 H4File ncsa.hdf.object H4Datatype FileFormat Datatype interface DataFormat H4Group H4SDS H4GRImage Group H4Vdata HObject Dataset ScalarDS CompoundDS ncsa.hdf.object.h5 H5File H5Datatype H5Group interface Metadata Attribute H4ScalarDS H5Compound HDF and HDF-EOS Workshop VII, September 23-25, 2003 8
  9. 9. GUI components are defined as interfaces. The main view, ncsa.hdf.view.HDFView, accesses only to the interfaces, and is separated from implementation Adding a new module will not affect the rest Users can select module for displaying data GUI interfaces User GUI modules HDF and HDF-EOS Workshop VII, September 23-25, 2003 9
  10. 10. interface TreeView interface DefaultTreeView ViewManager interface MetaDataView HDFView interface interface TextView DefaultTreeView DefaultTreeView DataView interface TableView Abstract IO interface ncsa.hdf.object ImageView interface PaletteView HDF and HDF-EOS Workshop VII, September 23-25, 2003 DefaultTreeView DefaultTreeView DefaultTreeView 10
  11. 11. Required package, jhdfobj.jar I/O module must be packed in jar file and put it under lib/ext/ Register I/O module from either property file or FileFormat.addFileFormat() ncsa.hdf.object.h4 jhdf4obj.jar ncsa.hdf.object jhdfobj.jar ncsa.hdf.hdflib jhdf.jar ncsa.hdf.object.h5 ncsa.hdf.hdf5lib jhdf5obj.jar jhdf5.jar ncsa.hdf.object.fits nom.tam.fits fitsobj.jar fits.jar ncsa.hdf.object.nc2 ucar.nc2 nc2obj.jar netcdf.jar HDF and HDF-EOS Workshop VII, September 23-25, 2003 11
  12. 12. Required package, jhdfview.jar GUI module must be packed in jar file and put it under lib/ext/ HDFView will automatically detect new module ncsa.hdf.view jhdfview.jar User GUI Module HDF and HDF-EOS Workshop VII, September 23-25, 2003 12
  13. 13. Completed the first round of defining and coding The first release is scheduled for December 2003 Platforms to support Solaris SGI IRIX 6.5 Linux Windows 95/98/2000/NT Mac OS X For more information visit website http://hdf.ncsa.uiuc.edu/hdf-java-html/hdfview HDF and HDF-EOS Workshop VII, September 23-25, 2003 13

×