camera3d.manipulation
Class TransformationManipulator

java.lang.Object
  extended bycamera3d.manipulation.TransformationManipulator
Direct Known Subclasses:
RotationManipulator, ScalingManipulator, TranslationManipulator

public abstract class TransformationManipulator
extends java.lang.Object

Abstract superclass for mouse manipulators that change the transformation of scene objects.

Version:
1.0
Author:
Fábio Roberto de Miranda, Carlos da Silva dos Santos

Constructor Summary
TransformationManipulator()
           
 
Method Summary
abstract  void clearSelection()
          Clears current selection of scene object(s) to be manipulated.
 TransformScope getSelectedScope()
          Returns value of the axis or set of axii affected by current manipulation.
 void setBeginPoint(int x, int y)
          Sets the location at which manipulation started.
 void setCanvas3D(javax.media.j3d.Canvas3D canvas)
          Sets the Canvas3D from which manipulation is performed.
 void setCurrentPoint(int x, int y)
          Sets current location of mouse cursor.
 void setTransformationMode(TransformMode mode)
          Sets mode of current manipulation.
 void setTransformationScope(TransformScope scope)
          Sets value of the axis or set of axii affected by current manipulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationManipulator

public TransformationManipulator()
Method Detail

setBeginPoint

public void setBeginPoint(int x,
                          int y)
Sets the location at which manipulation started.

Parameters:
x - x coordinate of initial mouse click.
y - y coordinate of initial mouse click.

setTransformationScope

public void setTransformationScope(TransformScope scope)
Sets value of the axis or set of axii affected by current manipulation.

See Also:
TransformScope

getSelectedScope

public TransformScope getSelectedScope()
Returns value of the axis or set of axii affected by current manipulation.

See Also:
TransformScope

setTransformationMode

public void setTransformationMode(TransformMode mode)
Sets mode of current manipulation.

See Also:
TransformMode

setCurrentPoint

public void setCurrentPoint(int x,
                            int y)
Sets current location of mouse cursor. The transformation of the selected object(s) will then be updated accordingly.

Parameters:
x - x coordinate of initial mouse click.
y - y coordinate of initial mouse click.

setCanvas3D

public void setCanvas3D(javax.media.j3d.Canvas3D canvas)
Sets the Canvas3D from which manipulation is performed.


clearSelection

public abstract void clearSelection()
Clears current selection of scene object(s) to be manipulated.



Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.