MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getViewOfNode

Method getViewOfNode

src/Gui/ViewProviderDocumentObject.cpp:500–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500Gui::MDIView* ViewProviderDocumentObject::getViewOfNode(SoNode* node) const
501{
502 if (!pcObject) {
503 throw Base::RuntimeError("View provider detached");
504 }
505 App::Document* pAppDoc = pcObject->getDocument();
506 Gui::Document* pGuiDoc = Gui::Application::Instance->getDocument(pAppDoc);
507 return pGuiDoc->getViewOfNode(node);
508}
509
510SoNode* ViewProviderDocumentObject::findFrontRootOfType(const SoType& type) const
511{

Callers

nothing calls this directly

Calls 1

getDocumentMethod · 0.45

Tested by

no test coverage detected