예제 #1
0
파일: tests.py 프로젝트: aevum/moonstone
 def test_coronal_plane_with_actor(self):
     logging.debug("In CoronalPlaneTest::test_coronal_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 = CoronalPlane()
     widget.setWindowTitle("Test CoronalPlane with actor")
     widget.scene.actor = coneActor
     widget.scene.renderer.ResetCamera()
     widget.show()
     
     app.exec_()