Class CameraInfoCmd

All Implemented Interfaces:
Argument

public class CameraInfoCmd extends Subcommand
A subcommand of CameraCmd which simply prints camera properties

Provides an optional second (third in context of its parent command) required ArgSet which accepts the following strings: "position", "rotation", "pos", "rot", "p", "r"

Aliases: camera, cam, view, c, v

(For the below usage, say we have a camera at (X:10, Y:2, Z:2) with a rotation of (Yaw:0, Pitch:60, Roll:20))


     cam info        - pos(10, 2, 2) rot(0, 60, 20)
     c i rot         - rot(0, 60, 20)
     c info pos      - pos(10, 2, 2)
     cam i           - pos(10, 2, 2) rot(0, 60, 20)
     cam info p      - pos(10, 2, 2)
     cam i position  - pos(10, 2, 2)
     

Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • argSet

      public ArgSet argSet
  • Constructor Details

    • CameraInfoCmd

      public CameraInfoCmd()
  • 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.