MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / addEdge

Method addEdge

apps/PathTreeExport/DOTGraphOutput.cpp:108–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 return m_getNode(name);
107}
108void DOTGraphOutput::addEdge(NodeInterface &tail, NodeInterface &head,
109 std::string const &type, std::string const &data) {
110
111 std::string attributes;
112 if (type == "alias") {
113 if (!data.empty()) {
114 attributes = "label=\"has transform\""; /// @todo not including
115 /// transform because we'd have
116 /// to escape characters.
117 }
118 }
119 auto &dotHead = m_getNode(head);
120 auto &dotTail = m_getNode(tail);
121 addEdge(dotTail, dotHead, attributes);
122}
123
124void DOTGraphOutput::addEdge(DOTNode &tail, DOTNode &head,
125 std::string const &attributes) {

Callers 1

osvrToStreamFunction · 0.80

Calls 4

strMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45
getIDMethod · 0.45

Tested by

no test coverage detected