MCPcopy Create free account
hub / github.com/Kitware/VTK / createPipeline

Function createPipeline

Examples/Emscripten/Cxx/MultiCone/MultiCone.cxx:32–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30//------------------------------------------------------------------------------
31
32void createPipeline()
33{
34 // Create a renderer, render window, and interactor
35 renderer = vtkRenderer::New();
36 renderWindow = vtkRenderWindow::New();
37 renderWindowInteractor = vtkRenderWindowInteractor::New();
38 style = vtkInteractorStyleTrackballCamera::New();
39
40 renderWindow->SetMultiSamples(0);
41 renderWindow->AddRenderer(renderer);
42 renderWindowInteractor->SetRenderWindow(renderWindow);
43 renderWindowInteractor->SetInteractorStyle(style);
44 style->SetDefaultRenderer(renderer);
45
46 // Create pipeline
47 coneSource = vtkConeSource::New();
48 mapper = vtkPolyDataMapper::New();
49 actor = vtkActor::New();
50
51 mapper->SetInputConnection(coneSource->GetOutputPort());
52 actor->SetMapper(mapper);
53 renderer->AddActor(actor);
54}
55
56//------------------------------------------------------------------------------
57

Callers 3

mainFunction · 0.85
TestImageSSIMFunction · 0.85
RegressionTestMethod · 0.85

Calls 10

SetMultiSamplesMethod · 0.80
NewFunction · 0.50
AddRendererMethod · 0.45
SetRenderWindowMethod · 0.45
SetInteractorStyleMethod · 0.45
SetDefaultRendererMethod · 0.45
SetInputConnectionMethod · 0.45
GetOutputPortMethod · 0.45
SetMapperMethod · 0.45
AddActorMethod · 0.45

Tested by 2

TestImageSSIMFunction · 0.68
RegressionTestMethod · 0.68