public void showAllCoordinateSystems(final boolean b) { for (final Iterator it = univ.contents(); it.hasNext();) ((Content) it.next()).showCoordinateSystem(b); }
public void showCoordinateSystem(final Content c, final boolean b) { if (!checkSel(c)) return; c.showCoordinateSystem(b); record(SET_CS, Boolean.toString(b)); }
public static void setCoordinateSystem(final String s) { final Image3DUniverse univ = getUniv(); if (univ != null && univ.getSelected() != null) { univ.getSelected().showCoordinateSystem(getBoolean(s)); } }
private Content makeTrackContent() { // Prepare tracks instant trackNode = new TrackDisplayNode( model ); universe.addTimelapseListener( trackNode ); // Pass tracks instant to all instants final TreeMap< Integer, ContentInstant > instants = new TreeMap< >(); final ContentInstant trackCI = new ContentInstant( "Tracks_all_frames" ); trackCI.display( trackNode ); instants.put( 0, trackCI ); final Content tc = new Content( TRACK_CONTENT_NAME, instants ); tc.setShowAllTimepoints( true ); tc.showCoordinateSystem( false ); return tc; }
private Content makeTrackContent() { // Prepare tracks instant trackNode = new TrackDisplayNode( model ); universe.addTimelapseListener( trackNode ); // Pass tracks instant to all instants final TreeMap< Integer, ContentInstant > instants = new TreeMap< >(); final ContentInstant trackCI = new ContentInstant( "Tracks_all_frames" ); trackCI.display( trackNode ); instants.put( 0, trackCI ); final Content tc = new Content( TRACK_CONTENT_NAME, instants ); tc.setShowAllTimepoints( true ); tc.showCoordinateSystem( false ); return tc; }
private void makeSpotContent() { blobs = new TreeMap<>(); contentAllFrames = new TreeMap< >(); final double radiusRatio = ( Double ) displaySettings.get( KEY_SPOT_RADIUS_RATIO ); final SpotCollection spots = model.getSpots(); @SuppressWarnings( "unchecked" ) final FeatureColorGenerator< Spot > spotColorGenerator = ( FeatureColorGenerator< Spot > ) displaySettings.get( KEY_SPOT_COLORING ); for ( final int frame : spots.keySet() ) { if ( spots.getNSpots( frame, false ) == 0 ) { continue; // Do not create content for empty frames } buildFrameContent( spots, frame, radiusRatio, spotColorGenerator ); } spotContent = new Content( SPOT_CONTENT_NAME, contentAllFrames ); spotContent.showCoordinateSystem( false ); universe.removeContent( SPOT_CONTENT_NAME ); universe.addContentLater( spotContent ); }
private void makeSpotContent() { blobs = new TreeMap<>(); contentAllFrames = new TreeMap< >(); final double radiusRatio = ( Double ) displaySettings.get( KEY_SPOT_RADIUS_RATIO ); final SpotCollection spots = model.getSpots(); @SuppressWarnings( "unchecked" ) final FeatureColorGenerator< Spot > spotColorGenerator = ( FeatureColorGenerator< Spot > ) displaySettings.get( KEY_SPOT_COLORING ); for ( final int frame : spots.keySet() ) { if ( spots.getNSpots( frame, false ) == 0 ) { continue; // Do not create content for empty frames } buildFrameContent( spots, frame, radiusRatio, spotColorGenerator ); } spotContent = new Content( SPOT_CONTENT_NAME, contentAllFrames ); spotContent.showCoordinateSystem( false ); universe.removeContent( SPOT_CONTENT_NAME ); universe.addContentLater( spotContent ); }