camera3d.manipulation
Class RotationManipulator

java.lang.Object
  extended bycamera3d.manipulation.TransformationManipulator
      extended bycamera3d.manipulation.RotationManipulator

public class RotationManipulator
extends TransformationManipulator

Manipulator used to rotate objects with mouse dragging.

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

Constructor Summary
RotationManipulator()
          Creates new manipulator.
RotationManipulator(RotatableObject rotatableObject)
          Creates new manipulator and sets its RotatableObject.
 
Method Summary
 void clearSelection()
          Clears current selection of scene object(s) to be manipulated.
 void setBeginPoint(int x, int y)
          Sets value of the initial point (pixel) of dragging movement.
 void setRotatableObject(RotatableObject rotatableObject)
           
 
Methods inherited from class camera3d.manipulation.TransformationManipulator
getSelectedScope, setCanvas3D, setCurrentPoint, setTransformationMode, setTransformationScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotationManipulator

public RotationManipulator()
Creates new manipulator.


RotationManipulator

public RotationManipulator(RotatableObject rotatableObject)
Creates new manipulator and sets its RotatableObject.

Method Detail

setRotatableObject

public void setRotatableObject(RotatableObject rotatableObject)

clearSelection

public void clearSelection()
Description copied from class: TransformationManipulator
Clears current selection of scene object(s) to be manipulated.

Specified by:
clearSelection in class TransformationManipulator

setBeginPoint

public void setBeginPoint(int x,
                          int y)
Sets value of the initial point (pixel) of dragging movement.

Overrides:
setBeginPoint in class TransformationManipulator
Parameters:
x - x coordinate of the point where dragging movement was initiated.
y - y coordinate of the point where dragging movement was initiated.


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