public static void initBrightness(
     final double cumulativeMinCutoff,
     final double cumulativeMaxCutoff,
     final ViewerPanel viewer,
     final SetupAssignments setupAssignments) {
   initBrightness(cumulativeMinCutoff, cumulativeMaxCutoff, viewer.getState(), setupAssignments);
 }
 /**
  * Set a "good" initial viewer transform. The viewer transform is chosen such that for the first
  * source,
  *
  * <ul>
  *   <li>the XY plane is aligned with the screen plane,
  *   <li>the <em>z = dim_z / 2</em> slice is shown,
  *   <li>centered and scaled such that the full <em>dim_x</em> by <em>dim_y</em> is visible.
  * </ul>
  *
  * This calls {@link #initTransform(int, int, boolean, ViewerState)}, using the size of the
  * viewer's display component.
  *
  * @param viewer the viewer (containing at least one source) to have its transform set.
  */
 public static void initTransform(final ViewerPanel viewer) {
   final Dimension dim = viewer.getDisplay().getSize();
   final ViewerState state = viewer.getState();
   final AffineTransform3D viewerTransform = initTransform(dim.width, dim.height, false, state);
   viewer.setCurrentViewerTransform(viewerTransform);
 }