opentps.gui.viewer.dataViewerComponents package

Subpackages

Submodules

opentps.gui.viewer.dataViewerComponents.blackEmptyPlot module

class BlackEmptyPlot(parent)

Bases: QWidget

opentps.gui.viewer.dataViewerComponents.dataViewerToolbar module

class DataViewerToolbar(dataViewer)

Bases: QToolBar

property toolsMenu: QMenu

opentps.gui.viewer.dataViewerComponents.doseComparisonImageProvider module

class DoseComparisonImageProvider

Bases: object

class Metric(value)

Bases: Enum

An enumeration.

ABSOLUTE_DIFFERENCE = 'absolute difference'
DEFAULT = 'difference'
DIFFERENCE = 'difference'
GAMMA = 'gamma'
property comparisonMetric
property dose1
property dose2
property doseComparisonImage: Image3D | None

opentps.gui.viewer.dataViewerComponents.dvhPlot module

class DVHBand(dvh: DVH, referenceROI: ROIContour | ROIMask, parent=None)

Bases: object

compute_band_Dx(x)
compute_metrics()
class DVHCurve(dvh: DVH, referenceROI: ROIContour | ROIMask, parent=None, style=1)

Bases: object

clear()
class DVHPlot(parent)

Bases: PlotWidget

property DVHs: Sequence[DVH]
appendDVH(dvh: DVH, referenceROI: ROIContour | ROIMask, style=1)
clear()
removeDVH(dvh: DVH)
class DVHViewer(parent)

Bases: QWidget

appendROI(roi: ROIMask | ROIContour)
clear()
property dose: DoseImage | None
property dose2: DoseImage | None
removeROI(roi: ROIMask | ROIContour)
property rois: Sequence[ROIContour | ROIMask]

opentps.gui.viewer.dataViewerComponents.dvhViewerActions module

class DVHViewerActions(dvhViewer: DVHViewer)

Bases: object

addToToolbar(toolbar: DataViewerToolbar)
hide()
show()

opentps.gui.viewer.dataViewerComponents.dynamicImage2DViewer module

class DynamicImage2DViewer(viewController)

Bases: Image2DViewer

nextImage(index)
property primaryImage
resetDynamicParameters()
property secondaryImage

opentps.gui.viewer.dataViewerComponents.dynamicImage3DViewer module

class DynamicImage3DViewer(viewController)

Bases: Image3DViewer

nextImage(index)
property primaryImage
resetDynamicParameters()
property secondaryImage

opentps.gui.viewer.dataViewerComponents.image2DViewer module

class Image2DViewer(viewController)

Bases: QWidget

closeEvent(self, QCloseEvent)
property crossHairEnabled: bool
onLeftButtonPressed(obj=None, event='Press')
onMouseMove(obj=None, event=None)
onScroll(obj=None, event='Forward')
property primaryImage: Image2D
property profileWidgetEnabled: bool
reset()
property rtPlan: RTPlan
property secondaryImage: Image2D | None
property secondaryImageLayer
setCrossHairEnabled(enabled: bool)
setProfileWidgetEnabled(enabled)
setWWLEnabled(enabled: bool)
property viewType
property wwlEnabled: bool

opentps.gui.viewer.dataViewerComponents.image3DViewer module

class Image3DViewer(viewController)

Bases: QWidget

class ViewerTypes(value)

Bases: Enum

An enumeration.

AXIAL = 'axial'
CORONAL = 'coronal'
DEFAULT = 'sagittal'
SAGITTAL = 'sagittal'
closeEvent(self, QCloseEvent)
property crossHairEnabled: bool
onLeftButtonPressed(obj=None, event='Press')
onMouseMove(obj=None, event=None)
onScroll(obj=None, event='Forward')
property primaryImage: Image3D
property profileWidgetEnabled: bool
reset()
property rtPlan: RTPlan
property secondaryImage: Image3D | None
property secondaryImageLayer
setCrossHairEnabled(enabled: bool)
setProfileWidgetEnabled(enabled)
setWWLEnabled(enabled: bool)
property viewType
property wwlEnabled: bool

opentps.gui.viewer.dataViewerComponents.image3DViewer_3D module

class Image3DViewer_3D(viewController, parent=None)

Bases: QWidget

closeEvent(self, QCloseEvent)
property primaryImage: Image3D | None
reset()
property rtPlan: RTPlan
property secondaryImage: Image3D | None
setNewContour(contour: ROIContour | ROIMask)
show(self)
update(self)
update(self, QRect) None
update(self, QRegion) None
update(self, int, int, int, int) None

opentps.gui.viewer.dataViewerComponents.imageFusionPropEditor module

class ImageFusionPropEditor(image, parent=None)

Bases: QMainWindow

class RangeEditor(image, parent=None)

Bases: QWidget

setRangeValue(range)

opentps.gui.viewer.dataViewerComponents.imageViewerActions module

class DoseComparisonMenu(imageViewer: Image3DViewer)

Bases: QMenu

setFusion(name: str)
class ImageViewerActions(imageViewer: Image3DViewer)

Bases: object

addToToolbar(toolbar: DataViewerToolbar)
property doseComparisonDataViewer
hide()
setImageViewer(imageViewer)
show()
class PrimaryImageMenu(imageViewer: Image3DViewer)

Bases: QMenu

class RTPlanMenu(imageViewer: Image3DViewer)

Bases: QMenu

class SecondaryImageMenu(imageViewer: Image3DViewer)

Bases: QMenu

setFusion(name: str)
class WWLPreset(name: str, wwl: Sequence[float])

Bases: object

presets() Sequence[WWLPreset]

opentps.gui.viewer.dataViewerComponents.patientDataPropertyEditor module

class PatientDataPropertyEditor(image, parent=None)

Bases: QWidget

class TwoRowElement(property, parent=None)

Bases: QWidget

supportedTypes()

opentps.gui.viewer.dataViewerComponents.profileViewer module

class ProfileViewer(viewController, nbProfiles=10)

Bases: QWidget

count()
drawProfile(profileIndex, *args, **kwargs)
erase()
export()
property nbProfiles
removeProfile(profileIndex)

opentps.gui.viewer.dataViewerComponents.profileWidget module

class ProfileWidget(renderer, renderWindow)

Bases: object

class ProfileWidgetCallback

Bases: object

property setContourData
property setPrimaryImageData
property setSecondaryImageData
property callback
property contourLayer
property enabled: bool
onProfileWidgetInteraction(obj, event)
property primaryLayer
property secondaryLayer
setInitialPosition(worldPos: Sequence)

Module contents