Java Doc for BaseHDFImageReader.java in  » GIS » GeoTools-2.4.1 » it » geosolutions » imageio » plugins » jhdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » it.geosolutions.imageio.plugins.jhdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


it.geosolutions.imageio.plugins.slices2D.SliceImageReader
   it.geosolutions.imageio.plugins.jhdf.BaseHDFImageReader

All known Subclasses:   it.geosolutions.imageio.plugins.jhdf.tovs.TOVSImageReader,  it.geosolutions.imageio.plugins.jhdf.aps.APSImageReader,
BaseHDFImageReader
abstract public class BaseHDFImageReader extends SliceImageReader (Code)

Inner Class :protected class SourceStructure

Field Summary
protected  FileFormatfileFormat
    
protected  ImageTypeSpecifierimageType
    
final protected  int[]mutex
    
protected  HObjectroot
    
protected  SourceStructuresourceStructure
     a SourceStructure's instance needed to get main SubDatasets info and properties.
protected  LinkedHashMapsubDatasetsMap
    

Constructor Summary
protected  BaseHDFImageReader(ImageReaderSpi originatingProvider)
    

Method Summary
public  voiddispose()
    
abstract protected  intgetBandNumberFromProduct(String productName)
    
public  intgetHeight(int imageIndex)
     Returns the height in pixels of the given image within the input source.
Parameters:
  imageIndex - the index of the image to be queried.
public  IteratorgetImageTypes(int imageIndex)
     Returns an Iterator containing possible image types to which the given image may be decoded, in the form of ImageTypeSpecifierss.
public  int[]getSlice2DIndexCoordinates(int requiredSlice2DIndex)
     Given a specifiedIndex as an input, returns a long[] having the subDataset/coverage index at the first position of the array. Then, the indexes (of the other dimensions) needed to retrieve a proper 2D Slice. As an instance, suppose a HDF source contains a 4D SubDataset with the form (X,Y,Z,T).
public  intgetTileHeight(int imageIndex)
     Returns the height of a tile in the given image.
Parameters:
  imageIndex - the index of the image to be queried.
public  intgetTileWidth(int imageIndex)
     Returns the width of a tile in the given image.
Parameters:
  imageIndex - the index of the image to be queried.
public  intgetWidth(int imageIndex)
     Returns the width in pixels of the given image within the input source.
Parameters:
  imageIndex - the index of the image to be queried.
protected  voidinitialize()
    
abstract protected  voidinitializeProfile()
     Additional initialization for a specific HDF "Profile". Depending on the HDF data producer, the originating file has a proper data/metadata structure.
abstract protected  booleanisAcceptedItem(String itemName)
    
public  BufferedImageread(int imageIndex, ImageReadParam param)
     Reads the image indexed by imageIndex and returns it as a BufferedImage, using a supplied ImageReadParam
Parameters:
  imageIndex - the index of the image to be retrieved.
Parameters:
  param - an ImageReadParam used to control the readingprocess, or null.
public  voidreset()
    
protected  DatasetretrieveDataset(int subDatasetIndex)
    
public  intretrieveSlice2DIndex(int imageIndex, int[] selectedIndexOfEachDim)
     returns a proper subindex needed to access a specific 2D slice of a specified coverage/subdataset.
protected  intretrieveSubDatasetIndex(int imageIndex)
     Given the index of a 2D image, retrieve the index of the subDataset containing that image.
public  voidsetInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
    
public  voidsetInput(Object input, boolean seekForwardOnly)
    
public  voidsetInput(Object input)
    

Field Detail
fileFormat
protected FileFormat fileFormat(Code)
The originating FileFormat



imageType
protected ImageTypeSpecifier imageType(Code)



mutex
final protected int[] mutex(Code)
A mutex used to synchronize operations



root
protected HObject root(Code)
root of the FileFormat related to the provided input source



sourceStructure
protected SourceStructure sourceStructure(Code)
a SourceStructure's instance needed to get main SubDatasets info and properties.



subDatasetsMap
protected LinkedHashMap subDatasetsMap(Code)
A LinkedHashMap having all the Datasets contained within the source




Constructor Detail
BaseHDFImageReader
protected BaseHDFImageReader(ImageReaderSpi originatingProvider)(Code)




Method Detail
dispose
public void dispose()(Code)



getBandNumberFromProduct
abstract protected int getBandNumberFromProduct(String productName)(Code)



getHeight
public int getHeight(int imageIndex) throws IOException(Code)
Returns the height in pixels of the given image within the input source.
Parameters:
  imageIndex - the index of the image to be queried. the height of the image, as an int.



getImageTypes
public Iterator getImageTypes(int imageIndex) throws IOException(Code)
Returns an Iterator containing possible image types to which the given image may be decoded, in the form of ImageTypeSpecifierss.
Parameters:
  imageIndex - the index of the image to beretrieved. an Iterator containing at least oneImageTypeSpecifier representing suggested imagetypes for decoding the current given image.
