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

Method GetFirstChildOfType

Rendering/SceneGraph/vtkViewNode.cxx:237–252  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

235
236//------------------------------------------------------------------------------
237vtkViewNode* 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}
253VTK_ABI_NAMESPACE_END

Callers 2

RenderMethod · 0.80
SynchronizeMethod · 0.80

Calls 1

IsAMethod · 0.80

Tested by

no test coverage detected