Package sc.fiji.snt.viewer
Class Bvv.AnnotationOverlay
java.lang.Object
sc.fiji.snt.viewer.Bvv.AnnotationOverlay
- Enclosing class:
Bvv
Renders spherical annotations at
SNTPoint world coordinates.
Rendered with CPU (Java2D) but optimized with caching and batched rendering.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(SNTPoint p, float radius, Color color) Add a single annotation.voidaddAnnotations(Collection<SNTPoint> points, float radius, Color color) Add annotations to the current list.voidclear()Remove all annotations.intgetCount()Returns the number of annotations currently in the overlay.booleanvoidsetAnnotations(Collection<SNTPoint> points, float radius, Color color) Replace the current annotations with the provided list.voidsetVisible(boolean visible) Show/hide annotationsvoidEnsure renderers/nodes reflect current annotation list.
-
Method Details
-
setAnnotations
Replace the current annotations with the provided list. -
addAnnotations
Add annotations to the current list. -
addAnnotation
Add a single annotation. -
clear
public void clear()Remove all annotations. -
isVisible
public boolean isVisible() -
getCount
public int getCount()Returns the number of annotations currently in the overlay. -
setVisible
public void setVisible(boolean visible) Show/hide annotations -
updateScene
public void updateScene()Ensure renderers/nodes reflect current annotation list.
-