Class ExplodeCmd

java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.commands.ExplodeCmd

public class ExplodeCmd extends Command
A command which makes the explodes the geometry structure of whatever.

This has positional arguments, but makes use of tagged arguments to work, specifically the thing:"string"/thing="string" or the layer:"string"/layer="string"

While tagged arguments do not require a strict position, if both tagged arguments exist it will check explicit for the thing tagged argument before layer. And otherwise, if no tagged arguments are provided or tagged arguments that this command does not check for, it is treated as exploding everything.

Aliases: explode, expl, ex, destruct

Typical Usage:


     explode                      - Explodes All Things in All layers
     expl thing:"Cube"            - Explodes the Thing labelled "Cube"
     explode layer:"l"            - Explodes All the Things in the layer "l"
     explode layer:"a" thing="b"  - Explodes the Thing labelled "b"
     

Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • ExplodeCmd

      public ExplodeCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.
    • explode

      private void explode(SafeJLabel logLabel, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
    • explodeAll

      private void explodeAll()
    • explode

      private void explode(Thing thing)
    • explode

      private void explode(HashSet<GObject> obj)
    • addHistory

      private void addHistory(String operation)