vtk
Class vtkMultiThreader

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkMultiThreader
All Implemented Interfaces:
java.io.Serializable

public class vtkMultiThreader
extends vtkObject
implements java.io.Serializable

vtkMultiThreader - A class for performing multithreaded execution. vtkMultithreader is a class that provides support for multithreaded execution using sproc() on an SGI, or pthread_create on any platform supporting POSIX threads. This class can be used to execute a single method on multiple threads, or to specify a method per thread. JavaBean wrapper for vtkMultiThreader 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
  vtkMultiThreader()
           
protected vtkMultiThreader(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 int getGlobalDefaultNumberOfThreads()
          Set/Get the value which is used to initialize the NumberOfThreads in the constructor.
 int getGlobalMaximumNumberOfThreads()
          Set/Get the maximum number of threads to use when multithreading.
 int getNumberOfThreads()
          Get/Set the number of threads to create.
 int getNumberOfThreadsMaxValue()
          Get/Set the number of threads to create.
 int getNumberOfThreadsMinValue()
          Get/Set the number of threads to create.
 vtkMultiThreader getThisMultiThreader()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setGlobalDefaultNumberOfThreads(int id0)
          Set/Get the value which is used to initialize the NumberOfThreads in the constructor.
 void setGlobalMaximumNumberOfThreads(int id0)
          Set/Get the maximum number of threads to use when multithreading.
 void setNumberOfThreads(int id0)
          Get/Set the number of threads to create.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
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, unRegister
 
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

vtkMultiThreader

public vtkMultiThreader()

vtkMultiThreader

protected vtkMultiThreader(int dmy)
Method Detail

getThisMultiThreader

public vtkMultiThreader getThisMultiThreader()

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 vtkObject

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 vtkObject

setNumberOfThreads

public void setNumberOfThreads(int id0)
Get/Set the number of threads to create. It will be clamped to the range 1 - VTK_MAX_THREADS, so the caller of this method should check that the requested number of threads was accepted.


getNumberOfThreadsMinValue

public int getNumberOfThreadsMinValue()
Get/Set the number of threads to create. It will be clamped to the range 1 - VTK_MAX_THREADS, so the caller of this method should check that the requested number of threads was accepted.


getNumberOfThreadsMaxValue

public int getNumberOfThreadsMaxValue()
Get/Set the number of threads to create. It will be clamped to the range 1 - VTK_MAX_THREADS, so the caller of this method should check that the requested number of threads was accepted.


getNumberOfThreads

public int getNumberOfThreads()
Get/Set the number of threads to create. It will be clamped to the range 1 - VTK_MAX_THREADS, so the caller of this method should check that the requested number of threads was accepted.


setGlobalMaximumNumberOfThreads

public void setGlobalMaximumNumberOfThreads(int id0)
Set/Get the maximum number of threads to use when multithreading. This limits and overrides any other settings for multithreading. A value of zero indicates no limit.


getGlobalMaximumNumberOfThreads

public int getGlobalMaximumNumberOfThreads()
Set/Get the maximum number of threads to use when multithreading. This limits and overrides any other settings for multithreading. A value of zero indicates no limit.


setGlobalDefaultNumberOfThreads

public void setGlobalDefaultNumberOfThreads(int id0)
Set/Get the value which is used to initialize the NumberOfThreads in the constructor. Initially this default is set to the number of processors or VTK_MAX_THREADS (which ever is less).


getGlobalDefaultNumberOfThreads

public int getGlobalDefaultNumberOfThreads()
Set/Get the value which is used to initialize the NumberOfThreads in the constructor. Initially this default is set to the number of processors or VTK_MAX_THREADS (which ever is less).


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkObject


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.