Skip to content

Commit

Permalink
Save the VR controller handedness, even if it does nothing right now
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp committed Oct 4, 2023
1 parent bd3f71a commit b24a007
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bundles/dicom/src/ui/segmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ class HandAction(IntEnum):
def __str__(self):
return " ".join(self.name.split('_')).lower().title()

class Handedness(IntEnum):
LEFT = 0
RIGHT = 1

def __str__(self):
return self.name.title()

class _SegmentationToolSettings(Settings):
EXPLICIT_SAVE = {
'start_vr_automatically': False
Expand All @@ -119,6 +126,7 @@ class _SegmentationToolSettings(Settings):
, 'vr_grip': HandAction.MOVE_CURSOR
, 'vr_a_button': HandAction.SWAP_CREATE_ERASE_MODE
, 'vr_b_button': HandAction.NONE
, 'vr_handedness': Handedness.RIGHT
}

class SegmentationToolControlsDialog(QDialog):
Expand Down

0 comments on commit b24a007

Please sign in to comment.