Skip to content
Snippets Groups Projects
Commit 1c7c553f authored by Chris Harris's avatar Chris Harris
Browse files

COMP: Cocoa example is using SetInput(...)

Update to use SetInputConnection(...)

Change-Id: Ib14fb19a62604600b89db13c43264546028e22f5
parent bd6395e1
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
cone->SetRadius(1.0);
cone->SetResolution(100);
vtkSmartPointer<vtkPolyDataMapper> coneMapper = vtkSmartPointer<vtkPolyDataMapper>::New();
coneMapper->SetInput(cone->GetOutput());
coneMapper->SetInputConnection(cone->GetOutputPort());
vtkSmartPointer<vtkActor> coneActor = vtkSmartPointer<vtkActor>::New();
coneActor->SetMapper(coneMapper);
[leftVTKView getRenderer]->AddActor(coneActor);
......@@ -53,7 +53,7 @@
vtkSmartPointer<vtkCylinderSource> cylinder = vtkSmartPointer<vtkCylinderSource>::New();
cylinder->SetResolution(100);
vtkSmartPointer<vtkPolyDataMapper> cylinderMapper = vtkSmartPointer<vtkPolyDataMapper>::New();
cylinderMapper->SetInput(cylinder->GetOutput());
cylinderMapper->SetInputConnection(cylinder->GetOutputPort());
vtkSmartPointer<vtkActor> cylinderActor = vtkSmartPointer<vtkActor>::New();
cylinderActor->SetMapper(cylinderMapper);
[rightVTKView getRenderer]->AddActor(cylinderActor);
......
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