MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / setDocument

Method setDocument

source/MaterialXGraphEditor/RenderView.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void RenderView::setDocument(mx::DocumentPtr document)
105{
106 // Set new current document
107 _document = document;
108
109 // Initialize rendering context.
110 initContext(_genContext);
111}
112
113RenderView::RenderView(mx::DocumentPtr doc,
114 mx::DocumentPtr stdLib,

Callers 4

updateMaterialsMethod · 0.45
clearGraphMethod · 0.45
loadGraphFromFileMethod · 0.45
drawGraphMethod · 0.45

Calls 1

initContextFunction · 0.85

Tested by

no test coverage detected