vtk
Class vtkDataSetReader

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkDataReader
                      extended byvtk.vtkDataSetReader
All Implemented Interfaces:
java.io.Serializable

public class vtkDataSetReader
extends vtkDataReader
implements java.io.Serializable

vtkDataSetReader - class to read any type of vtk dataset. vtkDataSetReader is a class that provides instance variables and methods to read any type of dataset in Visualization Toolkit (vtk) format. The output type of this class will vary depending upon the type of data file. Convenience methods are provided to keep the data as a particular type. (See text for format description details). The superclass of this class, vtkDataReader, provides many methods for controlling the reading of the data file, see vtkDataReader for more information. JavaBean wrapper for vtkDataSetReader object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkDataReader, vtkPolyDataReader, vtkRectilinearGridReader, , vtkStructuredPointsReader, vtkStructuredGridReader, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkDataSetReader()
           
protected vtkDataSetReader(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkDataSet getOutput()
          Get the output of this source as a general vtkDataSet.
 vtkDataSet getOutput(int id0)
          Get the output of this source as a general vtkDataSet.
 vtkPolyData getPolyDataOutput()
          Get the output as various concrete types.
 vtkRectilinearGrid getRectilinearGridOutput()
          Get the output as various concrete types.
 vtkStructuredGrid getStructuredGridOutput()
          Get the output as various concrete types.
 vtkStructuredPoints getStructuredPointsOutput()
          Get the output as various concrete types.
 vtkDataSetReader getThisDataSetReader()
           
 vtkUnstructuredGrid getUnstructuredGridOutput()
          Get the output as various concrete types.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 int readOutputType()
          This method can be used to find out the type of output expected without needing to read the whole file.
 void update()
          If there is no output, execute anyway.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkDataReader
closeVTKFile, getFieldDataName, getFieldDataNameInFile, getFileName, getFileType, getHeader, getInputArray, getInputString, getInputStringLength, getLookupTableName, getNormalsName, getNormalsNameInFile, getNumberOfFieldDataInFile, getNumberOfNormalsInFile, getNumberOfScalarsInFile, getNumberOfTCoordsInFile, getNumberOfTensorsInFile, getNumberOfVectorsInFile, getReadFromInputString, getScalarsName, getScalarsNameInFile, getTCoordsName, getTCoordsNameInFile, getTensorsName, getTensorsNameInFile, getThisDataReader, getVectorsName, getVectorsNameInFile, isFilePolyData, isFileRectilinearGrid, isFileStructuredGrid, isFileStructuredPoints, isFileUnstructuredGrid, isFileValid, openVTKFile, read, readArray, readCellData, readCoordinates, readFieldData, readFromInputStringOff, readFromInputStringOn, readHeader, readPointData, readPoints, SetBinaryInputString, setFieldDataName, setFileName, setInputArray, setInputString, setInputString, setLookupTableName, setNormalsName, setReadFromInputString, setScalarsName, setTCoordsName, setTensorsName, setVectorsName
 
Methods inherited from class vtk.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, 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

vtkDataSetReader

public vtkDataSetReader()

vtkDataSetReader

protected vtkDataSetReader(int dmy)
Method Detail

getThisDataSetReader

public vtkDataSetReader getThisDataSetReader()

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 vtkDataReader

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 vtkDataReader

getOutput

public vtkDataSet getOutput()
Get the output of this source as a general vtkDataSet. Since we need to know the type of the data, the FileName must be set before GetOutput is applied.


getOutput

public vtkDataSet getOutput(int id0)
Get the output of this source as a general vtkDataSet. Since we need to know the type of the data, the FileName must be set before GetOutput is applied.


getPolyDataOutput

public vtkPolyData getPolyDataOutput()
Get the output as various concrete types. This method is typically used when you know exactly what type of data is being read. Otherwise, use the general GetOutput() method. If the wrong type is used NULL is returned. (You must also set the filename of the object prior to getting the output.)


getStructuredPointsOutput

public vtkStructuredPoints getStructuredPointsOutput()
Get the output as various concrete types. This method is typically used when you know exactly what type of data is being read. Otherwise, use the general GetOutput() method. If the wrong type is used NULL is returned. (You must also set the filename of the object prior to getting the output.)


getStructuredGridOutput

public vtkStructuredGrid getStructuredGridOutput()
Get the output as various concrete types. This method is typically used when you know exactly what type of data is being read. Otherwise, use the general GetOutput() method. If the wrong type is used NULL is returned. (You must also set the filename of the object prior to getting the output.)


getUnstructuredGridOutput

public vtkUnstructuredGrid getUnstructuredGridOutput()
Get the output as various concrete types. This method is typically used when you know exactly what type of data is being read. Otherwise, use the general GetOutput() method. If the wrong type is used NULL is returned. (You must also set the filename of the object prior to getting the output.)


getRectilinearGridOutput

public vtkRectilinearGrid getRectilinearGridOutput()
Get the output as various concrete types. This method is typically used when you know exactly what type of data is being read. Otherwise, use the general GetOutput() method. If the wrong type is used NULL is returned. (You must also set the filename of the object prior to getting the output.)


update

public void update()
If there is no output, execute anyway. Execute creates an output.

Overrides:
update in class vtkSource

readOutputType

public int readOutputType()
This method can be used to find out the type of output expected without needing to read the whole file.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkDataReader

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkDataReader


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.