Package sc.fiji.snt.tracing.artist
Class BiSearchArtist
java.lang.Object
sc.fiji.snt.tracing.artist.BiSearchArtist
- All Implemented Interfaces:
SearchArtist
An artist implementation that visualizes bidirectional search operations.
This class is responsible for rendering the visual representation of bidirectional search processes, typically showing:
- Forward search progress from the start point
- Backward search progress from the target point
- Search frontiers and explored regions
- Meeting points when the bidirectional paths connect
-
Constructor Summary
ConstructorsConstructorDescriptionBiSearchArtist(BiSearch search, Color openColor, Color closedColor) Constructs a new BiSearchArtist with the specified search and colors. -
Method Summary
Modifier and TypeMethodDescriptionanyNodeUnderThreshold(int x, int y, int z, double threshold) voiddrawProgressOnSlice(int plane, int currentSliceInPlane, TracerCanvas canvas, Graphics g) voidsetClosedColor(Color color) Sets the color for closed nodes.voidsetDrawingThreshold(double threshold) Sets the drawing threshold for visualization.voidsetOpenColor(Color color) Sets the color for open nodes.
-
Constructor Details
-
BiSearchArtist
Constructs a new BiSearchArtist with the specified search and colors.- Parameters:
search- the BiSearch instance to visualizeopenColor- the color for open nodesclosedColor- the color for closed nodes
-
-
Method Details
-
setOpenColor
Sets the color for open nodes.- Parameters:
color- the color to set
-
setClosedColor
Sets the color for closed nodes.- Parameters:
color- the color to set
-
setDrawingThreshold
public void setDrawingThreshold(double threshold) Sets the drawing threshold for visualization.- Parameters:
threshold- the threshold value
-
drawProgressOnSlice
public void drawProgressOnSlice(int plane, int currentSliceInPlane, TracerCanvas canvas, Graphics g) - Specified by:
drawProgressOnSlicein interfaceSearchArtist
-
getSearch
- Specified by:
getSearchin interfaceSearchArtist
-
anyNodeUnderThreshold
-