exception:
  IllegalStateException - if the input source has not been set.
exception:
  IndexOutOfBoundsException - if the supplied index isout of bounds.
exception:
  IOException - if an error occurs reading the formatinformation from the input source.



getSlice2DIndexCoordinates
public int[] getSlice2DIndexCoordinates(int requiredSlice2DIndex)(Code)
Given a specifiedIndex as an input, returns a long[] having the subDataset/coverage index at the first position of the array. Then, the indexes (of the other dimensions) needed to retrieve a proper 2D Slice. As an instance, suppose a HDF source contains a 4D SubDataset with the form (X,Y,Z,T). if returnedIndex[]={2,3,1}, the required Slice2D is available at the subDataset with index=2, timeIndex=3, zIndex=1. TODO: Now, we are supposing order is 5thDim -> T -> Z -> (X,Y)



getTileHeight
public int getTileHeight(int imageIndex) throws IOException(Code)
Returns the height of a tile in the given image.
Parameters:
  imageIndex - the index of the image to be queried. the height of a tile.
exception:
  IOException - if an error occurs during reading.



getTileWidth
public int getTileWidth(int imageIndex) throws IOException(Code)
Returns the width of a tile in the given image.
Parameters:
  imageIndex - the index of the image to be queried. the width of a tile.
exception:
  IOException - if an error occurs during reading.



getWidth
public int getWidth(int imageIndex) throws IOException(Code)
Returns the width in pixels of the given image within the input source.
Parameters:
  imageIndex - the index of the image to be queried. the width of the image, as an int.



initialize
protected void initialize() throws IOException(Code)
Simple initialization method



initializeProfile
abstract protected void initializeProfile() throws Exception(Code)
Additional initialization for a specific HDF "Profile". Depending on the HDF data producer, the originating file has a proper data/metadata structure. For this reason, a specific initialization should be implemented for each different HDF "Profile". As an instance, the Automated Processing System (APS) produces HDF files having a structure which differes from the HDF structure of a file produced by TIROS Operational Vertical Sounder (TOVS).
throws:
  Exception -



isAcceptedItem
abstract protected boolean isAcceptedItem(String itemName)(Code)

Parameters:
  itemName - The name of the product/subDataset to be checked true if the product/subdataset needs to be takenon account.



read
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException(Code)
Reads the image indexed by imageIndex and returns it as a BufferedImage, using a supplied ImageReadParam
Parameters:
  imageIndex - the index of the image to be retrieved.
Parameters:
  param - an ImageReadParam used to control the readingprocess, or null. the desired portion of the image as a BufferedImage.



reset
public void reset()(Code)



retrieveDataset
protected Dataset retrieveDataset(int subDatasetIndex)(Code)
Returns a subDataset given a subDatasetIndex
Parameters:
  subDatasetIndex - The index of the required subDataset the required subDataset



retrieveSlice2DIndex
public int retrieveSlice2DIndex(int imageIndex, int[] selectedIndexOfEachDim)(Code)
returns a proper subindex needed to access a specific 2D slice of a specified coverage/subdataset.
Parameters:
  imageIndex - the specified coverage/subDataset
Parameters:
  selectedIndexOfEachDim - the required index of each dimensionTODO: Should I use a single long[] input parameter containing also thesubdataset index?



retrieveSubDatasetIndex
protected int retrieveSubDatasetIndex(int imageIndex)(Code)
Given the index of a 2D image, retrieve the index of the subDataset containing that image.
Parameters:
  imageIndex - the index of a 2D image the index of the subDataset containing that image.



setInput
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)(Code)



setInput
public void setInput(Object input, boolean seekForwardOnly)(Code)



setInput
public void setInput(Object input)(Code)



Fields inherited from it.geosolutions.imageio.plugins.slices2D.SliceImageReader
protected boolean isInitialized(Code)(Java Doc)
protected File originatingFile(Code)(Java Doc)

Methods inherited from it.geosolutions.imageio.plugins.slices2D.SliceImageReader
abstract public int getHeight(int imageIndex) throws IOException(Code)(Java Doc)
abstract public IIOMetadata getImageMetadata(int imageIndex) throws IOException(Code)(Java Doc)
abstract public Iterator getImageTypes(int imageIndex) throws IOException(Code)(Java Doc)
abstract public IIOMetadata getStreamMetadata() throws IOException(Code)(Java Doc)
abstract public int getWidth(int imageIndex) throws IOException(Code)(Java Doc)
abstract protected void initialize() throws IOException(Code)(Java Doc)
abstract public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException(Code)(Java Doc)
protected ColorModel retrieveColorModel(SampleModel sm)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.