Package sc.fiji.snt.gui.cmds
Class CustomizeAxesCmd
java.lang.Object
org.scijava.AbstractContextual
org.scijava.command.ContextCommand
sc.fiji.snt.gui.cmds.CustomizeAxesCmd
- All Implemented Interfaces:
Runnable,org.scijava.Cancelable,org.scijava.command.Command,org.scijava.Contextual,org.scijava.plugin.SciJavaPlugin
public class CustomizeAxesCmd
extends org.scijava.command.ContextCommand
Command for customizing axis-to-anatomy mappings in Reconstruction Viewer.
Allows the user to specify which anatomical dimension (Anterior-Posterior,
Dorsal-Ventral, Left-Right) corresponds to each world axis (X, Y, Z), and
the direction of the dorsal axis. The mapping determines the camera up
vector and the axis-swap behavior for constrained 2D views.
- Author:
- Tiago Ferreira
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetDorsalSign(HashMap<String, String> map) Returns the sign of the dorsal direction:-1for negative,+1for positive.static StringReturns the axis identifier ("X", "Y", or "Z") assigned to the Dorsal-Ventral role, ornullif none is assigned.static String[]Returns the axis labels derived from the mapping, suitable forViewer3D.setAxesLabels().voidrun()Methods inherited from class org.scijava.command.ContextCommand
cancel, getCancelReason, isCanceledMethods inherited from class org.scijava.AbstractContextual
context, getContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.scijava.Contextual
setContext
-
Constructor Details
-
CustomizeAxesCmd
public CustomizeAxesCmd()
-
-
Method Details
-
getDVAxis
Returns the axis identifier ("X", "Y", or "Z") assigned to the Dorsal-Ventral role, ornullif none is assigned. -
getDorsalSign
Returns the sign of the dorsal direction:-1for negative,+1for positive. -
getLabels
Returns the axis labels derived from the mapping, suitable forViewer3D.setAxesLabels(). -
run
public void run()
-