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

Method getUpstreamEdge

source/MaterialXCore/Node.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117Edge Node::getUpstreamEdge(size_t index) const
118{
119 if (index < getUpstreamEdgeCount())
120 {
121 InputPtr input = getInputs()[index];
122 ElementPtr upstreamNode = input->getConnectedNode();
123 if (upstreamNode)
124 {
125 return Edge(getSelfNonConst(), input, upstreamNode);
126 }
127 }
128
129 return getNullEdge();
130}
131
132OutputPtr Node::getNodeDefOutput(ElementPtr connectingElement)
133{

Callers 2

Traversal.cppFile · 0.45
topologicalSortMethod · 0.45

Calls 4

getInputsFunction · 0.85
getSelfNonConstFunction · 0.85
getUpstreamEdgeCountFunction · 0.70
getConnectedNodeMethod · 0.45

Tested by

no test coverage detected