Skip to content

Commit

Permalink
do not show tracking panel, if not a timelapse
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatrukha committed Jun 26, 2024
1 parent eb6f30d commit 2576a2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/java/bigtrace/BigTrace.java
Original file line number Diff line number Diff line change
Expand Up @@ -1572,8 +1572,8 @@ public static void main(String... args) throws Exception
BigTrace testI = new BigTrace();

//testI.run("");
//testI.run("/home/eugene/Desktop/projects/BigTrace/BigTrace_data/ExM_MT.tif");
testI.run("/home/eugene/Desktop/projects/BigTrace/BT_tracks/Snejana_small_example.tif");
testI.run("/home/eugene/Desktop/projects/BigTrace/BigTrace_data/ExM_MT.tif");
//testI.run("/home/eugene/Desktop/projects/BigTrace/BT_tracks/Snejana_small_example.tif");

/*
testI.roiManager.setLockMode(true);
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/bigtrace/BigTraceControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class BigTraceControlPanel< T extends RealType< T > & NativeType< T > > e

public BigTraceControlPanel(final BigTrace<T> bt_,final BigTraceData<T> btd_, final RoiManager3D<T> roiManager_)//, int locx, int locy)
{
//finalPanel = new JPanel(new GridBagLayout());

super(new GridBagLayout());

btdata = btd_;
Expand Down Expand Up @@ -113,11 +113,13 @@ public BigTraceControlPanel(final BigTrace<T> bt_,final BigTraceData<T> btd_, fi
tabIcon = new ImageIcon(icon_path);
tabPane.addTab("",tabIcon ,roiMeasure,"Measure");

//TRACKS
icon_path = bigtrace.BigTrace.class.getResource("/icons/tracks.png");
tabIcon = new ImageIcon(icon_path);
tabPane.addTab("",tabIcon ,btTracksPanel,"Tracking");

//TRACKS
if(BigTraceData.nNumTimepoints>1)
{
icon_path = bigtrace.BigTrace.class.getResource("/icons/tracks.png");
tabIcon = new ImageIcon(icon_path);
tabPane.addTab("",tabIcon ,btTracksPanel,"Tracking");
}

icon_path = bigtrace.BigTrace.class.getResource("/icons/shortcut.png");
tabIcon = new ImageIcon(icon_path);
Expand Down

0 comments on commit 2576a2f

Please sign in to comment.