de.jreality.tools
Class DuplicateTriplyPeriodicTool

java.lang.Object
  extended by de.jreality.scene.tool.AbstractTool
      extended by de.jreality.tools.DuplicateTriplyPeriodicTool
All Implemented Interfaces:
Tool

public class DuplicateTriplyPeriodicTool
extends AbstractTool

This tool listens to the "Duplication" virtual device and allows to replicate a SceneGraphComponent sg (to which the tool is attached) along an orthogonal lattice (aligned with the axes, but with arbitrary lattice spacing). It is assumed that sg has a single parent p. All the the newly generated copies of sg (they are by reference only) will be descendants of p as well.

Author:
Ulrich

Constructor Summary
DuplicateTriplyPeriodicTool(double latticeX, double latticeY, double latticeZ, double centerX, double centerY, double centerZ)
           
 
Method Summary
 void activate(ToolContext tc)
          This method is called when the tool gets activated.
 
Methods inherited from class de.jreality.scene.tool.AbstractTool
addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, perform, removeCurrentSlot, setDescription
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateTriplyPeriodicTool

public DuplicateTriplyPeriodicTool(double latticeX,
                                   double latticeY,
                                   double latticeZ,
                                   double centerX,
                                   double centerY,
                                   double centerZ)
Method Detail

activate

public void activate(ToolContext tc)
Description copied from interface: Tool
This method is called when the tool gets activated. Note that it will never be called if the tool is always active.

Specified by:
activate in interface Tool
Overrides:
activate in class AbstractTool
Parameters:
tc - The current tool context