org.deegree.rendering.r3d.multiresolution.io
Class MeshFragmentDataReader

java.lang.Object
  extended by org.deegree.rendering.r3d.multiresolution.io.MeshFragmentDataReader

public class MeshFragmentDataReader
extends Object

This class opens a channel to a file containing meshfragments.

Version:
$Revision: 29307 $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
MeshFragmentDataReader(File meshFragments, DirectByteBufferPool directBufferPool)
          Construct access to a file containing mesh fragments.
MeshFragmentDataReader(File meshFragments, DirectByteBufferPool directBufferPool, int rowsPerMt)
          Construct access to a file containing mesh fragments.
 
Method Summary
 DirectByteBufferPool getDirectBufferPool()
           
 MeshFragmentData read(int fragmentId, long offset, int length)
          Read meshdata from the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeshFragmentDataReader

public MeshFragmentDataReader(File meshFragments,
                              DirectByteBufferPool directBufferPool)
                       throws FileNotFoundException
Construct access to a file containing mesh fragments.

Parameters:
meshFragments -
directBufferPool -
Throws:
FileNotFoundException

MeshFragmentDataReader

public MeshFragmentDataReader(File meshFragments,
                              DirectByteBufferPool directBufferPool,
                              int rowsPerMt)
                       throws FileNotFoundException
Construct access to a file containing mesh fragments.

Parameters:
meshFragments -
directBufferPool -
Throws:
FileNotFoundException
Method Detail

read

public MeshFragmentData read(int fragmentId,
                             long offset,
                             int length)
                      throws IOException
Read meshdata from the file.

Parameters:
fragmentId -
offset -
length -
Returns:
the actual data read from the file.
Throws:
IOException

getDirectBufferPool

public DirectByteBufferPool getDirectBufferPool()
Returns:
the pool used to allocate direct buffers.


Copyright © 2011. All Rights Reserved.