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

Method sHideObject

src/Gui/ApplicationPy.cpp:950–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948}
949
950PyObject* ApplicationPy::sHideObject(PyObject* /*self*/, PyObject* args)
951{
952 PyObject* object = nullptr;
953 if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &object)) {
954 return nullptr;
955 }
956
957 requirePythonMainThread("FreeCADGui.hideObject");
958
959 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast)
960 App::DocumentObject* obj = static_cast<App::DocumentObjectPy*>(object)->getDocumentObjectPtr();
961 Application::Instance->hideViewProvider(obj);
962
963 Py_Return;
964}
965
966PyObject* ApplicationPy::sShowObject(PyObject* /*self*/, PyObject* args)
967{

Callers

nothing calls this directly

Calls 2

requirePythonMainThreadFunction · 0.85
hideViewProviderMethod · 0.80

Tested by

no test coverage detected