Commit 1ebaf5c2 authored by Stephen Thompson's avatar Stephen Thompson

Issue #1 more implementation on overlay.py

parent 2d43163d
Pipeline #3758 passed with stages
in 6 minutes and 16 seconds
{
"tracker config" :
{
"tracker type" : "aruco",
"debug" : true
},
"camera" : {
"origin" : [0.0, 0.0, 0.0],
"normal" : [0.0, 0.0, 1.0],
"bounding box" : [0.0, 640.0, 0.0, 480.0, -100.0, 0.0]
},
"models" : "data/"
}
......@@ -7,6 +7,9 @@ from sksurgeryeval.algorithms.algorithms import (
configure_tracker, populate_models, np2vtk, point_in_locator)
from sksurgeryeval.algorithms.background_image import \
OverlayBackground
from sksurgeryeval.shapes.cone import VTKConeModel
class OverlayApp(OverlayBaseApp):
......@@ -47,7 +50,7 @@ class OverlayApp(OverlayBaseApp):
self._tracker_handle = 0
self._pointer = VTKConeModel(5.0, 2.5, (1.0, 1.0, 1.0), "pointer")
self.vtk_overlay_window.add_vtk_models(self._pointer)
self.vtk_overlay_window.add_vtk_actor(self._pointer.actor)
self.vtk_overlay_window.add_vtk_models(models)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment