Пример #1
0
 def test_sagittal_plane_with_actor(self):
     logging.debug("In SagittalPlaneTest::test_sagittal_plane_with_actor()")
     from PySide import QtCore, QtGui
     
     app = QtGui.QApplication(sys.argv)
     
     cone = vtk.vtkConeSource()
     cone.SetResolution(8)
     coneMapper = vtk.vtkPolyDataMapper()
     coneMapper.SetInput(cone.GetOutput())
     coneActor = vtk.vtkActor()
     coneActor.SetMapper(coneMapper)
 
     widget = SagittalPlane()
     widget.setWindowTitle("Test SagittalPlane with actor")
     widget.scene.actor = coneActor
     widget.scene.renderer.ResetCamera()
     widget.show()
     
     app.exec_()