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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Returns the sign of the dorsal direction: -1 for negative, +1 for positive.
    static String
    Returns the axis identifier ("X", "Y", or "Z") assigned to the Dorsal-Ventral role, or null if none is assigned.
    static String[]
    Returns the axis labels derived from the mapping, suitable for Viewer3D.setAxesLabels().
    void
    run()
     

    Methods inherited from class org.scijava.command.ContextCommand

    cancel, getCancelReason, isCanceled

    Methods inherited from class org.scijava.AbstractContextual

    context, getContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.scijava.Contextual

    setContext
  • Constructor Details

    • CustomizeAxesCmd

      public CustomizeAxesCmd()
  • Method Details

    • getDVAxis

      public static String getDVAxis(HashMap<String,String> map)
      Returns the axis identifier ("X", "Y", or "Z") assigned to the Dorsal-Ventral role, or null if none is assigned.
    • getDorsalSign

      public static int getDorsalSign(HashMap<String,String> map)
      Returns the sign of the dorsal direction: -1 for negative, +1 for positive.
    • getLabels

      public static String[] getLabels(HashMap<String,String> map)
      Returns the axis labels derived from the mapping, suitable for Viewer3D.setAxesLabels().
    • run

      public void run()