| 2869 | } |
| 2870 | |
| 2871 | void Graph::clearGraph() |
| 2872 | { |
| 2873 | _graphDoc = mx::createDocument(); |
| 2874 | _graphDoc->setDataLibrary(_stdLib); |
| 2875 | |
| 2876 | _state = GraphState(); |
| 2877 | _state.graphElem = _graphDoc; |
| 2878 | _parentStates.clear(); |
| 2879 | |
| 2880 | if (_currUiNode != nullptr) |
| 2881 | { |
| 2882 | ed::DeselectNode(_currUiNode->getId()); |
| 2883 | _currUiNode = nullptr; |
| 2884 | } |
| 2885 | _prevUiNode = nullptr; |
| 2886 | _currRenderNode = nullptr; |
| 2887 | |
| 2888 | _renderer->setDocument(_graphDoc); |
| 2889 | _renderer->updateMaterials(nullptr); |
| 2890 | } |
| 2891 | |
| 2892 | void Graph::initializeGraph() |
| 2893 | { |
nothing calls this directly
no test coverage detected