88from ipyniivue .constants import (
99 DragMode ,
1010 MultiplanarType ,
11+ PenType ,
1112 ShowRender ,
1213 SliceType ,
1314)
@@ -36,6 +37,7 @@ class ConfigOptions(t.HasTraits):
3637 font_color = t .Tuple ((0.5 , 0.5 , 0.5 , 1.0 )).tag (sync = False )
3738 selection_box_color = t .Tuple ((1.0 , 1.0 , 1.0 , 0.5 )).tag (sync = False )
3839 clip_plane_color = t .Tuple ((0.7 , 0.0 , 0.7 , 0.5 )).tag (sync = False )
40+ paqd_uniforms = t .Tuple ((0.3 , 0.5 , 0.5 , 1.0 )).tag (sync = False )
3941 clip_thick = t .Float (2.0 ).tag (sync = False )
4042 clip_volume_low = t .Tuple ((0.0 , 0.0 , 0.0 )).tag (sync = False )
4143 clip_volume_high = t .Tuple ((1.0 , 1.0 , 1.0 )).tag (sync = False )
@@ -71,7 +73,8 @@ class ConfigOptions(t.HasTraits):
7173 is_depth_pick_mesh = t .Bool (False ).tag (sync = False )
7274 is_corner_orientation_text = t .Bool (False ).tag (sync = False )
7375 is_orientation_text_visible = t .Bool (True ).tag (sync = False )
74- hero_image_fraction = t .Int (0 ).tag (sync = False )
76+ show_all_orientation_markers = t .Bool (False ).tag (sync = False )
77+ hero_image_fraction = t .Float (0.0 ).tag (sync = False )
7578 hero_slice_type = t .UseEnum (SliceType , default_value = SliceType .RENDER ).tag (
7679 sync = False
7780 )
@@ -85,6 +88,7 @@ class ConfigOptions(t.HasTraits):
8588 drag_and_drop_enabled = t .Bool (True ).tag (sync = False )
8689 drawing_enabled = t .Bool (False ).tag (sync = False )
8790 pen_value = t .Float (1.0 ).tag (sync = False )
91+ pen_type = t .UseEnum (PenType , default_value = PenType .PEN ).tag (sync = False )
8892 flood_fill_neighbors = t .Int (6 ).tag (sync = False )
8993 is_filled_pen = t .Bool (False ).tag (sync = False )
9094 thumbnail = t .Unicode ("" ).tag (sync = False )
@@ -153,6 +157,7 @@ def __init__(self, parent=None, **kwargs):
153157 "font_color" ,
154158 "selection_box_color" ,
155159 "clip_plane_color" ,
160+ "paqd_uniforms" ,
156161 "clip_thick" ,
157162 "clip_volume_low" ,
158163 "clip_volume_high" ,
@@ -184,6 +189,7 @@ def __init__(self, parent=None, **kwargs):
184189 "is_depth_pick_mesh" ,
185190 "is_corner_orientation_text" ,
186191 "is_orientation_text_visible" ,
192+ "show_all_orientation_markers" ,
187193 "hero_image_fraction" ,
188194 "hero_slice_type" ,
189195 "sagittal_nose_left" ,
@@ -196,6 +202,7 @@ def __init__(self, parent=None, **kwargs):
196202 "drag_and_drop_enabled" ,
197203 "drawing_enabled" ,
198204 "pen_value" ,
205+ "pen_type" ,
199206 "flood_fill_neighbors" ,
200207 "is_filled_pen" ,
201208 "thumbnail" ,
@@ -265,6 +272,7 @@ def _propagate_parent_change(self, change):
265272 "fontColor" : "font_color" ,
266273 "selectionBoxColor" : "selection_box_color" ,
267274 "clipPlaneColor" : "clip_plane_color" ,
275+ "paqdUniforms" : "paqd_uniforms" ,
268276 "clipThick" : "clip_thick" ,
269277 "clipVolumeLow" : "clip_volume_low" ,
270278 "clipVolumeHigh" : "clip_volume_high" ,
@@ -296,6 +304,7 @@ def _propagate_parent_change(self, change):
296304 "isDepthPickMesh" : "is_depth_pick_mesh" ,
297305 "isCornerOrientationText" : "is_corner_orientation_text" ,
298306 "isOrientationTextVisible" : "is_orientation_text_visible" ,
307+ "showAllOrientationMarkers" : "show_all_orientation_markers" ,
299308 "heroImageFraction" : "hero_image_fraction" ,
300309 "heroSliceType" : "hero_slice_type" ,
301310 "sagittalNoseLeft" : "sagittal_nose_left" ,
@@ -308,6 +317,7 @@ def _propagate_parent_change(self, change):
308317 "dragAndDropEnabled" : "drag_and_drop_enabled" ,
309318 "drawingEnabled" : "drawing_enabled" ,
310319 "penValue" : "pen_value" ,
320+ "penType" : "pen_type" ,
311321 "floodFillNeighbors" : "flood_fill_neighbors" ,
312322 "isFilledPen" : "is_filled_pen" ,
313323 "thumbnail" : "thumbnail" ,
0 commit comments