vtk
Class vtkCleanPolyData

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkPolyDataToPolyDataFilter
                          extended byvtk.vtkCleanPolyData
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkQuantizePolyDataPoints

public class vtkCleanPolyData
extends vtkPolyDataToPolyDataFilter
implements java.io.Serializable

vtkCleanPolyData - merge duplicate points, and/or remove unused points and/or remove degenerate cells. vtkCleanPolyData is a filter that takes polygonal data as input and generates polygonal data as output. vtkCleanPolyData can merge duplicate points (within specified tolerance and if enabled), eliminate points that are not used, and if enabled, transform degenerate cells into appropriate forms (for example, a triangle is converted into a line if two points of triangle are merged). Conversion of degenerate cells is controlled by the flags ConvertLinesToPoints, ConvertPolysToLines, ConvertStripsToPolys which act cumulatively such that a degenerate strip may become a poly. The full set is Line with 1 points -> Vert (if ConvertLinesToPoints) Poly with 2 points -> Line (if ConvertPolysToLines) Poly with 1 points -> Vert (if ConvertPolysToLines && ConvertLinesToPoints) Strp with 3 points -> Poly (if ConvertStripsToPolys) Strp with 2 points -> Line (if ConvertStripsToPolys && ConvertPolysToLines) Strp with 1 points -> Vert (if ConvertStripsToPolys && ConvertPolysToLines && ConvertLinesToPoints) If tolerance is specified precisely=0.0, then vtkCleanPolyData will use the vtkMergePoints object to merge points (which is faster). Otherwise the slower vtkPointLocator is used. Before inserting points into the point locator, this class calls a function OperateOnPoint which can be used (in subclasses) to further refine the cleaning process. See vtkQuantizePolyDataPoints. Note that merging of points can be disabled. In this case, a point locator will not be used, and points that are not used by any cells will be eliminated, but never merged. JavaBean wrapper for vtkCleanPolyData 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
  vtkCleanPolyData()
           
protected vtkCleanPolyData(int dmy)
           
 
Method Summary
 void convertLinesToPointsOff()
          Turn on/off conversion of degenerate lines to points
 void convertLinesToPointsOn()
          Turn on/off conversion of degenerate lines to points
 void convertPolysToLinesOff()
          Turn on/off conversion of degenerate polys to lines
 void convertPolysToLinesOn()
          Turn on/off conversion of degenerate polys to lines
 void convertStripsToPolysOff()
          Turn on/off conversion of degenerate strips to polys
 void convertStripsToPolysOn()
          Turn on/off conversion of degenerate strips to polys
 void createDefaultLocator()
          Create default locator.
 double getAbsoluteTolerance()
          Specify tolerance in absolute terms
 double getAbsoluteToleranceMaxValue()
          Specify tolerance in absolute terms
 double getAbsoluteToleranceMinValue()
          Specify tolerance in absolute terms
 java.lang.String getClassName()
          Return the class name as a string.
 int getConvertLinesToPoints()
          Turn on/off conversion of degenerate lines to points
 int getConvertPolysToLines()
          Turn on/off conversion of degenerate polys to lines
 int getConvertStripsToPolys()
          Turn on/off conversion of degenerate strips to polys
 vtkPointLocator getLocator()
          Set/Get a spatial locator for speeding the search process.
 int getMTime()
          Get the MTime of this object also considering the locator.
 int getPieceInvariant()
           
 int getPointMerging()
          Set/Get a boolean value that controls whether point merging is performed.
 vtkCleanPolyData getThisCleanPolyData()
           
 double getTolerance()
          Specify tolerance in terms of fraction of bounding box length.
 int getToleranceIsAbsolute()
          By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)
 double getToleranceMaxValue()
          Specify tolerance in terms of fraction of bounding box length.
 double getToleranceMinValue()
          Specify tolerance in terms of fraction of bounding box length.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void operateOnBounds(double[] id0, double[] id1)
          Perform operation on bounds
 void operateOnPoint(double[] id0, double[] id1)
          Perform operation on a point
 void pieceInvariantOff()
           
 void pieceInvariantOn()
           
 void pointMergingOff()
          Set/Get a boolean value that controls whether point merging is performed.
 void pointMergingOn()
          Set/Get a boolean value that controls whether point merging is performed.
 void releaseLocator()
          Release locator
 void setAbsoluteTolerance(double id0)
          Specify tolerance in absolute terms
 void setConvertLinesToPoints(int id0)
          Turn on/off conversion of degenerate lines to points
 void setConvertPolysToLines(int id0)
          Turn on/off conversion of degenerate polys to lines
 void setConvertStripsToPolys(int id0)
          Turn on/off conversion of degenerate strips to polys
 void setLocator(vtkPointLocator id0)
          Set/Get a spatial locator for speeding the search process.
 void setPieceInvariant(int id0)
           
 void setPointMerging(int id0)
          Set/Get a boolean value that controls whether point merging is performed.
 void setTolerance(double id0)
          Specify tolerance in terms of fraction of bounding box length.
 void setToleranceIsAbsolute(int id0)
          By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)
 void toleranceIsAbsoluteOff()
          By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)
 void toleranceIsAbsoluteOn()
          By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkPolyDataToPolyDataFilter
