camera3d.action
Class SetLaserArrayGridAction

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

Field Summary
 
Fields inherited from class camera3d.action.VcAction
MULTIPLE_OBJECT_ACTION, SINGLE_OBJECT_ACTION
 
Constructor Summary
SetLaserArrayGridAction(VcLaserArray array, int nx, int ny, double dx, double dy)
          Constructs an action that will change the grid of a given VcLaserArray.
 
Method Summary
 void doAction(ActionExecutor executor)
          Changes the grid of the VcLaserArray set at construction.
 void undoAction(ActionExecutor executor)
          Sets grid back to former values
 
Methods inherited from class camera3d.action.VcAction
debugln, getMultiplicityType, isUndoable, setMultiplicityType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 direction
ny - number of laser beams in Y direction
dx - distance between laser beams in X direction
dy - distance between laser beams in Y direction
Method Detail

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.