Skip to content

Commit

Permalink
ENH: Add clipping planes getter/setter
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmajor committed Dec 6, 2023
1 parent 50378ed commit af3386f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions itkwidgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ def set_background_color(self, bgColor: List[float]):
def get_background_color(self):
return self.viewer_rpc.itk_viewer.getBackgroundColor()

@fetch_value
def set_cropping_planes(self, croppingPlanes):
self.viewer_rpc.itk_viewer.setCroppingPlanes(croppingPlanes)
@fetch_value
async def get_cropping_planes(self):
return await self.viewer_rpc.itk_viewer.getCroppingPlanes()

@fetch_value
def set_image(self, image: Image, name: str = 'Image'):
render_type = _detect_render_type(image, 'image')
Expand Down

0 comments on commit af3386f

Please sign in to comment.