HipSurgicalPlannerMainCanvas

Main canvas for the Hip Surgical Planner

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4
copyright:Object Research Systems (ORS), Inc. All rights reserved 2021.
date:Apr 08 2019 11:31
dragonflyVersion:
 4.1
UUID:c5355f525a1411e98d7e448a5b5d70c0

Class Code

class OrsPythonPlugins.HipSurgicalPlannerMainCanvas.HipSurgicalPlannerMainCanvas.HipSurgicalPlannerMainCanvas(varname=None)
MODE_CUP = 1
MODE_PREOP = 0
MODE_REDUCED = 3
MODE_STEM = 2
PLANE_CORONAL = 2
PLANE_SAGITTAL = 1
PLANE_TRANSVERSE = 0
PLUGIN_ORSBASICMANIPULATE = 'OrsBasicManipulate'
PLUGIN_ORSHIGHLIGHTMANAGER = 'OrsHighlightManager'
PLUGIN_ORSLAYOUTMANAGER = 'OrsLayoutManager'
PLUGIN_ORSMOVEMENTANDREGISTRATION = 'OrsMovementAndRegistration'
PLUGIN_ORSQTLAYOUT = 'OrsQtLayout'
PLUGIN_ORSSTATESELECTOR = 'OrsStateSelector'
PLUGIN_ORSTEXTPRESENTERMANAGER = 'OrsTextPresenterManager'
PLUGIN_ORSTHAIMPLANTSELECTOR = 'OrsTHAImplantSelector'
PRESENTATION_3DSLICER = 2
PRESENTATION_CT = 1
PRESENTATION_DEFAULT = 4
PRESENTATION_REAMING = 0
PRESENTATION_XRAY = 3
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
VISIBLE_ELEMENTS_DOUBLE_VIEWS = 'VisibleElementDoubleViews'
VISIBLE_ELEMENTS_FOR_EACH_COMBINATION = {(0, 3): {'VisibleElementShowDatasetIn3D', 'VisibleElementXRayFilter', 'VisibleElementShowDataset', 'VisibleElementMainViewIn3D', 'VisibleElementLinesFromLandmarks', 'VisibleElementOverlayPreop'}, (0, 4): {'VisibleElementShowMeshFemur', 'VisibleElementShowMeshPelvis', 'VisibleElementShowMeshContralateralFemur', 'VisibleElementMainViewIn3D', 'VisibleElementOverlayPreop'}, (1, 0): {'VisibleElementDoubleViews', 'VisibleElementShowDatasetFemur', 'VisibleElementShowMeshPelvis', 'VisibleElementShowArrows', 'VisibleElementShowDatasetNoFemur', 'VisibleElementShowIntersectionCupPelvis', 'VisibleElementOverlayCup', 'VisibleElementMainViewIn3D', 'VisibleElementShowCup'}, (1, 1): {'VisibleElementDoubleViews', 'VisibleElementShowDatasetFemur', 'VisibleElementShowArrows', 'VisibleElementShowDatasetNoFemur', 'VisibleElementOverlayCup', 'VisibleElementShowCup'}, (1, 2): {'VisibleElementDoubleViews', 'VisibleElementShowDatasetFemur', 'VisibleElementShowMeshPelvis', 'VisibleElementShowCupIn3D', 'VisibleElementShowArrows', 'VisibleElementShowDatasetNoFemur', 'VisibleElementOverlayCup', 'VisibleElementMainViewIn3D', 'VisibleElementsSliceWithVisualPlane', 'VisibleElementShowCup', 'VisibleElementShowDatasetPelvis', 'VisibleElementShowDatasetPelvisIn3D'}, (1, 3): {'VisibleElementShowDatasetFemur3D', 'VisibleElementShowDatasetFemur', 'VisibleElementShowCupIn3D', 'VisibleElementShowDatasetNoFemurIn3D', 'VisibleElementXRayFilter', 'VisibleElementShowArrows', 'VisibleElementShowDatasetNoFemur', 'VisibleElementOverlayCup', 'VisibleElementMainViewIn3D', 'VisibleElementShowCup'}, (1, 4): {'VisibleElementShowCupIn3D', 'VisibleElementShowMeshPelvis', 'VisibleElementShowArrows', 'VisibleElementOverlayCup', 'VisibleElementMainViewIn3D', 'VisibleElementShowCup'}, (2, 1): {'VisibleElementDoubleViews', 'VisibleElementShowDatasetFemur', 'VisibleElementShowStem', 'VisibleElementOverlayReduced', 'VisibleElementShowArrows', 'VisibleElementShowDatasetNoFemur', 'VisibleElementOverlayStem'}, (2, 2): {'VisibleElementDoubleViews', 'VisibleElementShowDatasetFemur3D', 'VisibleElementShowDatasetFemur', 'VisibleElementShowStem', 'VisibleElementOverlayReduced', 'VisibleElementShowDatasetContralateralFemur', 'VisibleElementShowMeshContralateralFemur', 'VisibleElementShowDatasetNoFemur', 'VisibleElementShowArrows', 'VisibleElementMainViewIn3D', 'VisibleElementShowMeshRepositionedFemur', 'VisibleElementsSliceWithVisualPlane', 'VisibleElementShowDatasetContralateralFemurIn3D', 'VisibleElementOverlayStem'}, (2, 3): {'VisibleElementShowDatasetFemur3D', 'VisibleElementShowDatasetFemur', 'VisibleElementShowDatasetNoFemurIn3D', 'VisibleElementShowStem', 'VisibleElementOverlayReduced', 'VisibleElementXRayFilter', 'VisibleElementShowArrows', 'VisibleElementShowDatasetNoFemur', 'VisibleElementMainViewIn3D', 'VisibleElementOverlayStem'}, (2, 4): {'VisibleElementShowStem', 'VisibleElementOverlayReduced', 'VisibleElementShowMeshContralateralFemur', 'VisibleElementShowArrows', 'VisibleElementMainViewIn3D', 'VisibleElementShowMeshRepositionedFemur', 'VisibleElementOverlayStem'}, (3, 3): {'VisibleElementShowDatasetCutFemur', 'VisibleElementShowCupIn3D', 'VisibleElementShowDatasetNoFemurIn3D', 'VisibleElementShowStem', 'VisibleElementOverlayReduced', 'VisibleElementXRayFilter', 'VisibleElementShowDatasetCutFemurIn3D', 'VisibleElementShowDatasetNoFemur', 'VisibleElementMainViewIn3D', 'VisibleElementReduceImplants', 'VisibleElementShowCup', 'VisibleElementShowLinerAndFemoralHead', 'VisibleElementLinesFromLandmarks'}, (3, 4): {'VisibleElementShowMeshPelvis', 'VisibleElementShowCupIn3D', 'VisibleElementShowStem', 'VisibleElementOverlayReduced', 'VisibleElementShowMeshContralateralFemur', 'VisibleElementMainViewIn3D', 'VisibleElementReduceImplants', 'VisibleElementShowCup', 'VisibleElementShowLinerAndFemoralHead', 'VisibleElementLinesFromLandmarks', 'VisibleElementShowMeshCutFemur'}}
VISIBLE_ELEMENTS_LINES_FROM_LANDMARKS = 'VisibleElementLinesFromLandmarks'
VISIBLE_ELEMENTS_MAIN_VIEW_IN_3D = 'VisibleElementMainViewIn3D'
VISIBLE_ELEMENTS_OVERLAY_CUP = 'VisibleElementOverlayCup'
VISIBLE_ELEMENTS_OVERLAY_PREOP = 'VisibleElementOverlayPreop'
VISIBLE_ELEMENTS_OVERLAY_REDUCED = 'VisibleElementOverlayReduced'
VISIBLE_ELEMENTS_OVERLAY_STEM = 'VisibleElementOverlayStem'
VISIBLE_ELEMENTS_REDUCE_IMPLANTS = 'VisibleElementReduceImplants'
VISIBLE_ELEMENTS_SHOW_ARROWS = 'VisibleElementShowArrows'
VISIBLE_ELEMENTS_SHOW_CUP = 'VisibleElementShowCup'
VISIBLE_ELEMENTS_SHOW_CUP_IN_3D = 'VisibleElementShowCupIn3D'
VISIBLE_ELEMENTS_SHOW_DATASET = 'VisibleElementShowDataset'
VISIBLE_ELEMENTS_SHOW_DATASET_CONTRALATERAL_FEMUR = 'VisibleElementShowDatasetContralateralFemur'
VISIBLE_ELEMENTS_SHOW_DATASET_CONTRALATERAL_FEMUR_IN_3D = 'VisibleElementShowDatasetContralateralFemurIn3D'
VISIBLE_ELEMENTS_SHOW_DATASET_CUT_FEMUR = 'VisibleElementShowDatasetCutFemur'
VISIBLE_ELEMENTS_SHOW_DATASET_CUT_FEMUR_IN_3D = 'VisibleElementShowDatasetCutFemurIn3D'
VISIBLE_ELEMENTS_SHOW_DATASET_FEMUR = 'VisibleElementShowDatasetFemur'
VISIBLE_ELEMENTS_SHOW_DATASET_FEMUR_IN_3D = 'VisibleElementShowDatasetFemur3D'
VISIBLE_ELEMENTS_SHOW_DATASET_IN_3D = 'VisibleElementShowDatasetIn3D'
VISIBLE_ELEMENTS_SHOW_DATASET_NO_FEMUR = 'VisibleElementShowDatasetNoFemur'
VISIBLE_ELEMENTS_SHOW_DATASET_NO_FEMUR_IN_3D = 'VisibleElementShowDatasetNoFemurIn3D'
VISIBLE_ELEMENTS_SHOW_DATASET_PELVIS = 'VisibleElementShowDatasetPelvis'
VISIBLE_ELEMENTS_SHOW_DATASET_PELVIS_IN_3D = 'VisibleElementShowDatasetPelvisIn3D'
VISIBLE_ELEMENTS_SHOW_INTERSECTION_CUP_PELVIS = 'VisibleElementShowIntersectionCupPelvis'
VISIBLE_ELEMENTS_SHOW_LINER_AND_FEMORAL_HEAD = 'VisibleElementShowLinerAndFemoralHead'
VISIBLE_ELEMENTS_SHOW_MESH_CONTRALATERAL_FEMUR = 'VisibleElementShowMeshContralateralFemur'
VISIBLE_ELEMENTS_SHOW_MESH_CUT_FEMUR = 'VisibleElementShowMeshCutFemur'
VISIBLE_ELEMENTS_SHOW_MESH_FEMUR = 'VisibleElementShowMeshFemur'
VISIBLE_ELEMENTS_SHOW_MESH_PELVIS = 'VisibleElementShowMeshPelvis'
VISIBLE_ELEMENTS_SHOW_MESH_REPOSITIONED_FEMUR = 'VisibleElementShowMeshRepositionedFemur'
VISIBLE_ELEMENTS_SHOW_STEM = 'VisibleElementShowStem'
VISIBLE_ELEMENTS_SLICE_WITH_VISUAL_PLANE = 'VisibleElementsSliceWithVisualPlane'
VISIBLE_ELEMENTS_XRAY_FILTER = 'VisibleElementXRayFilter'
ZOOMANDLEVELING_BRIGHTNESS = 1
ZOOMANDLEVELING_CONTRAST = 2
ZOOMANDLEVELING_ZOOM = 0
canBeGenericallyOpened = True
getAvailablePresentationsForMode(mode)
getBrightnessCurrentValue()
getBrightnessMaxValue()
getBrightnessMinValue()
classmethod getContextName()
getContrastCurrentValue()
getContrastMaxValue()
getContrastMinValue()
getCurrentMode()
getCurrentPresentation()
getCurrentZoomAndLeveling()
classmethod getMainFormClass()

Gets the class of the main form

Returns:output
getPluginOrsTHAImplantSelector()
getZoomAndLevelingSliderEnabled(currentZoomAndLeveling)
getZoomCurrentValue()
keepAlive = False
loadPlan(filename)
modalContext = True
multiple = False
onReductionSignatureChanged()
privateObjects = True
restrictPlugins = True
savable = False
setBrightnessCurrentValue(brightnessValue)
setContrastCurrentValue(contrastValue)
setCurrentCombination(mode, presentation)
setCurrentZoomAndLeveling(newZoomAndLeveling)
setZoomCurrentValue(zoomFactor)
classmethod startHipSurgicalPlannerMainCanvas()
classmethod startupDefault(openMainForm=True)

Creates an instance of the plugin class and opens the main form (if required) at the default position.

Returns:output (AbstractPlugin) – plugin instance
classmethod toolsMenu()