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

Method BuildPaths

Rendering/Core/vtkAssembly.cxx:316–332  ·  view source on GitHub ↗

Build assembly paths from this current assembly. A path consists of an ordered sequence of props, with transformations properly concatenated.

Source from the content-addressed store, hash-verified

314// Build assembly paths from this current assembly. A path consists of
315// an ordered sequence of props, with transformations properly concatenated.
316void vtkAssembly::BuildPaths(vtkAssemblyPaths* paths, vtkAssemblyPath* path)
317{
318 vtkProp3D* prop3D;
319
320 vtkCollectionSimpleIterator pit;
321 for (this->Parts->InitTraversal(pit); (prop3D = this->Parts->GetNextProp3D(pit));)
322 {
323 path->AddNode(prop3D, prop3D->GetMatrix());
324
325 // dive into the hierarchy
326 prop3D->BuildPaths(paths, path);
327
328 // when returned, pop the last node off of the
329 // current path
330 path->DeleteLastNode();
331 }
332}
333
334// Get the bounds for the assembly as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
335double* vtkAssembly::GetBounds()

Callers 1

UpdatePathsMethod · 0.45

Calls 5

GetNextProp3DMethod · 0.80
InitTraversalMethod · 0.45
AddNodeMethod · 0.45
GetMatrixMethod · 0.45
DeleteLastNodeMethod · 0.45

Tested by

no test coverage detected