@@ -366,14 +366,14 @@ async def get_axes_enabled(self) -> asyncio.Future | bool:
366
366
return await self .viewer_rpc .itk_viewer .getAxesEnabled ()
367
367
368
368
@fetch_value
369
- def set_background_color (self , bgColor : List [float ]) -> None :
369
+ def set_background_color (self , bg_color : List [float ]) -> None :
370
370
"""Set the background color for the viewer. Queue the function to be
371
371
run in the background thread once the plugin API is available.
372
372
373
- :param bgColor : A list of floats [r, g, b, a]
374
- :type bgColor : List[float]
373
+ :param bg_color : A list of floats [r, g, b, a]
374
+ :type bg_color : List[float]
375
375
"""
376
- self .queue_request ('setBackgroundColor' , bgColor )
376
+ self .queue_request ('setBackgroundColor' , bg_color )
377
377
@fetch_value
378
378
async def get_background_color (self ) -> asyncio .Future | List [float ]:
379
379
"""Get the current background color.
@@ -481,15 +481,15 @@ async def get_image_blend_mode(self) -> asyncio.Future | str:
481
481
return await self .viewer_rpc .itk_viewer .getImageBlendMode ()
482
482
483
483
@fetch_value
484
- def set_image_color_map (self , colorMap : str ) -> None :
484
+ def set_image_color_map (self , color_map : str ) -> None :
485
485
"""Set the color map for the current component/channel. Queue the
486
486
function to be run in the background thread once the plugin API is
487
487
available.
488
488
489
- :param colorMap : Color map for the current image. default: 'Grayscale'
490
- :type colorMap : str
489
+ :param color_map : Color map for the current image. default: 'Grayscale'
490
+ :type color_map : str
491
491
"""
492
- self .queue_request ('setImageColorMap' , colorMap )
492
+ self .queue_request ('setImageColorMap' , color_map )
493
493
@fetch_value
494
494
async def get_image_color_map (self ) -> asyncio .Future | str :
495
495
"""Get the color map for the current component/channel.
@@ -1032,14 +1032,14 @@ async def get_label_image_label_names(self) -> asyncio.Future | List[str]:
1032
1032
return await self .viewer_rpc .itk_viewer .getLabelImageLabelNames ()
1033
1033
1034
1034
@fetch_value
1035
- def set_label_image_lookup_table (self , lookupTable : str ) -> None :
1035
+ def set_label_image_lookup_table (self , lookup_table : str ) -> None :
1036
1036
"""Set the lookup table for the label map. Queue the function to be run
1037
1037
in the background thread once the plugin API is available.
1038
1038
1039
- :param lookupTable : Label map lookup table. default: 'glasbey'
1040
- :type lookupTable : str
1039
+ :param lookup_table : Label map lookup table. default: 'glasbey'
1040
+ :type lookup_table : str
1041
1041
"""
1042
- self .queue_request ('setLabelImageLookupTable' , lookupTable )
1042
+ self .queue_request ('setLabelImageLookupTable' , lookup_table )
1043
1043
@fetch_value
1044
1044
async def get_label_image_lookup_table (self ) -> asyncio .Future | str :
1045
1045
"""Get the lookup table for the label map.
@@ -1124,36 +1124,36 @@ def get_loaded_image_names(self) -> List[str]:
1124
1124
return list (self .stores .keys ())
1125
1125
1126
1126
@fetch_value
1127
- def add_point_set (self , pointSet : PointSet ) -> None :
1127
+ def add_point_set (self , point_set : PointSet ) -> None :
1128
1128
"""Add a point set to the visualization. Queue the function to be run
1129
1129
in the background thread once the plugin API is available.
1130
1130
1131
- :param pointSet : An array of points to visualize.
1132
- :type pointSet : PointSet
1131
+ :param point_set : An array of points to visualize.
1132
+ :type point_set : PointSet
1133
1133
"""
1134
- pointSet = _get_viewer_point_set (pointSet )
1135
- self .queue_request ('addPointSet' , pointSet )
1134
+ point_set = _get_viewer_point_set (point_set )
1135
+ self .queue_request ('addPointSet' , point_set )
1136
1136
@fetch_value
1137
- def set_point_set (self , pointSet : PointSet ) -> None :
1137
+ def set_point_set (self , point_set : PointSet ) -> None :
1138
1138
"""Set the point set to the visualization. Queue the function to be run
1139
1139
in the background thread once the plugin API is available.
1140
1140
1141
- :param pointSet : An array of points to visualize.
1142
- :type pointSet : PointSet
1141
+ :param point_set : An array of points to visualize.
1142
+ :type point_set : PointSet
1143
1143
"""
1144
- pointSet = _get_viewer_point_set (pointSet )
1145
- self .queue_request ('setPointSets' , pointSet )
1144
+ point_set = _get_viewer_point_set (point_set )
1145
+ self .queue_request ('setPointSets' , point_set )
1146
1146
1147
1147
@fetch_value
1148
- def set_rendering_view_container_style (self , containerStyle : Style ) -> None :
1148
+ def set_rendering_view_container_style (self , container_style : Style ) -> None :
1149
1149
"""Set the CSS style for the rendering view `div`'s. Queue the function
1150
1150
to be run in the background thread once the plugin API is available.
1151
1151
1152
- :param containerStyle : A dict of string keys and sting values
1152
+ :param container_style : A dict of string keys and sting values
1153
1153
representing the desired CSS styling.
1154
- :type containerStyle : Style
1154
+ :type container_style : Style
1155
1155
"""
1156
- self .queue_request ('setRenderingViewContainerStyle' , containerStyle )
1156
+ self .queue_request ('setRenderingViewContainerStyle' , container_style )
1157
1157
@fetch_value
1158
1158
async def get_rendering_view_container_style (self ) -> Style :
1159
1159
"""Get the CSS style for the rendering view `div`'s.
0 commit comments