vtk
Class vtkRuledSurfaceFilter

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkPolyDataToPolyDataFilter
                          extended byvtk.vtkRuledSurfaceFilter
All Implemented Interfaces:
java.io.Serializable

public class vtkRuledSurfaceFilter
extends vtkPolyDataToPolyDataFilter
implements java.io.Serializable

vtkRuledSurfaceFilter - generates a surface from a set of lines. vtkRuledSurfaceFilter is a filter that generates a surface from a set of lines. The lines are assumed to be "parallel" in the sense that they do not intersect and remain somewhat close to one another. A surface is generated by connecting the points defining each pair of lines with straight lines. This creates a strip for each pair of lines (i.e., a triangulation is created from two generating lines). The filter can handle an arbitrary number of lines, with lines i and i+1 assumed connected. Note that there are several different approaches for creating the ruled surface, the method for creating the surface can either use the input points or resample from the polylines (using a user-specified resolution). This filter offers some other important features. A DistanceFactor ivar is used to decide when two lines are too far apart to connect. (The factor is a multiple of the distance between the first two points of the two lines defining the strip.) If the distance between the two generating lines becomes too great, then the surface is not generated in that region. (Note: if the lines separate and then merge, then a hole can be generated in the surface.) In addition, the Offset and OnRation ivars can be used to create nifty striped surfaces. Closed surfaces (e.g., tubes) can be created by setting the CloseSurface ivar. (The surface can be closed in the other direction by repeating the first and last point in the polylines defining the surface.) An important use of this filter is to combine it with vtkStreamLine to generate stream surfaces. It can also be used to create surfaces from contours. JavaBean wrapper for vtkRuledSurfaceFilter object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkRuledSurfaceFilter()
           
protected vtkRuledSurfaceFilter(int dmy)
           
 
Method Summary
 void closeSurfaceOff()
          Indicate whether the surface is to be closed.
 void closeSurfaceOn()
          Indicate whether the surface is to be closed.
 java.lang.String getClassName()
          Return the class name as a string.
 int getCloseSurface()
          Indicate whether the surface is to be closed.
 double getDistanceFactor()
          Set/Get the factor that controls tearing of the surface.
 double getDistanceFactorMaxValue()
          Set/Get the factor that controls tearing of the surface.
 double getDistanceFactorMinValue()
          Set/Get the factor that controls tearing of the surface.
 int getOffset()
          Control the striping of the ruled surface.
 int getOffsetMaxValue()
          Control the striping of the ruled surface.
 int getOffsetMinValue()
          Control the striping of the ruled surface.
 int getOnRatio()
          Control the striping of the ruled surface.
 int getOnRatioMaxValue()
          Control the striping of the ruled surface.
 int getOnRatioMinValue()
          Control the striping of the ruled surface.
 int getPassLines()
          Indicate whether the generating lines are to be passed to the output.
 int[] getResolution()
          If the ruled surface generation mode is RESAMPLE, then these parameters are used to determine the resample rate.
 int getRuledMode()
          Set the mode by which to create the ruled surface.
 java.lang.String getRuledModeAsString()
          Set the mode by which to create the ruled surface.
 int getRuledModeMaxValue()
          Set the mode by which to create the ruled surface.
 int getRuledModeMinValue()
          Set the mode by which to create the ruled surface.
 vtkRuledSurfaceFilter getThisRuledSurfaceFilter()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void passLinesOff()
          Indicate whether the generating lines are to be passed to the output.
 void passLinesOn()
          Indicate whether the generating lines are to be passed to the output.
 void setCloseSurface(int id0)
          Indicate whether the surface is to be closed.
 void setDistanceFactor(double id0)
          Set/Get the factor that controls tearing of the surface.
 void setOffset(int id0)
          Control the striping of the ruled surface.
 void setOnRatio(int id0)
          Control the striping of the ruled surface.
 void setPassLines(int id0)
          Indicate whether the generating lines are to be passed to the output.
 void setResolution(int[] id0)
          If the ruled surface generation mode is RESAMPLE, then these parameters are used to determine the resample rate.
 void setResolution(int id0, int id1)
          If the ruled surface generation mode is RESAMPLE, then these parameters are used to determine the resample rate.
 void setRuledMode(int id0)
          Set the mode by which to create the ruled surface.
 void setRuledModeToPointWalk()
          Set the mode by which to create the ruled surface.
 void setRuledModeToResample()
          Set the mode by which to create the ruled surface.
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, 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

vtkRuledSurfaceFilter

public vtkRuledSurfaceFilter()

vtkRuledSurfaceFilter

protected vtkRuledSurfaceFilter(int dmy)
Method Detail

getThisRuledSurfaceFilter

public vtkRuledSurfaceFilter getThisRuledSurfaceFilter()

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

setDistanceFactor

public void setDistanceFactor(double id0)
Set/Get the factor that controls tearing of the surface.


getDistanceFactorMinValue

