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

Method Build

Rendering/SceneGraph/vtkRendererNode.cxx:44–68  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

42
43//------------------------------------------------------------------------------
44void vtkRendererNode::Build(bool prepass)
45{
46 if (prepass)
47 {
48 vtkRenderer* mine = vtkRenderer::SafeDownCast(this->GetRenderable());
49 if (!mine)
50 {
51 return;
52 }
53
54 this->PrepareNodes();
55 this->AddMissingNodes(mine->GetLights());
56 this->AddMissingNodes(mine->GetActors());
57 this->AddMissingNodes(mine->GetVolumes());
58
59 // make sure we have a camera setup
60 if (!mine->IsActiveCameraCreated())
61 {
62 mine->GetActiveCamera();
63 mine->ResetCamera();
64 }
65 this->AddMissingNode(mine->GetActiveCamera());
66 this->RemoveUnusedNodes();
67 }
68}
69VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 8

PrepareNodesMethod · 0.80
AddMissingNodesMethod · 0.80
GetActiveCameraMethod · 0.80
AddMissingNodeMethod · 0.80
RemoveUnusedNodesMethod · 0.80
GetActorsMethod · 0.45
GetVolumesMethod · 0.45
ResetCameraMethod · 0.45

Tested by

no test coverage detected