Skip to content

Commit

Permalink
limit acq modes for scape
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon committed May 6, 2024
1 parent 568ca00 commit 7feed4a
Showing 1 changed file with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

import java.util.Arrays;

// TODO: replicate getValidModeKeys from 1.4 plugin to populate acq mode combo box
// TODO: account for different naming on each geometry type (SLICE_SCAN_ONLY)

/**
* Acquisition modes for diSPIM.
* Acquisition modes for diSPIM and SCAPE.
*/
public enum AcquisitionMode {
NONE("None"),

PIEZO_SLICE_SCAN("Synchronous piezo/slice scan"),
NO_SCAN("No Scan (Fixed Sheet)"),
STAGE_SCAN("Stage Scan"),
STAGE_SCAN_INTERLEAVED("Stage Scan Interleaved"),
STAGE_SCAN_UNIDIRECTIONAL("Stage Scan Unidirectional"),
SLICE_SCAN_ONLY("Slice scan only"),
NO_SCAN("No scan (fixed sheet)"),
STAGE_SCAN("Stage scan"),
STAGE_SCAN_INTERLEAVED("Stage scan interleaved"),
STAGE_SCAN_UNIDIRECTIONAL("Stage scan unidirectional"),
//SLICE_SCAN_ONLY("Slice scan only"), // for diSPIM
SLICE_SCAN_ONLY("Galvo scan"), // for SCAPE
PIEZO_SCAN_ONLY("Piezo scan only");

private final String text_;
Expand All @@ -39,4 +39,14 @@ public static String[] toArray() {
.toArray(String[]::new);
}

// TODO: check if stage scanning exists
public static String[] getValidKeys() {
final AcquisitionMode[] keys = new AcquisitionMode[] {
NO_SCAN, STAGE_SCAN, SLICE_SCAN_ONLY, PIEZO_SCAN_ONLY
};
return Arrays.stream(keys)
.map(AcquisitionMode::toString)
.toArray(String[]::new);

}
}

0 comments on commit 7feed4a

Please sign in to comment.