vtk
Class vtkProgrammableSource

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

public class vtkProgrammableSource
extends vtkSource
implements java.io.Serializable

vtkProgrammableSource - generate source dataset via a user-specified function. vtkProgrammableSource is a source object that is programmable by the user. To use this object, you must specify a function that creates the output. It is possible to generate an output dataset of any (concrete) type; it is up to the function to properly initialize and define the output. Typically, you use one of the methods to get a concrete output type (e.g., GetPolyDataOutput() or GetStructuredPointsOutput()), and then manipulate the output in the user-specified function. Example use of this include writing a function to read a data file or interface to another system. (You might want to do this in favor of deriving a new class.) Another important use of this class is that it allows users of interpreters (e.g., Tcl or Java) the ability to write source objects without having to recompile C++ code or generate new libraries. JavaBean wrapper for vtkProgrammableSource object.

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

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkProgrammableSource()
           
protected vtkProgrammableSource(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkPolyData getPolyDataOutput()
          Get the output as a concrete type.
 vtkRectilinearGrid getRectilinearGridOutput()
          Get the output as a concrete type.
 vtkStructuredGrid getStructuredGridOutput()
          Get the output as a concrete type.
 vtkStructuredPoints getStructuredPointsOutput()
          Get the output as a concrete type.
 vtkProgrammableSource getThisProgrammableSource()
           
 vtkUnstructuredGrid getUnstructuredGridOutput()
          Get the output 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 generate the source data.
 void updateData(vtkDataObject id0)
           
 void updateInformation()
          Updates any global information about the data (like spacing for images)
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, 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

vtkProgrammableSource

public vtkProgrammableSource()

vtkProgrammableSource

protected vtkProgrammableSource(int dmy)
Method Detail

getThisProgrammableSource

public vtkProgrammableSource getThisProgrammableSource()

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 vtkSource

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 vtkSource

setExecuteMethod

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


getPolyDataOutput

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


getStructuredPointsOutput

public vtkStructuredPoints getStructuredPointsOutput()
Get the output as a concrete type.


getStructuredGridOutput

public vtkStructuredGrid getStructuredGridOutput()
Get the output as a concrete type.


getUnstructuredGridOutput

public vtkUnstructuredGrid getUnstructuredGridOutput()
Get the output as a concrete type.


getRectilinearGridOutput

public vtkRectilinearGrid getRectilinearGridOutput()
Get the output as a concrete type.


updateInformation

public void updateInformation()
Description copied from class: vtkSource
Updates any global information about the data (like spacing for images)

Overrides:
updateInformation in class vtkSource

updateData

public void updateData(vtkDataObject id0)
Overrides:
updateData in class vtkSource

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkSource


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.