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

Method GetFirstAncestorOfType

Rendering/SceneGraph/vtkViewNode.cxx:174–185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172
173//------------------------------------------------------------------------------
174vtkViewNode* vtkViewNode::GetFirstAncestorOfType(const char* type)
175{
176 if (!this->Parent)
177 {
178 return nullptr;
179 }
180 if (this->Parent->IsA(type))
181 {
182 return this->Parent;
183 }
184 return this->Parent->GetFirstAncestorOfType(type);
185}
186
187//------------------------------------------------------------------------------
188void vtkViewNode::SetRenderable(vtkObject* obj)

Callers 15

RenderMethod · 0.80
RenderMethod · 0.80
InternalRenderMethod · 0.80
RenderMethod · 0.80
ClearVolumetricModelsMethod · 0.80
GetRendererNodeMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
ORenderPolyMethod · 0.80
RenderMethod · 0.80
RenderGeometricModelsMethod · 0.80

Calls 1

IsAMethod · 0.80

Tested by

no test coverage detected