Side View¶
Side View Module
This file contains a collection of functions which allow the user to simultaneously view the 3D volume from all orientations.
- Usage:
To use this module, import it and instantiate is as you wish:
from Paint4Brains.GUI.SideView import SideView
window = SideView(parameters)
-
class
Paint4Brains.GUI.SideView.SideView(diff, parent=None)¶ SideView class
This class contains a series of functions allowing the user to simultaneously view the 3D volume from all orientations.
- Args:
- diff (int): Flag indicating the different brain view orientations. parent (class): Base or parent class
-
mouseDoubleClickEvent(event)¶ Click trigger
Tracks a mouse double click event which triggers the refreshing of all the views
- Args
- event (event): Mouse double click events for the widget.
-
refresh_all_images()¶ Refresh all images
This function refreshes both the side view images when triggered.
-
refresh_image()¶ Refresh Image
This function refreshes the displayed volume orientation image.
-
set_i(position, out_of_box=False)¶ Set position
This function sets the cursor position for each window.
- Args:
- position (tuple): Tuple containing the required coordinates. out_of_box (bool): Flag indicating if event possition is outisde of the considered volume.