camera3d.action
Class SetDistanceMeasurerDirectionAction

java.lang.Object
  extended bycamera3d.action.VcAction
      extended bycamera3d.action.MeasurerAction
          extended bycamera3d.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

Field Summary
 
Fields inherited from class camera3d.action.VcAction
MULTIPLE_OBJECT_ACTION, SINGLE_OBJECT_ACTION
 
Constructor Summary
SetDistanceMeasurerDirectionAction(DistanceMeasurer measurer, int direction, TransformScope axis)
          Creates the action, given the measurer to act upon and the direction of measurement.
 
Method Summary
 void doAction(ActionExecutor executor)
          Performs the action.
 
Methods inherited from class camera3d.action.VcAction
debugln, getMultiplicityType, isUndoable, setMultiplicityType, undoAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.