32 void setInput(std::shared_ptr<TaskGraph> graph) { this->m_inputGraph = graph; }
37 void setFileName(std::string fileName) { this->m_fileName = fileName; }
54 std::shared_ptr<TaskGraph> getInput()
const {
return m_inputGraph; }
55 const std::string& getFileName()
const {
return m_fileName; }
56 bool getHighlightCriticalPath()
const {
return m_highlightCriticalPath; }
57 bool getWriteNodeComputeTimesColor()
const {
return m_writeNodeComputeTimesColor; }
58 bool getWriteNodeComputeTimesText()
const {
return m_writeNodeComputeTimesText; }
66 std::shared_ptr<TaskGraph> m_inputGraph =
nullptr;
67 std::string m_fileName =
"";
68 bool m_highlightCriticalPath =
false;
69 bool m_writeNodeComputeTimesColor =
false;
70 bool m_writeNodeComputeTimesText =
false;
void setWriteNodeComputeTimesColor(bool writeNodeComputeTimesColor)
If on, will write the time the node took to complete as a color.
Writes a TaskGraph to an svg file. Produces unique node names from duplicates with postfix...
void write()
Writes the graph to a file given the filename.
void setFileName(std::string fileName)
The filename and path to write too.
void setHighlightCriticalPath(bool highlightCriticalPath)
If on, will highlight the critical path in red.
void setWriteNodeComputeTimesText(bool writeNodeComputeTimesText)
If on, will write the time the node took to complete in name as text.
void setInput(std::shared_ptr< TaskGraph > graph)
The graph to write.