vtk
Class vtkInteractorStyleSwitch

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkInteractorObserver
              extended byvtk.vtkInteractorStyle
                  extended byvtk.vtkInteractorStyleSwitch
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkInteractorStyleTrackball

public class vtkInteractorStyleSwitch
extends vtkInteractorStyle
implements java.io.Serializable

vtkInteractorStyleSwitch - class to swap between interactory styles. The class vtkInteractorStyleSwitch allows handles interactively switching between four interactor styles -- joystick actor, joystick camera, trackball actor, and trackball camera. Type 'j' or 't' to select joystick or trackball, and type 'c' or 'a' to select camera or actor. The default interactor style is joystick camera. JavaBean wrapper for vtkInteractorStyleSwitch object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkInteractorStyleJoystickActor, vtkInteractorStyleJoystickCamera, vtkInteractorStyleTrackballActor, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkInteractorStyleSwitch()
           
protected vtkInteractorStyleSwitch(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkInteractorStyle getCurrentStyle()
          Set/Get current style
 vtkInteractorStyleSwitch getThisInteractorStyleSwitch()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void onChar()
          Only care about the char event, which is used to switch between different styles.
 void setAutoAdjustCameraClippingRange(int id0)
          We must override this method in order to pass the setting down to the underlying styles
 void setCurrentStyleToJoystickActor()
          Set/Get current style
 void setCurrentStyleToJoystickCamera()
          Set/Get current style
 void setCurrentStyleToTrackballActor()
          Set/Get current style
 void setCurrentStyleToTrackballCamera()
          Set/Get current style
 void setInteractor(vtkRenderWindowInteractor id0)
          The sub styles need the interactor too.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkInteractorStyle
autoAdjustCameraClippingRangeOff, autoAdjustCameraClippingRangeOn, dolly, endDolly, endPan, endRotate, endSpin, endTimer, endUniformScale, endZoom, findPokedRenderer, getAutoAdjustCameraClippingRange, getAutoAdjustCameraClippingRangeMaxValue, getAutoAdjustCameraClippingRangeMinValue, getHandleObservers, getPickColor, getState, getThisInteractorStyle, getUseTimers, handleObserversOff, handleObserversOn, highlightActor2D, highlightProp, highlightProp3D, onConfigure, onEnter, onExpose, onKeyDown, onKeyPress, onKeyRelease, onKeyUp, onLeave, onLeftButtonDown, onLeftButtonUp, onMiddleButtonDown, onMiddleButtonUp, onMouseMove, onRightButtonDown, onRightButtonUp, onTimer, pan, rotate, setEnabled, setHandleObservers, setPickColor, setPickColor, setUseTimers, spin, startAnimate, startDolly, startPan, startRotate, startSpin, startState, startTimer, startUniformScale, startZoom, stopAnimate, stopState, uniformScale, useTimersOff, useTimersOn, zoom
 
Methods inherited from class vtk.vtkInteractorObserver
enabledOff, enabledOn, getCurrentRenderer, getDefaultRenderer, getEnabled, getInteractor, getKeyPressActivation, getKeyPressActivationValue, getPriority, getPriorityMaxValue, getPriorityMinValue, getThisInteractorObserver, keyPressActivationOff, keyPressActivationOn, off, on, setCurrentRenderer, setDefaultRenderer, 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
 
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

vtkInteractorStyleSwitch

public vtkInteractorStyleSwitch()

vtkInteractorStyleSwitch

protected vtkInteractorStyleSwitch(int dmy)
Method Detail

getThisInteractorStyleSwitch

public vtkInteractorStyleSwitch getThisInteractorStyleSwitch()

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 vtkInteractorStyle

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 vtkInteractorStyle

setInteractor

public void setInteractor(vtkRenderWindowInteractor id0)
The sub styles need the interactor too.

Overrides:
setInteractor in class vtkInteractorStyle

setAutoAdjustCameraClippingRange

public void setAutoAdjustCameraClippingRange(int id0)
We must override this method in order to pass the setting down to the underlying styles

Overrides:
setAutoAdjustCameraClippingRange in class vtkInteractorStyle

getCurrentStyle

public vtkInteractorStyle getCurrentStyle()
Set/Get current style


setCurrentStyleToJoystickActor

public void setCurrentStyleToJoystickActor()
Set/Get current style


setCurrentStyleToJoystickCamera

public void setCurrentStyleToJoystickCamera()
Set/Get current style


setCurrentStyleToTrackballActor

public void setCurrentStyleToTrackballActor()
Set/Get current style


setCurrentStyleToTrackballCamera

public void setCurrentStyleToTrackballCamera()
Set/Get current style


onChar

public void onChar()
Only care about the char event, which is used to switch between different styles.

Overrides:
onChar in class vtkInteractorStyle

VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkInteractorStyle

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkInteractorStyle


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.