From 8d1e67769fcfce86842b0a839289571f60411a54 Mon Sep 17 00:00:00 2001 From: Brianna Major Date: Thu, 26 Jan 2023 17:52:31 -0500 Subject: [PATCH] feat(imjoypluginapi): add a function to the ImJoy plugin to add a point set --- src/ImJoyPluginAPI.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ImJoyPluginAPI.js b/src/ImJoyPluginAPI.js index 62a8cc68..60f651bb 100644 --- a/src/ImJoyPluginAPI.js +++ b/src/ImJoyPluginAPI.js @@ -65,6 +65,11 @@ class ImJoyPluginAPI { } } + addPointSet(pointSet) { + let points = itkVtkViewer.utils.ndarrayToPointSet(pointSet) + this.viewer.addPointSet(points) + } + async captureImage() { return await this.viewer.captureImage() }