vtk
Class vtkAbstractPropPicker

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkAbstractPicker
              extended byvtk.vtkAbstractPropPicker
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkPicker, vtkPropPicker

public class vtkAbstractPropPicker
extends vtkAbstractPicker
implements java.io.Serializable

vtkAbstractPropPicker - abstract API for pickers that can pick an instance of vtkProp. vtkAbstractPropPicker is an abstract superclass for pickers that can pick an instance of vtkProp. Some pickers, like vtkWorldPointPicker (not a subclass of this class), cannot identify the prop that is picked. Subclasses of vtkAbstractPropPicker return a prop in the form of a vtkAssemblyPath when a pick is invoked. Note that an vtkAssemblyPath contain a list of vtkAssemblyNodes, each of which in turn contains a reference to a vtkProp and a 4x4 transformation matrix. The path fully describes the entire pick path, so you can pick assemblies or portions of assemblies, or just grab the tail end of the vtkAssemblyPath (which is the picked prop). JavaBean wrapper for vtkAbstractPropPicker object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkPropPicker, vtkPicker, vtkWorldPointPicker, vtkCellPicker, vtkPointPicker, , vtkAssemblyPath, vtkAssemblyNode, vtkAssemblyPaths, vtkAbstractPicker, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkAbstractPropPicker()
           
protected vtkAbstractPropPicker(int dmy)
           
 
Method Summary
 vtkActor getActor()
          Return the vtkActor that has been picked.
 vtkActor2D getActor2D()
          Return the vtkActor2D that has been picked.
 vtkAssembly getAssembly()
          Return the vtkAssembly that has been picked.
 java.lang.String getClassName()
          Return the class name as a string.
 vtkAssemblyPath getPath()
          Return the vtkAssemblyPath that has been picked.
 vtkProp getProp()
          Return the vtkProp that has been picked.
 vtkProp3D getProp3D()
          Return the vtkProp that has been picked.
 vtkPropAssembly getPropAssembly()
          Return the vtkPropAssembly that has been picked.
 vtkAbstractPropPicker getThisAbstractPropPicker()
           
 vtkVolume getVolume()
          Return the vtkVolume that has been picked.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void setPath(vtkAssemblyPath id0)
          Return the vtkAssemblyPath that has been picked.
protected  void VTKCastInit()
           
 
Methods inherited from class vtk.vtkAbstractPicker
addPickList, deletePickList, getPickFromList, getPickList, getPickPosition, getRenderer, getSelectionPoint, getThisAbstractPicker, initializePickList, pick, pick, pickFromListOff, pickFromListOn, setPickFromList
 
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, VTKInit
 
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

vtkAbstractPropPicker

public vtkAbstractPropPicker()

vtkAbstractPropPicker

protected vtkAbstractPropPicker(int dmy)
Method Detail

getThisAbstractPropPicker

public vtkAbstractPropPicker getThisAbstractPropPicker()

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 vtkAbstractPicker

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 vtkAbstractPicker

setPath

public void setPath(vtkAssemblyPath id0)
Return the vtkAssemblyPath that has been picked. The assembly path lists all the vtkProps that form an assembly. If no assembly is present, then the assembly path will have one node (which is the picked prop). The set method is used internally to set the path. (Note: the structure of an assembly path is a collection of vtkAssemblyNode, each node pointing to a vtkProp and (possibly) a transformation matrix.)


getPath

public vtkAssemblyPath getPath()
Return the vtkAssemblyPath that has been picked. The assembly path lists all the vtkProps that form an assembly. If no assembly is present, then the assembly path will have one node (which is the picked prop). The set method is used internally to set the path. (Note: the structure of an assembly path is a collection of vtkAssemblyNode, each node pointing to a vtkProp and (possibly) a transformation matrix.)


getProp

public vtkProp getProp()
Return the vtkProp that has been picked. If NULL, nothing was picked. If anything at all was picked, this method will return something.


getProp3D

public vtkProp3D getProp3D()
Return the vtkProp that has been picked. If NULL, no vtkProp3D was picked.


getActor

public vtkActor getActor()
Return the vtkActor that has been picked. If NULL, no actor was picked.


getActor2D

public vtkActor2D getActor2D()
Return the vtkActor2D that has been picked. If NULL, no actor2D was picked.


getVolume

public vtkVolume getVolume()
Return the vtkVolume that has been picked. If NULL, no volume was picked.


getAssembly

public vtkAssembly getAssembly()
Return the vtkAssembly that has been picked. If NULL, no assembly was picked. (Note: the returned assembly is the first node in the assembly path. If the path is one node long, then the assembly and the prop are the same, assuming that the first node is a vtkAssembly.)


getPropAssembly

public vtkPropAssembly getPropAssembly()
Return the vtkPropAssembly that has been picked. If NULL, no prop assembly was picked. (Note: the returned prop assembly is the first node in the assembly path. If the path is one node long, then the prop assembly and the prop are the same, assuming that the first node is a vtkPropAssembly.)


VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkAbstractPicker


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.