Class DistanceCmd
java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.args.Subcommand
com.j3d.engine.interact.cmd.commands.measure.DistanceCmd
- All Implemented Interfaces:
Argument
A subcommand of
MeasureCmd that calculates and displays the distance between two points.
Aliases: distance, d, dist
measure distance (10, 20, 30) (40, 50, 60) - Measures the distance between two Vector3 points.
m d 08415ef7-770b-4367-83d6-2dc0c64914b1 ... - Measures the distance between two GPoint objects
This command also makes use of BlinkerSwingWorker such as to draw the line
between the 2 Vector3 points.
- Author:
- Lehlogonolo Poole
-
Field Summary
FieldsFields inherited from class com.j3d.engine.interact.cmd.base.Command
aliases, args, description, usages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidrun(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
-
draw
private boolean draw
-
-
Constructor Details
-
DistanceCmd
public DistanceCmd()
-
-
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. -
ghost
-