Skip to content

Commit

Permalink
tracks v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatrukha committed Jun 12, 2024
1 parent 07d843b commit 9dc6690
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 6 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 @@ -1604,9 +1604,9 @@ public static void main(String... args) throws Exception
new ImageJ();
BigTrace testI = new BigTrace();

testI.run("");
//testI.run("");

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

/*
testI.roiManager.setLockMode(true);
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/bigtrace/BigTraceControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,17 @@ public BigTraceControlPanel(final BigTrace<T> bt_,final BigTraceData<T> btd_, fi
tabIcon = new ImageIcon(icon_path);
tabPane.addTab("",tabIcon ,roiManager,"Tracing");

//MEASUREMENTS

//MEASUREMENTS
icon_path = bigtrace.BigTrace.class.getResource("/icons/measure.png");
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 ,null,"Tracking");


icon_path = bigtrace.BigTrace.class.getResource("/icons/shortcut.png");
tabIcon = new ImageIcon(icon_path);
tabPane.addTab("",tabIcon ,panelInformation(),"Help/Shortcuts");
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/bigtrace/rois/RoiManager3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,14 @@ public void mouseClicked(MouseEvent evt) {


///RoiLIST and buttons
listModel = new DefaultListModel<String>();
jlist = new JList<String>(listModel);
listModel = new DefaultListModel<>();
jlist = new JList<>(listModel);
jlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
jlist.setLayoutOrientation(JList.VERTICAL);
jlist.setVisibleRowCount(-1);
jlist.addListSelectionListener(this);
jlist.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent evt) {
if (evt.getClickCount() == 2) {

Expand Down
30 changes: 30 additions & 0 deletions src/main/java/bigtrace/tracks/BigTraceTracks.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package bigtrace.tracks;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.RealType;

import bigtrace.BigTrace;


public class BigTraceTracks < T extends RealType< T > & NativeType< T > > extends JPanel implements ActionListener
{
final BigTrace<T> bt;


public BigTraceTracks(BigTrace<T> bt)
{
this.bt = bt;
}
@Override
public void actionPerformed( ActionEvent e )
{


}

}
Binary file added src/main/resources/icons/tracks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9dc6690

Please sign in to comment.