vtk
Class vtkProgrammableFilter

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkDataSetSource
                      extended byvtk.vtkDataSetToDataSetFilter
                          extended byvtk.vtkProgrammableFilter
All Implemented Interfaces:
java.io.Serializable

public class vtkProgrammableFilter
extends vtkDataSetToDataSetFilter
implements java.io.Serializable

vtkProgrammableFilter - a user-programmable filter. vtkProgrammableFilter is a filter that can be programmed by the user. To use the filter you define a function that retrieves input of the correct type, creates data, and then manipulates the output of the filter. Using this filter avoids the need for subclassing - and the function can be defined in an interpreter wrapper language such as Tcl or Java. The trickiest part of using this filter is that the input and output methods are unusual and cannot be compile-time type checked. Instead, as a user of this filter it is your responsibility to set and get the correct input and output types. JavaBean wrapper for vtkProgrammableFilter object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkProgrammableFilter()
           
protected vtkProgrammableFilter(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkPolyData getPolyDataInput()
          Get the input as a concrete type.
 vtkRectilinearGrid getRectilinearGridInput()
          Get the input as a concrete type.
 vtkStructuredGrid getStructuredGridInput()
          Get the input as a concrete type.
 vtkStructuredPoints getStructuredPointsInput()
          Get the input as a concrete type.
 vtkProgrammableFilter getThisProgrammableFilter()
           
 vtkUnstructuredGrid getUnstructuredGridInput()
          Get the input as a concrete type.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setExecuteMethod(java.lang.Object id0, java.lang.String id1)
          Specify the function to use to operate on the point attribute data.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkDataSetToDataSetFilter
computeInputUpdateExtents, getInput, getOutput, getOutput, getPolyDataOutput, getRectilinearGridOutput, getStructuredGridOutput, getStructuredPointsOutput, getThisDataSetToDataSetFilter, getUnstructuredGridOutput, setInput
 
Methods inherited from class vtk.vtkDataSetSource
getThisDataSetSource, 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, 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

vtkProgrammableFilter

public vtkProgrammableFilter()

vtkProgrammableFilter

protected vtkProgrammableFilter(int dmy)
Method Detail

getThisProgrammableFilter

public vtkProgrammableFilter getThisProgrammableFilter()

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 vtkDataSetToDataSetFilter

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 vtkDataSetToDataSetFilter

setExecuteMethod

public void setExecuteMethod(java.lang.Object id0,
                             java.lang.String id1)
Specify the function to use to operate on the point attribute data. Note that the function takes a single (void *) argument.


getPolyDataInput

public vtkPolyData getPolyDataInput()
Get the input as a concrete type. This method is typically used by the writer of the filter function to get the input as a particular type (i.e., it essentially does type casting). It is the users responsibility to know the correct type of the input data.


getStructuredPointsInput

public vtkStructuredPoints getStructuredPointsInput()
Get the input as a concrete type.


getStructuredGridInput

public vtkStructuredGrid getStructuredGridInput()
Get the input as a concrete type.


getUnstructuredGridInput

public vtkUnstructuredGrid getUnstructuredGridInput()
Get the input as a concrete type.


getRectilinearGridInput

public vtkRectilinearGrid getRectilinearGridInput()
Get the input as a concrete type.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkDataSetToDataSetFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.