vtk
Class vtkRectilinearGridToTetrahedra

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

public class vtkRectilinearGridToTetrahedra
extends vtkUnstructuredGridSource
implements java.io.Serializable

vtkRectilinearGridToTetrahedra - create a Tetrahedral mesh from a RectilinearGrid. vtkRectilinearGridToTetrahedra forms a mesh of Tetrahedra from a vtkRectilinearGrid. The tetrahedra can be 5 per cell, 6 per cell, or a mixture of 5 or 12 per cell. The resulting mesh is consistent, meaning that there are no edge crossings and that each tetrahedron face is shared by two tetrahedra, except those tetrahedra on the boundary. All tetrahedra are right handed. Note that 12 tetrahedra per cell means adding a point in the center of the cell. In order to subdivide some cells into 5 and some cells into 12 tetrahedra: SetTetraPerCellTo5And12(); Set the Scalars of the Input RectilinearGrid to be 5 or 12 depending on what you want per cell of the RectilinearGrid. If you set RememberVoxelId, the scalars of the tetrahedron will be set to the Id of the Cell in the RectilinearGrid from which the tetrahedron came. .SECTION Thanks This class was developed by Samson J. Timoner of the MIT Artificial Intelligence Laboratory JavaBean wrapper for vtkRectilinearGridToTetrahedra object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkRectilinearGridToTetrahedra()
           
protected vtkRectilinearGridToTetrahedra(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkRectilinearGrid getInput()
          Set / get the input data or filter.
 int getRememberVoxelId()
          Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
 int getTetraPerCell()
          Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
 vtkRectilinearGridToTetrahedra getThisRectilinearGridToTetrahedra()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void rememberVoxelIdOff()
          Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
 void rememberVoxelIdOn()
          Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
 void setInput(double[] id0, double[] id1, double id2)
          This function for convenience for creating a Rectilinear Grid If Spacing does not fit evenly into extent, the last cell will have a different width (or height or depth).
 void setInput(double id0, double id1, double id2, double id3, double id4, double id5, double id6)
          This version of the function for the wrappers
 void setInput(vtkRectilinearGrid id0)
          Set / get the input data or filter.
 void setRememberVoxelId(int id0)
          Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?
 void setTetraPerCell(int id0)
          Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
 void setTetraPerCellTo12()
          Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
 void setTetraPerCellTo5()
          Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
 void setTetraPerCellTo5And12()
          Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
 void setTetraPerCellTo6()
          Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkUnstructuredGridSource
getOutput, getOutput, getThisUnstructuredGridSource, 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

vtkRectilinearGridToTetrahedra

public vtkRectilinearGridToTetrahedra()

vtkRectilinearGridToTetrahedra

protected vtkRectilinearGridToTetrahedra(int dmy)
Method Detail

getThisRectilinearGridToTetrahedra

public vtkRectilinearGridToTetrahedra getThisRectilinearGridToTetrahedra()

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 vtkUnstructuredGridSource

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 vtkUnstructuredGridSource

setTetraPerCellTo5

public void setTetraPerCellTo5()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.


setTetraPerCellTo6

public void setTetraPerCellTo6()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.


setTetraPerCellTo12

public void setTetraPerCellTo12()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.


setTetraPerCellTo5And12

public void setTetraPerCellTo5And12()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.


setTetraPerCell

public void setTetraPerCell(int id0)
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.


getTetraPerCell

public int getTetraPerCell()
Set the method to divide each cell (voxel) in the RectilinearGrid into tetrahedra.


setRememberVoxelId

public void setRememberVoxelId(int id0)
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?


getRememberVoxelId

public int getRememberVoxelId()
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?


rememberVoxelIdOn

public void rememberVoxelIdOn()
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?


rememberVoxelIdOff

public void rememberVoxelIdOff()
Should the tetrahedra have scalar data indicating which Voxel they came from in the vtkRectilinearGrid?


setInput

public void setInput(double[] id0,
                     double[] id1,
                     double id2)
This function for convenience for creating a Rectilinear Grid If Spacing does not fit evenly into extent, the last cell will have a different width (or height or depth). If Extent[i]/Spacing[i] is within tol of an integer, then assume the programmer meant an integer for direction i.


setInput

public void setInput(double id0,
                     double id1,
                     double id2,
                     double id3,
                     double id4,
                     double id5,
                     double id6)
This version of the function for the wrappers


setInput

public void setInput(vtkRectilinearGrid id0)
Set / get the input data or filter. If TetraPerCell is VTK_VOXEL_TO_5_and_12_TET then the input must have scalars, each set to 5 or 12 to specify how to subdivide each cell.


getInput

public vtkRectilinearGrid getInput()
Set / get the input data or filter. If TetraPerCell is VTK_VOXEL_TO_5_and_12_TET then the input must have scalars, each set to 5 or 12 to specify how to subdivide each cell.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkUnstructuredGridSource


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.