Skip to content
Snippets Groups Projects
Commit aa1704b0 authored by Chris Harris's avatar Chris Harris Committed by Code Review
Browse files

Merge topic 'fix_graphicsview_example' into master

5c7289a0 COMP: GraphicsViewPython.py using SetInput(...)
parents bfe68b85 5c7289a0
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ class MyOpenGLScene(QtGui.QGraphicsScene):
self.mQVTKItem.GetRenderWindow().AddRenderer(self.mRen)
cone = vtk.vtkConeSource()
mapper = vtk.vtkPolyDataMapper()
mapper.SetInput(cone.GetOutput())
mapper.SetInputConnection(cone.GetOutputPort())
actor = vtk.vtkActor()
actor.SetMapper(mapper)
self.mRen.AddViewProp(actor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment