本文整理汇总了Python中Visualizer.VisualizationModules.VisualizationModule.__set_pure_state__方法的典型用法代码示例。如果您正苦于以下问题:Python VisualizationModule.__set_pure_state__方法的具体用法?Python VisualizationModule.__set_pure_state__怎么用?Python VisualizationModule.__set_pure_state__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Visualizer.VisualizationModules.VisualizationModule
的用法示例。
在下文中一共展示了VisualizationModule.__set_pure_state__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __set_pure_state__
# 需要导入模块: from Visualizer.VisualizationModules import VisualizationModule [as 别名]
# 或者: from Visualizer.VisualizationModules.VisualizationModule import __set_pure_state__ [as 别名]
def __set_pure_state__(self, state):
"""
Set the state of the light
"""
VisualizationModule.__set_pure_state__(self, state)
self.parameters = state.parameters
self.sendUpdateGUI()
示例2: __set_pure_state__
# 需要导入模块: from Visualizer.VisualizationModules import VisualizationModule [as 别名]
# 或者: from Visualizer.VisualizationModules.VisualizationModule import __set_pure_state__ [as 别名]
def __set_pure_state__(self, state):
"""
Set the state of the light
"""
self.setVTKState(self.distanceWidget, state.distanceWidget)
self.setVTKState(self.currentPlane, state.currentPlane)
self.setVTKState(self.renderer, state.renderer)
self.setVTKState(self.renderer.GetActiveCamera(), state.camera)
VisualizationModule.__set_pure_state__(self, state)
示例3: __set_pure_state__
# 需要导入模块: from Visualizer.VisualizationModules import VisualizationModule [as 别名]
# 或者: from Visualizer.VisualizationModules.VisualizationModule import __set_pure_state__ [as 别名]
def __set_pure_state__(self, state):
"""
Method: __set_pure_state__()
Set the state of the light
"""
self.setVTKState(self.spline, state.spline)
self.setVTKState(self.renderer, state.renderer)
self.setVTKState(self.renderer.GetActiveCamera(), state.camera)
VisualizationModule.__set_pure_state__(self, state)
示例4: __set_pure_state__
# 需要导入模块: from Visualizer.VisualizationModules import VisualizationModule [as 别名]
# 或者: from Visualizer.VisualizationModules.VisualizationModule import __set_pure_state__ [as 别名]
def __set_pure_state__(self, state):
"""
Set the state of the light
"""
self.setVTKState(self.planeWidget, state.planeWidget)
self.setVTKState(self.currentPlane, state.currentPlane)
self.setVTKState(self.renderer, state.renderer)
self.setVTKState(self.renderer.GetActiveCamera(), state.camera)
self.clipped = state.clipped
if self.clipped:
self.clipVolumeRendering(self.planeWidget, None)
VisualizationModule.__set_pure_state__(self, state)
示例5: __set_pure_state__
# 需要导入模块: from Visualizer.VisualizationModules import VisualizationModule [as 别名]
# 或者: from Visualizer.VisualizationModules.VisualizationModule import __set_pure_state__ [as 别名]
def __set_pure_state__(self, state):
"""
Set the state of the light
"""
self.setVTKState(self.planeWidgetX, state.planeWidgetX)
self.setVTKState(self.planeWidgetX, state.planeWidgetY)
self.setVTKState(self.planeWidgetX, state.planeWidgetZ)
self.setVTKState(self.prop1, state.prop1)
self.setVTKState(self.prop2, state.prop2)
self.setVTKState(self.prop3, state.prop3)
self.setVTKState(self.renderer, state.renderer)
self.setVTKState(self.renderer.GetActiveCamera(), state.camera)
self.x, self.y, self.z = state.x, state.y, state.z
VisualizationModule.__set_pure_state__(self, state)