Skip to content

Commit

Permalink
fix: all sources visible in fused mode on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Oct 18, 2023
1 parent 45c6604 commit 0c54596
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/bigwarp/BigWarp.java
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ public void initialize()

updateSourceBoundingBoxEstimators();

setAllSourcesActiveInFused();
createMovingTargetGroups();
viewerP.state().setCurrentGroup( mvgGrp );
viewerP.state().setCurrentGroup( tgtGrp );
Expand Down Expand Up @@ -940,6 +941,15 @@ public void synchronizeSources()
}
}

/**
* Sets the viewer state so that every source is shown in vused mode
*/
protected void setAllSourcesActiveInFused() {

viewerP.state().setSourcesActive(data.sources, true);
viewerQ.state().setSourcesActive(data.sources, true);
}

/**
* Create two source groups - one for moving images,
* and the other for target images, for both viewer frames.
Expand Down

0 comments on commit 0c54596

Please sign in to comment.