vtk
Class vtkInteractorStyleFlight

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkInteractorObserver
              extended byvtk.vtkInteractorStyle
                  extended byvtk.vtkInteractorStyleFlight
All Implemented Interfaces:
java.io.Serializable

public class vtkInteractorStyleFlight
extends vtkInteractorStyle
implements java.io.Serializable

vtkInteractorStyleFlight - provides flight motion routines. Left mouse button press produces forward motion. Right mouse button press produces reverse motion. Moving mouse during motion steers user in desired direction. Keyboard controls are: Left/Right/Up/Down Arrows for steering direction 'A' forward, 'Z' reverse motion Ctrl Key causes sidestep instead of steering in mouse and key modes Shift key is accelerator in mouse and key modes Ctrl and Shift together causes Roll in mouse and key modes By default, one "step" of motion corresponds to 1/250th of the diagonal of bounding box of visible actors, '+' and '-' keys allow user to increase or decrease step size. JavaBean wrapper for vtkInteractorStyleFlight 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
  vtkInteractorStyleFlight()
           
protected vtkInteractorStyleFlight(int dmy)
           
 
Method Summary
 void disableMotionOff()
          Disable motion (temporarily - for viewing etc)
 void disableMotionOn()
          Disable motion (temporarily - for viewing etc)
 void endForwardFly()
          Concrete implementation of Keyboard event bindings for flight
 void endReverseFly()
          Concrete implementation of Keyboard event bindings for flight
 void forwardFly()
          Concrete implementation of Keyboard event bindings for flight
 double getAngleAccelerationFactor()
          Set angular acceleration when shift key is applied : default 5
 double getAngleStepSize()
          Set the basic angular unit for turning : default 1 degree
 java.lang.String getClassName()
          Return the class name as a string.
 double[] getDefaultUpVector()
           
 int getDisableMotion()
          Disable motion (temporarily - for viewing etc)
 double getMotionAccelerationFactor()
          Set acceleration factor when shift key is applied : default 10
 double getMotionStepSize()
          Set the basic unit step size : by default 1/250 of bounding diagonal
 int getRestoreUpVector()
          When flying, apply a restorative force to the "Up" vector.
 vtkInteractorStyleFlight getThisInteractorStyleFlight()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void jumpTo(double[] id0, double[] id1)
          Move the Eye/Camera to a specific location (no intermediate steps are taken
 void onChar()
          Concrete implementation of Keyboard event bindings for flight
 void onKeyDown()
          Concrete implementation of Keyboard event bindings for flight
 void onKeyUp()
          Concrete implementation of Keyboard event bindings for flight
 void onLeftButtonDown()
          Concrete implementation of Mouse event bindings for flight
 void onLeftButtonUp()
          Concrete implementation of Mouse event bindings for flight
 void onMiddleButtonDown()
          Concrete implementation of Mouse event bindings for flight
 void onMiddleButtonUp()
          Concrete implementation of Mouse event bindings for flight
 void onMouseMove()
          Concrete implementation of Mouse event bindings for flight
 void onRightButtonDown()
          Concrete implementation of Mouse event bindings for flight
 void onRightButtonUp()
          Concrete implementation of Mouse event bindings for flight
 void onTimer()
          Concrete implementation of Keyboard event bindings for flight
 void restoreUpVectorOff()
          When flying, apply a restorative force to the "Up" vector.
 void restoreUpVectorOn()
          When flying, apply a restorative force to the "Up" vector.
 void reverseFly()
          Concrete implementation of Keyboard event bindings for flight
 void setAngleAccelerationFactor(double id0)
          Set angular acceleration when shift key is applied : default 5
 void setAngleStepSize(double id0)
          Set the basic angular unit for turning : default 1 degree
 void setDefaultUpVector(double[] id0)
           
 void setDisableMotion(int id0)
          Disable motion (temporarily - for viewing etc)
 void setMotionAccelerationFactor(double id0)
          Set acceleration factor when shift key is applied : default 10
 void setMotionStepSize(double id0)
          Set the basic unit step size : by default 1/250 of bounding diagonal
 void setRestoreUpVector(int id0)
          When flying, apply a restorative force to the "Up" vector.
 void startForwardFly()
          Concrete implementation of Keyboard event bindings for flight
 void startReverseFly()
          Concrete implementation of Keyboard event bindings for flight
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, onKeyPress, onKeyRelease, onLeave, pan, rotate, setAutoAdjustCameraClippingRange, setEnabled, setHandleObservers, setInteractor, 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

vtkInteractorStyleFlight

public vtkInteractorStyleFlight()

vtkInteractorStyleFlight

protected vtkInteractorStyleFlight(int dmy)
Method Detail

getThisInteractorStyleFlight

public vtkInteractorStyleFlight getThisInteractorStyleFlight()

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

jumpTo

public void jumpTo(double[] id0,
                   double[] id1)
Move the Eye/Camera to a specific location (no intermediate steps are taken


setMotionStepSize

public void setMotionStepSize(double id0)
Set the basic unit step size : by default 1/250 of bounding diagonal


getMotionStepSize

public double getMotionStepSize()
Set the basic unit step size : by default 1/250 of bounding diagonal


setMotionAccelerationFactor

public void setMotionAccelerationFactor(double id0)
Set acceleration factor when shift key is applied : default 10


getMotionAccelerationFactor

public double getMotionAccelerationFactor()
Set acceleration factor when shift key is applied : default 10


setAngleStepSize

public void setAngleStepSize(double id0)
Set the basic angular unit for turning : default 1 degree


getAngleStepSize

public double getAngleStepSize()
Set the basic angular unit for turning : default 1 degree


setAngleAccelerationFactor

public void setAngleAccelerationFactor(double id0)
Set angular acceleration when shift key is applied : default 5


getAngleAccelerationFactor

public double getAngleAccelerationFactor()
Set angular acceleration when shift key is applied : default 5


setDisableMotion

public void setDisableMotion(int id0)
Disable motion (temporarily - for viewing etc)


getDisableMotion

public int getDisableMotion()
Disable motion (temporarily - for viewing etc)


disableMotionOn

public void disableMotionOn()
Disable motion (temporarily - for viewing etc)


disableMotionOff

public void disableMotionOff()
Disable motion (temporarily - for viewing etc)


setRestoreUpVector

public void setRestoreUpVector(int id0)
When flying, apply a restorative force to the "Up" vector. This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.


getRestoreUpVector

public int getRestoreUpVector()
When flying, apply a restorative force to the "Up" vector. This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.


restoreUpVectorOn

public void restoreUpVectorOn()
When flying, apply a restorative force to the "Up" vector. This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.


restoreUpVectorOff

public void restoreUpVectorOff()
When flying, apply a restorative force to the "Up" vector. This is activated when the current 'up' is close to the actual 'up' (as defined in DefaultUpVector). This prevents excessive twisting forces when viewing from arbitrary angles, but keep the horizon level when the user is flying over terrain.


getDefaultUpVector

public double[] getDefaultUpVector()

setDefaultUpVector

public void setDefaultUpVector(double[] id0)

onMouseMove

public void onMouseMove()
Concrete implementation of Mouse event bindings for flight

Overrides:
onMouseMove in class vtkInteractorStyle

onLeftButtonDown

public void onLeftButtonDown()
Concrete implementation of Mouse event bindings for flight

Overrides:
onLeftButtonDown in class vtkInteractorStyle

onLeftButtonUp

public void onLeftButtonUp()
Concrete implementation of Mouse event bindings for flight

Overrides:
onLeftButtonUp in class vtkInteractorStyle

onMiddleButtonDown

public void onMiddleButtonDown()
Concrete implementation of Mouse event bindings for flight

Overrides:
onMiddleButtonDown in class vtkInteractorStyle

onMiddleButtonUp

public void onMiddleButtonUp()
Concrete implementation of Mouse event bindings for flight

Overrides:
onMiddleButtonUp in class vtkInteractorStyle

onRightButtonDown

public void onRightButtonDown()
Concrete implementation of Mouse event bindings for flight

Overrides:
onRightButtonDown in class vtkInteractorStyle

onRightButtonUp

public void onRightButtonUp()
Concrete implementation of Mouse event bindings for flight

Overrides:
onRightButtonUp in class vtkInteractorStyle

onChar

public void onChar()
Concrete implementation of Keyboard event bindings for flight

Overrides:
onChar in class vtkInteractorStyle

onKeyDown

public void onKeyDown()
Concrete implementation of Keyboard event bindings for flight

Overrides:
onKeyDown in class vtkInteractorStyle

onKeyUp

public void onKeyUp()
Concrete implementation of Keyboard event bindings for flight

Overrides:
onKeyUp in class vtkInteractorStyle

onTimer

public void onTimer()
Concrete implementation of Keyboard event bindings for flight

Overrides:
onTimer in class vtkInteractorStyle

forwardFly

public void forwardFly()
Concrete implementation of Keyboard event bindings for flight


reverseFly

public void reverseFly()
Concrete implementation of Keyboard event bindings for flight


startForwardFly

public void startForwardFly()
Concrete implementation of Keyboard event bindings for flight


endForwardFly

public void endForwardFly()
Concrete implementation of Keyboard event bindings for flight


startReverseFly

public void startReverseFly()
Concrete implementation of Keyboard event bindings for flight


endReverseFly

public void endReverseFly()
Concrete implementation of Keyboard event bindings for flight


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.