Skip to content

Commit edf13ef

Browse files
committed
Update test drive.
1 parent 3fad443 commit edf13ef

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

src/main/java/fiji/plugin/trackmate/gui/editor/LabkitLauncher.java

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
* it under the terms of the GNU General Public License as
99
* published by the Free Software Foundation, either version 3 of the
1010
* License, or (at your option) any later version.
11-
*
11+
*
1212
* This program is distributed in the hope that it will be useful,
1313
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515
* GNU General Public License for more details.
16-
*
16+
*
1717
* You should have received a copy of the GNU General Public
1818
* License along with this program. If not, see
1919
* <http://www.gnu.org/licenses/gpl-3.0.html>.
@@ -37,6 +37,7 @@
3737
import org.scijava.ui.behaviour.util.AbstractNamedAction;
3838

3939
import fiji.plugin.trackmate.Model;
40+
import fiji.plugin.trackmate.SelectionModel;
4041
import fiji.plugin.trackmate.Settings;
4142
import fiji.plugin.trackmate.TrackMate;
4243
import fiji.plugin.trackmate.detection.DetectionUtils;
@@ -48,7 +49,9 @@
4849
import fiji.plugin.trackmate.io.TmXmlReader;
4950
import fiji.plugin.trackmate.util.EverythingDisablerAndReenabler;
5051
import fiji.plugin.trackmate.util.TMUtils;
52+
import fiji.plugin.trackmate.visualization.TrackMateModelView;
5153
import fiji.plugin.trackmate.visualization.ViewUtils;
54+
import fiji.plugin.trackmate.visualization.hyperstack.HyperStackDisplayer;
5255
import ij.ImagePlus;
5356
import net.imagej.axis.Axes;
5457
import net.imagej.axis.CalibratedAxis;
@@ -207,7 +210,8 @@ public void run()
207210

208211
public static void main( final String[] args )
209212
{
210-
final String filename = "samples/MAX_Merged.xml";
213+
// final String filename = "samples/MAX_Merged.xml";
214+
final String filename = "samples/221031_Stat_Stage55_561nm_part1Conf_crop_f4.xml";
211215
final TmXmlReader reader = new TmXmlReader( new File( filename ) );
212216
if ( !reader.isReadingOk() )
213217
{
@@ -220,7 +224,14 @@ public static void main( final String[] args )
220224
final Settings settings = reader.readSettings( imp );
221225
final DisplaySettings ds = reader.getDisplaySettings();
222226
final TrackMate trackmate = new TrackMate( model, settings );
227+
final SelectionModel selectionModel = new SelectionModel( model );
223228

224-
LabkitLauncher.launch( trackmate, ds, 0 );
229+
// Main view.
230+
final TrackMateModelView displayer = new HyperStackDisplayer( model, selectionModel, settings.imp, ds );
231+
displayer.render();
232+
imp.setSlice( 7 );
233+
234+
// Editor
235+
LabkitLauncher.launch( trackmate, ds, 6 );
225236
}
226237
}

0 commit comments

Comments
 (0)