------------------------------------------------------------------------------
| 916 | |
| 917 | //------------------------------------------------------------------------------ |
| 918 | int vtkDataAssembly::GetChild(int parent, int index) const |
| 919 | { |
| 920 | const auto& internals = (*this->Internals); |
| 921 | const auto node = internals.FindNode(parent); |
| 922 | int cur_child = 0; |
| 923 | for (const auto& cnode : node.children()) |
| 924 | { |
| 925 | if (::IsAssemblyNode(cnode)) |
| 926 | { |
| 927 | if (cur_child == index) |
| 928 | { |
| 929 | return cnode.attribute("id").as_int(-1); |
| 930 | } |
| 931 | ++cur_child; |
| 932 | } |
| 933 | } |
| 934 | return -1; |
| 935 | } |
| 936 | |
| 937 | //------------------------------------------------------------------------------ |
| 938 | int vtkDataAssembly::GetChildIndex(int parent, int child) const |
nothing calls this directly
no test coverage detected