Class 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 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()