camera3d.action
Class SetDistanceMeasurerDirectionAction
java.lang.Object
camera3d.action.VcAction
camera3d.action.MeasurerAction
camera3d.action.SetDistanceMeasurerDirectionAction
- public class SetDistanceMeasurerDirectionAction
- extends MeasurerAction
Action for setting the direction used by a given DistanceMeasurer to perform a
measurement. Valid directions are: +X, -X, +Y, -Y, +Z, -Z.
- Version:
- 1.0
- Author:
- Fábio Roberto de Miranda
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetDistanceMeasurerDirectionAction
public SetDistanceMeasurerDirectionAction(DistanceMeasurer measurer,
int direction,
TransformScope axis)
- Creates the action, given the measurer to act upon and the direction of measurement.
- Parameters:
measurer
- DistanceMeasurer to set the direction for.direction
- if positive, sets the direction to the positive direction
of selected axis.axis
- can be TransformScope.X, TransformScope.Y ou TransformScope.Z.
- Throws:
java.lang.IllegalArgumentException
- if axis is not really an axis.
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.
Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.