camera3d.action
Class SetLaserArrayGridAction
java.lang.Object
camera3d.action.VcAction
camera3d.action.LaserAction
camera3d.action.SetLaserArrayGridAction
- public class SetLaserArrayGridAction
- extends LaserAction
Action for setting the grid parameters of a given VcLaserArray.
- Version:
- 1.0
- Author:
- Fábio Roberto de Miranda e Carlos da Silva dos Santos
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetLaserArrayGridAction
public SetLaserArrayGridAction(VcLaserArray array,
int nx,
int ny,
double dx,
double dy)
- Constructs an action that will change the grid of a given VcLaserArray.
- Parameters:
array - VcLaserArray whose grid will be changed.nx - number of laser beams in X directionny - number of laser beams in Y directiondx - distance between laser beams in X directiondy - distance between laser beams in Y direction
doAction
public void doAction(ActionExecutor executor)
- Changes the grid of the VcLaserArray set at construction.
- Specified by:
doAction in class VcAction
- Parameters:
executor - provides any resource necessary for the action execution, such
as references to other objects.
undoAction
public void undoAction(ActionExecutor executor)
- Sets grid back to former values
- Overrides:
undoAction 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.