------------------------------------------------------------------------------
| 235 | |
| 236 | //------------------------------------------------------------------------------ |
| 237 | vtkViewNode* vtkViewNode::GetFirstChildOfType(const char* type) |
| 238 | { |
| 239 | if (this->IsA(type)) |
| 240 | { |
| 241 | return this; |
| 242 | } |
| 243 | |
| 244 | for (auto child : this->Children) |
| 245 | { |
| 246 | if (child->IsA(type)) |
| 247 | { |
| 248 | return child; |
| 249 | } |
| 250 | } |
| 251 | return nullptr; |
| 252 | } |
| 253 | VTK_ABI_NAMESPACE_END |
no test coverage detected