vtk
Class vtkSpherePuzzle

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkPolyDataSource
                      extended byvtk.vtkSpherePuzzle
All Implemented Interfaces:
java.io.Serializable

public class vtkSpherePuzzle
extends vtkPolyDataSource
implements java.io.Serializable

vtkSpherePuzzle - create a polygonal sphere centered at the origin. vtkSpherePuzzle creates JavaBean wrapper for vtkSpherePuzzle 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
  vtkSpherePuzzle()
           
protected vtkSpherePuzzle(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkSpherePuzzle getThisSpherePuzzle()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void moveHorizontal(int id0, int id1, int id2)
          Move the top/bottom half one segment either direction.
 void movePoint(int id0)
          Move actually implements the pending move.
 void moveVertical(int id0, int id1, int id2)
          Rotate vertical half of sphere along one of the longitude lines.
 void reset()
          Reset the state of this puzzle back to its original state.
 int setPoint(double id0, double id1, double id2)
          SetPoint will be called as the mouse moves over the screen.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkPolyDataSource
getOutput, getOutput, getThisPolyDataSource, setOutput
 
Methods inherited from class vtk.vtkSource
computeInputUpdateExtents, getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
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
 
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

vtkSpherePuzzle

public vtkSpherePuzzle()

vtkSpherePuzzle

protected vtkSpherePuzzle(int dmy)
Method Detail

getThisSpherePuzzle

public vtkSpherePuzzle getThisSpherePuzzle()

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 vtkPolyDataSource

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 vtkPolyDataSource

reset

public void reset()
Reset the state of this puzzle back to its original state.


moveHorizontal

public void moveHorizontal(int id0,
                           int id1,
                           int id2)
Move the top/bottom half one segment either direction.


moveVertical

public void moveVertical(int id0,
                         int id1,
                         int id2)
Rotate vertical half of sphere along one of the longitude lines.


setPoint

public int setPoint(double id0,
                    double id1,
                    double id2)
SetPoint will be called as the mouse moves over the screen. The output will change to indicate the pending move. SetPoint returns zero if move is not activated by point. Otherwise it encodes the move into a unique integer so that the caller can determine if the move state has changed. This will answer the question, "Should I render."


movePoint

public void movePoint(int id0)
Move actually implements the pending move. When percentage is 100, the pending move becomes inactive, and SetPoint will have to be called again to setup another move.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkPolyDataSource


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.