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>.
3737import org .scijava .ui .behaviour .util .AbstractNamedAction ;
3838
3939import fiji .plugin .trackmate .Model ;
40+ import fiji .plugin .trackmate .SelectionModel ;
4041import fiji .plugin .trackmate .Settings ;
4142import fiji .plugin .trackmate .TrackMate ;
4243import fiji .plugin .trackmate .detection .DetectionUtils ;
4849import fiji .plugin .trackmate .io .TmXmlReader ;
4950import fiji .plugin .trackmate .util .EverythingDisablerAndReenabler ;
5051import fiji .plugin .trackmate .util .TMUtils ;
52+ import fiji .plugin .trackmate .visualization .TrackMateModelView ;
5153import fiji .plugin .trackmate .visualization .ViewUtils ;
54+ import fiji .plugin .trackmate .visualization .hyperstack .HyperStackDisplayer ;
5255import ij .ImagePlus ;
5356import net .imagej .axis .Axes ;
5457import 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