Build assembly paths from this current assembly. A path consists of an ordered sequence of props, with transformations properly concatenated.
| 314 | // Build assembly paths from this current assembly. A path consists of |
| 315 | // an ordered sequence of props, with transformations properly concatenated. |
| 316 | void 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). |
| 335 | double* vtkAssembly::GetBounds() |
no test coverage detected