Cheese... Unleashed!Posted 2007/05/09 22:40:48. The very first release of Cheese is now available for download. Comment 1 Hola qe ta cm estas qisiera descargar unas fotos para mii blackberry cm hago ah
Posted by paola romero at 2012/05/11 05:51:56. Comment 2Hi there, I have finally got QVTKRenderWindowInteractor wkonirg with your VTK build, and it turned out to be very simple (I am just a beginner with Python and Qt). In case someone is interested here is what I did (and thanks!) :import vtkfrom vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor # # set up PyQt UI, created with Qt Designer,which includes a # QWidget named page_VTK, as the 3rd entry in stackedWidget # page_VTK = self.ui.page_VTK page_VTK.setMaximumSize(QtCore.QSize(800, 600)) self.QVTKRenderWidgetCone(page_VTK) self.ui.stackedWidget.setCurrentIndex(2) def QVTKRenderWidgetCone(self,page_VTK): "A simple example that uses the QVTKRenderWindowInteractor class (vtk.qt4). " layout = QtGui.QVBoxLayout(page_VTK) # create the widget VTKscene = QVTKRenderWindowInteractor(page_VTK) VTKscene.Initialize() VTKscene.Start() renWin = VTKscene.GetRenderWindow() layout.addWidget(VTKscene) ren = vtk.vtkRenderer() renWin.AddRenderer(ren) cone = vtk.vtkConeSource() cone.SetResolution(18) coneMapper = vtk.vtkPolyDataMapper() coneMapper.SetInput(cone.GetOutput()) coneActor1 = vtk.vtkActor() coneActor1.SetMapper(coneMapper) coneActor2 = vtk.vtkActor() coneActor2.SetMapper(coneMapper) ren.AddActor(coneActor1) ren.AddActor(coneActor2) coneActor1.SetPosition(2, 0, 1) coneActor2.SetPosition(0, 2, 0) # show the widget VTKscene.show() Posted by Matthew at 2012/09/06 07:33:30. | Post a comment |