public double getDistanceFactorMinValue()
Set/Get the factor that controls tearing of the surface.


getDistanceFactorMaxValue

public double getDistanceFactorMaxValue()
Set/Get the factor that controls tearing of the surface.


getDistanceFactor

public double getDistanceFactor()
Set/Get the factor that controls tearing of the surface.


setOnRatio

public void setOnRatio(int id0)
Control the striping of the ruled surface. If OnRatio is greater than 1, then every nth strip is turned on, beginning with the Offset strip.


getOnRatioMinValue

public int getOnRatioMinValue()
Control the striping of the ruled surface. If OnRatio is greater than 1, then every nth strip is turned on, beginning with the Offset strip.


getOnRatioMaxValue

public int getOnRatioMaxValue()
Control the striping of the ruled surface. If OnRatio is greater than 1, then every nth strip is turned on, beginning with the Offset strip.


getOnRatio

public int getOnRatio()
Control the striping of the ruled surface. If OnRatio is greater than 1, then every nth strip is turned on, beginning with the Offset strip.


setOffset

public void setOffset(int id0)
Control the striping of the ruled surface. The offset sets the first stripe that is visible. Offset is generally used with OnRatio to create nifty striping effects.


getOffsetMinValue

public int getOffsetMinValue()
Control the striping of the ruled surface. The offset sets the first stripe that is visible. Offset is generally used with OnRatio to create nifty striping effects.


getOffsetMaxValue

public int getOffsetMaxValue()
Control the striping of the ruled surface. The offset sets the first stripe that is visible. Offset is generally used with OnRatio to create nifty striping effects.


getOffset

public int getOffset()
Control the striping of the ruled surface. The offset sets the first stripe that is visible. Offset is generally used with OnRatio to create nifty striping effects.


setCloseSurface

public void setCloseSurface(int id0)
Indicate whether the surface is to be closed. If this boolean is on, then the first and last polyline are used to generate a stripe that closes the surface. (Note: to close the surface in the other direction, repeat the first point in the polyline as the last point in the polyline.)


getCloseSurface

public int getCloseSurface()
Indicate whether the surface is to be closed. If this boolean is on, then the first and last polyline are used to generate a stripe that closes the surface. (Note: to close the surface in the other direction, repeat the first point in the polyline as the last point in the polyline.)


closeSurfaceOn

public void closeSurfaceOn()
Indicate whether the surface is to be closed. If this boolean is on, then the first and last polyline are used to generate a stripe that closes the surface. (Note: to close the surface in the other direction, repeat the first point in the polyline as the last point in the polyline.)


closeSurfaceOff

public void closeSurfaceOff()
Indicate whether the surface is to be closed. If this boolean is on, then the first and last polyline are used to generate a stripe that closes the surface. (Note: to close the surface in the other direction, repeat the first point in the polyline as the last point in the polyline.)


setRuledMode

public void setRuledMode(int id0)
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


getRuledModeMinValue

public int getRuledModeMinValue()
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


getRuledModeMaxValue

public int getRuledModeMaxValue()
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


getRuledMode

public int getRuledMode()
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


setRuledModeToResample

public void setRuledModeToResample()
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


setRuledModeToPointWalk

public void setRuledModeToPointWalk()
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


getRuledModeAsString

public java.lang.String getRuledModeAsString()
Set the mode by which to create the ruled surface. (Dramatically different results are possible depending on the chosen mode.) The resample mode evenly resamples the polylines (based on length) and generates triangle strips. The point walk mode uses the existing points and walks around the polyline using existing points.


setResolution

public void setResolution(int id0,
                          int id1)
If the ruled surface generation mode is RESAMPLE, then these parameters are used to determine the resample rate. Resolution[0] defines the resolution in the direction of the polylines; Resolution[1] defines the resolution across the polylines (i.e., direction orthogonal to Resolution[0]).


setResolution

public void setResolution(int[] id0)
If the ruled surface generation mode is RESAMPLE, then these parameters are used to determine the resample rate. Resolution[0] defines the resolution in the direction of the polylines; Resolution[1] defines the resolution across the polylines (i.e., direction orthogonal to Resolution[0]).


getResolution

public int[] getResolution()
If the ruled surface generation mode is RESAMPLE, then these parameters are used to determine the resample rate. Resolution[0] defines the resolution in the direction of the polylines; Resolution[1] defines the resolution across the polylines (i.e., direction orthogonal to Resolution[0]).


setPassLines

public void setPassLines(int id0)
Indicate whether the generating lines are to be passed to the output. By defualt lines are not passed to the output.


getPassLines

public int getPassLines()
Indicate whether the generating lines are to be passed to the output. By defualt lines are not passed to the output.


passLinesOn

public void passLinesOn()
Indicate whether the generating lines are to be passed to the output. By defualt lines are not passed to the output.


passLinesOff

public void passLinesOff()
Indicate whether the generating lines are to be passed to the output. By defualt lines are not passed to the output.


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.