vtk
Class vtkPolyDataSourceWidget

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkInteractorObserver
              extended byvtk.vtk3DWidget
                  extended byvtk.vtkPolyDataSourceWidget
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkImagePlaneWidget, vtkImplicitPlaneWidget, vtkPlaneWidget

public class vtkPolyDataSourceWidget
extends vtk3DWidget
implements java.io.Serializable

vtkPolyDataSourceWidget - abstract PolyDataSource-based 3D widget. This abstract class serves as parent to 3D widgets that have simple vtkPolyDataSource instances defining their geometry. In addition to what is offered by the vtk3DWidget parent, this class makes it possible to manipulate the underlying polydatasource and to PlaceWidget() according to that, instead of having to make use of SetInput() or SetProp3D(). Implementors of child classes HAVE to implement their PlaceWidget(bounds) to check for the existence of Input and Prop3D FIRST. If these don't exist, place according to the underlying PolyDataSource. Child classes also have to imprement UpdatePlacement(), which updates the widget according to the geometry of the underlying PolyDataSource. JavaBean wrapper for vtkPolyDataSourceWidget object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtk3DWidget, vtkLineWidget, vtkPlaneWidget, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkPolyDataSourceWidget()
           
protected vtkPolyDataSourceWidget(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkPolyDataSource getPolyDataSource()
          Returns underlying vtkPolyDataSource that determines geometry.
 vtkPolyDataSourceWidget getThisPolyDataSourceWidget()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void placeWidget()
          Overrides vtk3DWidget PlaceWidget() so that it doesn't complain if there's no Input and no Prop3D.
 void placeWidget(double[] id0)
          We have to redeclare this abstract, PlaceWidget() requires it.
 void placeWidget(double id0, double id1, double id2, double id3, double id4, double id5)
          Returns underlying vtkPolyDataSource that determines geometry.
 void updatePlacement()
          If you've made changes to the underlying vtkPolyDataSource AFTER your initial call to PlaceWidget(), use this method to realise the changes in the widget.
protected  void VTKCastInit()
           
 
Methods inherited from class vtk.vtk3DWidget
getHandleSize, getHandleSizeMaxValue, getHandleSizeMinValue, getInput, getPlaceFactor, getPlaceFactorMaxValue, getPlaceFactorMinValue, getProp3D, getThis3DWidget, setHandleSize, setInput, setPlaceFactor, setProp3D
 
Methods inherited from class vtk.vtkInteractorObserver
enabledOff, enabledOn, getCurrentRenderer, getDefaultRenderer, getEnabled, getInteractor, getKeyPressActivation, getKeyPressActivationValue, getPriority, getPriorityMaxValue, getPriorityMinValue, getThisInteractorObserver, keyPressActivationOff, keyPressActivationOn, off, on, onChar, setCurrentRenderer, setDefaultRenderer, setEnabled, setInteractor, setKeyPressActivation, setKeyPressActivationValue, setPriority
 
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

vtkPolyDataSourceWidget

public vtkPolyDataSourceWidget()

vtkPolyDataSourceWidget

protected vtkPolyDataSourceWidget(int dmy)
Method Detail

getThisPolyDataSourceWidget

public vtkPolyDataSourceWidget getThisPolyDataSourceWidget()

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 vtk3DWidget

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 vtk3DWidget

placeWidget

public void placeWidget()
Overrides vtk3DWidget PlaceWidget() so that it doesn't complain if there's no Input and no Prop3D.

Overrides:
placeWidget in class vtk3DWidget

placeWidget

public void placeWidget(double[] id0)
We have to redeclare this abstract, PlaceWidget() requires it. You HAVE to override this in your concrete child classes. If there's no Prop3D and no Input, your PlaceWidget must make use of the underlying PolyDataSource to do its work.

Overrides:
placeWidget in class vtk3DWidget

placeWidget

public void placeWidget(double id0,
                        double id1,
                        double id2,
                        double id3,
                        double id4,
                        double id5)
Returns underlying vtkPolyDataSource that determines geometry. This can be modified after which PlaceWidget() or UpdatePlacement() can be called. UpdatePlacement() will always update the planewidget according to the geometry of the underlying PolyDataSource. PlaceWidget() will only make use of this geometry if there is no Input and no Prop3D set.

Overrides:
placeWidget in class vtk3DWidget

getPolyDataSource

public vtkPolyDataSource getPolyDataSource()
Returns underlying vtkPolyDataSource that determines geometry. This can be modified after which PlaceWidget() or UpdatePlacement() can be called. UpdatePlacement() will always update the planewidget according to the geometry of the underlying PolyDataSource. PlaceWidget() will only make use of this geometry if there is no Input and no Prop3D set.


updatePlacement

public void updatePlacement()
If you've made changes to the underlying vtkPolyDataSource AFTER your initial call to PlaceWidget(), use this method to realise the changes in the widget.


VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtk3DWidget


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.