Class CameraInfoCmd
java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.args.Subcommand
com.j3d.engine.interact.cmd.commands.camera.CameraInfoCmd
- All Implemented Interfaces:
Argument
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 Summary
FieldsFields inherited from class com.j3d.engine.interact.cmd.base.Command
aliases, args, description, usages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs) The method to be overridden by subclasses to implement command functionality.Methods inherited from class com.j3d.engine.interact.cmd.args.Subcommand
getDescription, getName, isOptionalMethods inherited from class com.j3d.engine.interact.cmd.base.Command
addNoArgUsage, aliases, aliasStream, args, dispatchToSubcommands, getUsages, hasNoArgs, parseUsages, usages, varTaggedArgs
-
Field Details
-
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:CommandThe method to be overridden by subclasses to implement command functionality.
-