camera3d.action
Class RotationAction
java.lang.Object
camera3d.action.VcAction
camera3d.action.VcObjectChangeAction
camera3d.action.TransformAction
camera3d.action.RotationAction
- All Implemented Interfaces:
- camera3d.action.OptimizableAction
- public class RotationAction
- extends TransformAction
Action for rotating VcObjects.
- Version:
- 1.0
- Author:
- Fábio Roberto de Miranda
Method Summary |
void |
doAction(ActionExecutor executor)
Performs the action. |
boolean |
optimize(VcAction inputAction)
Tries to combine the effect of this action and of inputAction into one single
action. |
void |
setAngles(double x,
double y,
double z)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotationAction
public RotationAction(VcObject v,
TransformMode mode)
setAngles
public void setAngles(double x,
double y,
double z)
doAction
public void doAction(ActionExecutor executor)
- Description copied from class:
VcAction
- Performs the action.
- Specified by:
doAction
in class VcAction
- Parameters:
executor
- provides any resource necessary for the action execution, such
as references to other objects.
optimize
public boolean optimize(VcAction inputAction)
- Tries to combine the effect of this action and of inputAction into one single
action. If that is possible (as signaled by the return value), only this action
should be executed, and not inputAction.
- Specified by:
optimize
in interface camera3d.action.OptimizableAction
- Specified by:
optimize
in class TransformAction
- Returns:
- true if optimization has been performed, false otherwise
Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.