getInput, getThisPolyDataToPolyDataFilter, setInput
 
Methods inherited from class vtk.vtkPolyDataSource
getOutput, getOutput, getThisPolyDataSource, 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, 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

vtkCleanPolyData

public vtkCleanPolyData()

vtkCleanPolyData

protected vtkCleanPolyData(int dmy)
Method Detail

getThisCleanPolyData

public vtkCleanPolyData getThisCleanPolyData()

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 vtkPolyDataToPolyDataFilter

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 vtkPolyDataToPolyDataFilter

setToleranceIsAbsolute

public void setToleranceIsAbsolute(int id0)
By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)


toleranceIsAbsoluteOn

public void toleranceIsAbsoluteOn()
By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)


toleranceIsAbsoluteOff

public void toleranceIsAbsoluteOff()
By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)


getToleranceIsAbsolute

public int getToleranceIsAbsolute()
By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging)


setTolerance

public void setTolerance(double id0)
Specify tolerance in terms of fraction of bounding box length.


getToleranceMinValue

public double getToleranceMinValue()
Specify tolerance in terms of fraction of bounding box length.


getToleranceMaxValue

public double getToleranceMaxValue()
Specify tolerance in terms of fraction of bounding box length.


getTolerance

public double getTolerance()
Specify tolerance in terms of fraction of bounding box length.


setAbsoluteTolerance

public void setAbsoluteTolerance(double id0)
Specify tolerance in absolute terms


getAbsoluteToleranceMinValue

public double getAbsoluteToleranceMinValue()
Specify tolerance in absolute terms


getAbsoluteToleranceMaxValue

public double getAbsoluteToleranceMaxValue()
Specify tolerance in absolute terms


getAbsoluteTolerance

public double getAbsoluteTolerance()
Specify tolerance in absolute terms


setConvertLinesToPoints

public void setConvertLinesToPoints(int id0)
Turn on/off conversion of degenerate lines to points


convertLinesToPointsOn

public void convertLinesToPointsOn()
Turn on/off conversion of degenerate lines to points


convertLinesToPointsOff

public void convertLinesToPointsOff()
Turn on/off conversion of degenerate lines to points


getConvertLinesToPoints

public int getConvertLinesToPoints()
Turn on/off conversion of degenerate lines to points


setConvertPolysToLines

public void setConvertPolysToLines(int id0)
Turn on/off conversion of degenerate polys to lines


convertPolysToLinesOn

public void convertPolysToLinesOn()
Turn on/off conversion of degenerate polys to lines


convertPolysToLinesOff

public void convertPolysToLinesOff()
Turn on/off conversion of degenerate polys to lines


getConvertPolysToLines

public int getConvertPolysToLines()
Turn on/off conversion of degenerate polys to lines


setConvertStripsToPolys

public void setConvertStripsToPolys(int id0)
Turn on/off conversion of degenerate strips to polys


convertStripsToPolysOn

public void convertStripsToPolysOn()
Turn on/off conversion of degenerate strips to polys


convertStripsToPolysOff

public void convertStripsToPolysOff()
Turn on/off conversion of degenerate strips to polys


getConvertStripsToPolys

public int getConvertStripsToPolys()
Turn on/off conversion of degenerate strips to polys


setPointMerging

public void setPointMerging(int id0)
Set/Get a boolean value that controls whether point merging is performed. If on, a locator will be used, and points laying within the appropriate tolerance may be merged. If off, points are never merged. By default, merging is on.


getPointMerging

public int getPointMerging()
Set/Get a boolean value that controls whether point merging is performed. If on, a locator will be used, and points laying within the appropriate tolerance may be merged. If off, points are never merged. By default, merging is on.


pointMergingOn

public void pointMergingOn()
Set/Get a boolean value that controls whether point merging is performed. If on, a locator will be used, and points laying within the appropriate tolerance may be merged. If off, points are never merged. By default, merging is on.


pointMergingOff

public void pointMergingOff()
Set/Get a boolean value that controls whether point merging is performed. If on, a locator will be used, and points laying within the appropriate tolerance may be merged. If off, points are never merged. By default, merging is on.


setLocator

public void setLocator(vtkPointLocator id0)
Set/Get a spatial locator for speeding the search process. By default an instance of vtkMergePoints is used.


getLocator

public vtkPointLocator getLocator()
Set/Get a spatial locator for speeding the search process. By default an instance of vtkMergePoints is used.


createDefaultLocator

public void createDefaultLocator()
Create default locator. Used to create one when none is specified.


releaseLocator

public void releaseLocator()
Release locator


getMTime

public int getMTime()
Get the MTime of this object also considering the locator.

Overrides:
getMTime in class vtkObject

operateOnPoint

public void operateOnPoint(double[] id0,
                           double[] id1)
Perform operation on a point


operateOnBounds

public void operateOnBounds(double[] id0,
                            double[] id1)
Perform operation on bounds


setPieceInvariant

public void setPieceInvariant(int id0)

getPieceInvariant

public int getPieceInvariant()

pieceInvariantOn

public void pieceInvariantOn()

pieceInvariantOff

public void pieceInvariantOff()

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkPolyDataToPolyDataFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.