File tree Expand file tree Collapse file tree
src/main/java/ch/epfl/biop/atlas/aligner/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 description = "Starts ABBA from an Atlas" )
2020public class ABBAStartCommand implements Command {
2121
22- @ Parameter (callback = "coronalCB" , visibility = ItemVisibility .MESSAGE )
22+ // The presence of this parameter button will trigger MessageResolverProcessor
23+ @ Parameter (visibility = ItemVisibility .MESSAGE )
24+ String message = "Select the atlas slicing orientation" ;
25+
26+ @ Parameter (callback = "coronalCB" )
2327 Button coronal ;
2428
25- @ Parameter (callback = "sagittalCB" , visibility = ItemVisibility . MESSAGE )
29+ @ Parameter (callback = "sagittalCB" )
2630 Button sagittal ;
2731
28- @ Parameter (callback = "horizontalCB" , visibility = ItemVisibility . MESSAGE )
32+ @ Parameter (callback = "horizontalCB" )
2933 Button horizontal ;
3034
3135 @ Parameter (choices = {
@@ -72,9 +76,9 @@ public void run() {
7276 AffineTransform3D orientation ;
7377 try {
7478 orientation = ReslicedAtlas .getTransformFromCoronal (
75- x_axis .substring (0 ,3 ),
76- y_axis .substring (0 ,3 ),
77- z_axis .substring (0 ,3 )
79+ x_axis .substring (0 ,2 ),
80+ y_axis .substring (0 ,2 ),
81+ z_axis .substring (0 ,2 )
7882 );
7983 } catch (IllegalArgumentException exception ) {
8084 System .err .println ("Incorrect arguments, you need to use all three axes." );
You can’t perform that action at this time.
0 commit comments