Class VolumeCmd
java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.args.Subcommand
com.j3d.engine.interact.cmd.commands.measure.VolumeCmd
- All Implemented Interfaces:
Argument
* A subcommand of
MeasureCmd that calculates and displays the volume of a solid
Thing.
Aliases: volume, v
measure volume "mySolidObject" - Measures the volume of the thing named "mySolidObject".
m v 08415ef7-770b-4367-83d6-2dc0c64914b1 - Measures the volume of the thing with the given UUID.
This command also makes use of BlinkerSwingWorker to highlight the solid being
measured.
- 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 GPointprivate voidghost(Thing t, Graphics2D graphics2D) private voidregisterGhost(Thing t, double volume) voidrun(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs) The method to be overridden by subclasses to implement command functionality.private doubleMethods 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
-
VolumeCmd
public VolumeCmd()
-
-
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. -
registerGhost
-
ghost
-
closestPoint
-
volume
-