Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
WEISS
Software Repositories
SNAPPY
scikit-surgerydavinci
Commits
9ef39a05
Commit
9ef39a05
authored
Mar 01, 2019
by
Thomas Dowrick
Browse files
Issue
#8
: Update docstrings [Closes
#8
]
parent
f4a3c31f
Pipeline
#1836
failed with stages
in 67 minutes and 39 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
sksurgerydavinci/ui/gui.py
View file @
9ef39a05
...
...
@@ -139,7 +139,7 @@ class UI(QWidget):
"""Set the opacity for all VTK models
:param opacity_percent: Target opacity value, in %
:type opacity_percent: int
eger
:type opacity_percent: int
"""
opacity
=
opacity_percent
/
100
...
...
sksurgerydavinci/widgets/Viewers.py
View file @
9ef39a05
...
...
@@ -44,10 +44,11 @@ class DuplicateOverlayWindow(OverlayOnVideoFeed):
class
MonoViewer
(
QtWidgets
.
QWidget
):
"""Generates a VTK interactor UI with a video stream as background"""
"""
Generates a VTK interactor UI with a video stream as background
:param video_source: OpenCV compatible video source (int or filename)
"""
def
__init__
(
self
,
video_source
):
super
().
__init__
()
LOGGER
.
info
(
"Creating Mono Viewer"
)
...
...
@@ -56,7 +57,11 @@ class MonoViewer(QtWidgets.QWidget):
self
.
UI
=
UI
(
self
.
overlay_window
)
def
add_vtk_models
(
self
,
models
):
"""Add vtk model overlays to the window"""
"""
Add vtk model overlays to the window
:param models: list of vtk models to add
:type models: list of VTKSurfaceModels
"""
self
.
UI
.
add_vtk_models
(
models
)
def
start
(
self
):
...
...
@@ -98,6 +103,7 @@ class StereoViewerBase(QtWidgets.QWidget):
external monitors are available.
:param output_screens: List of screens on which to put widgets
:type output_screens: List of ints
"""
screen_controller
=
ScreenController
()
self
.
primary
,
self
.
screens
=
screen_controller
.
list_of_screens
()
...
...
@@ -136,6 +142,9 @@ class StereoViewerBase(QtWidgets.QWidget):
def
are_widgets_on_different_screens
(
self
,
screens
):
"""
Check if each widget has been placed on it's own screen.
:param screens: List of screen numbers corresponding to the screen
each widget is displayed on.
:type screens: list of ints
"""
unique_screens
=
set
(
screens
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment