vtk
Class vtkVolume16Reader

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkImageSource
                      extended byvtk.vtkVolumeReader
                          extended byvtk.vtkVolume16Reader
All Implemented Interfaces:
java.io.Serializable

public class vtkVolume16Reader
extends vtkVolumeReader
implements java.io.Serializable

vtkVolume16Reader - read 16 bit image files. vtkVolume16Reader is a source object that reads 16 bit image files. Volume16Reader creates structured point datasets. The dimension of the dataset depends upon the number of files read. Reading a single file results in a 2D image, while reading more than one file results in a 3D volume. File names are created using FilePattern and FilePrefix as follows: sprintf (filename, FilePattern, FilePrefix, number); where number is in the range ImageRange[0] to ImageRange[1]. If ImageRange[1] <= ImageRange[0], then slice number ImageRange[0] is read. Thus to read an image set ImageRange[0] = ImageRange[1] = slice number. The default behavior is to read a single file (i.e., image slice 1). The DataMask instance variable is used to read data files with imbedded connectivity or segmentation information. For example, some data has the high order bit set to indicate connected surface. The DataMask allows you to select this data. Other important ivars include HeaderSize, which allows you to skip over initial info, and SwapBytes, which turns on/off byte swapping. The Transform instance variable specifies a permutation transformation to map slice space into world space. vtkImageReader has replaced the functionality of this class and should be used instead. JavaBean wrapper for vtkVolume16Reader object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkSliceCubes, vtkMarchingCubes, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkVolume16Reader()
           
protected vtkVolume16Reader(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getDataByteOrder()
          These methods should be used instead of the SwapBytes methods.
 java.lang.String getDataByteOrderAsString()
          These methods should be used instead of the SwapBytes methods.
 int[] getDataDimensions()
          Specify the dimensions for the data.
 int getDataMask()
          Specify a mask used to eliminate data in the data file (e.g., connectivity bits).
 int getHeaderSize()
          Specify the number of bytes to seek over at start of image.
 vtkImageData getImage(int id0)
          Other objects make use of these methods
 int getSwapBytes()
          Turn on/off byte swapping.
 vtkVolume16Reader getThisVolume16Reader()
           
 vtkTransform getTransform()
          Set/Get transformation matrix to transform the data from slice space into world space.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setDataByteOrder(int id0)
          These methods should be used instead of the SwapBytes methods.
 void setDataByteOrderToBigEndian()
          These methods should be used instead of the SwapBytes methods.
 void setDataByteOrderToLittleEndian()
          These methods should be used instead of the SwapBytes methods.
 void setDataDimensions(int[] id0)
          Specify the dimensions for the data.
 void setDataDimensions(int id0, int id1)
          Specify the dimensions for the data.
 void setDataMask(int id0)
          Specify a mask used to eliminate data in the data file (e.g., connectivity bits).
 void setHeaderSize(int id0)
          Specify the number of bytes to seek over at start of image.
 void setSwapBytes(int id0)
          Turn on/off byte swapping.
 void setTransform(vtkTransform id0)
          Set/Get transformation matrix to transform the data from slice space into world space.
 void swapBytesOff()
          Turn on/off byte swapping.
 void swapBytesOn()
          Turn on/off byte swapping.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkVolumeReader
getDataOrigin, getDataSpacing, getFilePattern, getFilePrefix, getImageRange, getThisVolumeReader, setDataOrigin, setDataOrigin, setDataSpacing, setDataSpacing, setFilePattern, setFilePrefix, setImageRange, setImageRange
 
Methods inherited from class vtk.vtkImageSource
getOutput, getOutput, getThisImageSource, setOutput
 
Methods inherited from class vtk.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkVolume16Reader

public vtkVolume16Reader()

vtkVolume16Reader

protected vtkVolume16Reader(int dmy)
Method Detail

getThisVolume16Reader

public vtkVolume16Reader getThisVolume16Reader()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkVolumeReader

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkVolumeReader

setDataDimensions

public void setDataDimensions(int id0,
                              int id1)
Specify the dimensions for the data.


setDataDimensions

public void setDataDimensions(int[] id0)
Specify the dimensions for the data.


getDataDimensions

public int[] getDataDimensions()
Specify the dimensions for the data.


setDataMask

public void setDataMask(int id0)
Specify a mask used to eliminate data in the data file (e.g., connectivity bits).


getDataMask

public int getDataMask()
Specify a mask used to eliminate data in the data file (e.g., connectivity bits).


setHeaderSize

public void setHeaderSize(int id0)
Specify the number of bytes to seek over at start of image.


getHeaderSize

public int getHeaderSize()
Specify the number of bytes to seek over at start of image.


setDataByteOrderToBigEndian

public void setDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.


setDataByteOrderToLittleEndian

public void setDataByteOrderToLittleEndian()
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.


getDataByteOrder

public int getDataByteOrder()
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.


setDataByteOrder

public void setDataByteOrder(int id0)
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.


getDataByteOrderAsString

public java.lang.String getDataByteOrderAsString()
These methods should be used instead of the SwapBytes methods. They indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. As a quick note most UNIX machines are BigEndian while PC's and VAX tend to be LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetDataByteOrderToLittleEndian otherwise SetDataByteOrderToBigEndian.


setSwapBytes

public void setSwapBytes(int id0)
Turn on/off byte swapping.


getSwapBytes

public int getSwapBytes()
Turn on/off byte swapping.


swapBytesOn

public void swapBytesOn()
Turn on/off byte swapping.


swapBytesOff

public void swapBytesOff()
Turn on/off byte swapping.


setTransform

public void setTransform(vtkTransform id0)
Set/Get transformation matrix to transform the data from slice space into world space. This matrix must be a permutation matrix. To qualify, the sums of the rows must be + or - 1.


getTransform

public vtkTransform getTransform()
Set/Get transformation matrix to transform the data from slice space into world space. This matrix must be a permutation matrix. To qualify, the sums of the rows must be + or - 1.


getImage

public vtkImageData getImage(int id0)
Other objects make use of these methods

Overrides:
getImage in class vtkVolumeReader

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkVolumeReader


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.