Skip to content

Commit

Permalink
Add the panel that shows the current timepoint and number of spots to…
Browse files Browse the repository at this point in the history
… the BDV views of Mastodon
  • Loading branch information
stefanhahmann authored and tinevez committed Feb 8, 2024
1 parent 8122626 commit fa7111f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import org.mastodon.mamut.MainWindow;
import org.mastodon.mamut.MamutMenuBuilder;
import org.mastodon.mamut.ProjectModel;
import org.mastodon.mamut.TimepointAndNumberOfSpotsPanel;
import org.mastodon.mamut.model.BoundingSphereRadiusStatistics;
import org.mastodon.mamut.model.BranchGraphModelOverlayProperties;
import org.mastodon.mamut.model.Link;
Expand Down Expand Up @@ -210,6 +211,11 @@ public MamutBranchViewBdv( final ProjectModel appModel )
navigationHandler );
OverlayActions.install( viewActions, viewer, tracksOverlay );

// Add the timepoint and number of spots panel.
final TimepointAndNumberOfSpotsPanel timepointAndNumberOfSpotsPanel =
new TimepointAndNumberOfSpotsPanel( this.timepointModel, model );
frame.getSettingsPanel().add( timepointAndNumberOfSpotsPanel );

/*
* We must make a search action using the underlying model graph,
* because we cannot iterate over the OverlayGraphWrapper properly
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/mastodon/mamut/views/bdv/MamutViewBdv.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.mastodon.mamut.MainWindow;
import org.mastodon.mamut.MamutMenuBuilder;
import org.mastodon.mamut.ProjectModel;
import org.mastodon.mamut.TimepointAndNumberOfSpotsPanel;
import org.mastodon.mamut.UndoActions;
import org.mastodon.mamut.model.Link;
import org.mastodon.mamut.model.Model;
Expand Down Expand Up @@ -232,6 +233,11 @@ public MamutViewBdv( final ProjectModel appModel )
colorBarOverlay, appModel.getKeymap() );
onClose( onCloseMIPDialog );

// Add the timepoint and number of spots panel.
final TimepointAndNumberOfSpotsPanel timepointAndNumberOfSpotsPanel =
new TimepointAndNumberOfSpotsPanel( this.timepointModel, model );
frame.getSettingsPanel().add( timepointAndNumberOfSpotsPanel );

/*
* We must make a search action using the underlying model graph,
* because we cannot iterate over the OverlayGraphWrapper properly
Expand Down

0 comments on commit fa7111f

Please sign in to comment.