vtk
Class vtkCutter

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkDataSetToPolyDataFilter
                          extended byvtk.vtkCutter
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkKitwareCutter

public class vtkCutter
extends vtkDataSetToPolyDataFilter
implements java.io.Serializable

vtkCutter - Cut vtkDataSet with user-specified implicit function. vtkCutter is a filter to cut through data using any subclass of vtkImplicitFunction. That is, a polygonal surface is created corresponding to the implicit function F(x,y,z) = value(s), where you can specify one or more values used to cut with. In VTK, cutting means reducing a cell of dimension N to a cut surface of dimension N-1. For example, a tetrahedron when cut by a plane (i.e., vtkPlane implicit function) will generate triangles. (In comparison, clipping takes a N dimensional cell and creates N dimension primitives.) vtkCutter is generally used to "slice-through" a dataset, generating a surface that can be visualized. It is also possible to use vtkCutter to do a form of volume rendering. vtkCutter does this by generating multiple cut surfaces (usually planes) which are ordered (and rendered) from back-to-front. The surfaces are set translucent to give a volumetric rendering effect. JavaBean wrapper for vtkCutter object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkCutter()
           
protected vtkCutter(int dmy)
           
 
Method Summary
 void createDefaultLocator()
          Create default locator.
 void generateCutScalarsOff()
          If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.
 void generateCutScalarsOn()
          If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.
 void generateValues(int id0, double[] id1)
          Generate numContours equally spaced contour values between specified range.
 void generateValues(int id0, double id1, double id2)
          Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.
 java.lang.String getClassName()
          Return the class name as a string.
 vtkImplicitFunction getCutFunction()
           
 int getGenerateCutScalars()
          If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.
 vtkPointLocator getLocator()
          Specify a spatial locator for merging points.
 int getMTime()
          Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.
 int getNumberOfContours()
          Generate numContours equally spaced contour values between specified range.
 int getSortBy()
          Set the sorting order for the generated polydata.
 java.lang.String getSortByAsString()
          Set the sorting order for the generated polydata.
 int getSortByMaxValue()
          Set the sorting order for the generated polydata.
 int getSortByMinValue()
          Set the sorting order for the generated polydata.
 vtkCutter getThisCutter()
           
 double getValue(int id0)
          Get a pointer to an array of contour values.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setCutFunction(vtkImplicitFunction id0)
           
 void setGenerateCutScalars(int id0)
          If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.
 void setLocator(vtkPointLocator id0)
          Specify a spatial locator for merging points.
 void setNumberOfContours(int id0)
          Get the number of contours in the list of contour values.
 void setSortBy(int id0)
          Set the sorting order for the generated polydata.
 void setSortByToSortByCell()
          Set the sorting order for the generated polydata.
 void setSortByToSortByValue()
          Set the sorting order for the generated polydata.
 void setValue(int id0, double id1)
          Get the ith contour value.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkDataSetToPolyDataFilter
computeInputUpdateExtents, getInput, getThisDataSetToPolyDataFilter, setInput
 
Methods inherited from class vtk.vtkPolyDataSource
getOutput, getOutput, getThisPolyDataSource, setOutput
 
Methods inherited from class vtk.vtkSource
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, 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

vtkCutter

public vtkCutter()

vtkCutter

protected vtkCutter(int dmy)
Method Detail

getThisCutter

public vtkCutter getThisCutter()

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 vtkDataSetToPolyDataFilter

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 vtkDataSetToPolyDataFilter

setValue

public void setValue(int id0,
                     double id1)
Get the ith contour value.


getValue

public double getValue(int id0)
Get a pointer to an array of contour values. There will be GetNumberOfContours() values in the list.


setNumberOfContours

public void setNumberOfContours(int id0)
Get the number of contours in the list of contour values.


getNumberOfContours

public int getNumberOfContours()
Generate numContours equally spaced contour values between specified range. Contour values will include min/max range values.


generateValues

public void generateValues(int id0,
                           double[] id1)
Generate numContours equally spaced contour values between specified range. Contour values will include min/max range values.


generateValues

public void generateValues(int id0,
                           double id1,
                           double id2)
Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.


getMTime

public int getMTime()
Override GetMTime because we delegate to vtkContourValues and refer to vtkImplicitFunction.

Overrides:
getMTime in class vtkObject

setCutFunction

public void setCutFunction(vtkImplicitFunction id0)

getCutFunction

public vtkImplicitFunction getCutFunction()

setGenerateCutScalars

public void setGenerateCutScalars(int id0)
If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.


getGenerateCutScalars

public int getGenerateCutScalars()
If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.


generateCutScalarsOn

public void generateCutScalarsOn()
If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.


generateCutScalarsOff

public void generateCutScalarsOff()
If this flag is enabled, then the output scalar values will be interpolated from the implicit function values, and not the input scalar data.


setLocator

public void setLocator(vtkPointLocator id0)
Specify a spatial locator for merging points. By default, an instance of vtkMergePoints is used.


getLocator

public vtkPointLocator getLocator()
Specify a spatial locator for merging points. By default, an instance of vtkMergePoints is used.


setSortBy

public void setSortBy(int id0)
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


getSortByMinValue

public int getSortByMinValue()
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


getSortByMaxValue

public int getSortByMaxValue()
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


getSortBy

public int getSortBy()
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


setSortByToSortByValue

public void setSortByToSortByValue()
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


setSortByToSortByCell

public void setSortByToSortByCell()
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


getSortByAsString

public java.lang.String getSortByAsString()
Set the sorting order for the generated polydata. There are two possibilities: Sort by value = 0 - This is the most efficient sort. For each cell, all contour values are processed. This is the default. Sort by cell = 1 - For each contour value, all cells are processed. This order should be used if the extracted polygons must be rendered in a back-to-front or front-to-back order. This is very problem dependent. For most applications, the default order is fine (and faster).


createDefaultLocator

public void createDefaultLocator()
Create default locator. Used to create one when none is specified. The locator is used to merge coincident points.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkDataSetToPolyDataFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.