|
Doxygen
|
A dot graph. More...
#include <src/dotgraph.h>
Public Member Functions | |
| DotGraph () | |
| virtual | ~DotGraph ()=default |
Protected Member Functions | |
| int | getNextNodeNumber () |
| returns the node number. | |
| int | getNextEdgeNumber () |
| returns the edge number. | |
| DString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const DString &path, const DString &fileName, const DString &relPath, bool writeImageMap=true, int graphId=-1) |
| virtual DString | getBaseName () const =0 |
| virtual DString | absMapName () const |
| virtual DString | getMapLabel () const =0 |
| virtual DString | getImgAltText () const |
| virtual void | computeTheGraph ()=0 |
| DString | absBaseName () const |
| DString | absDotName () const |
| DString | imgName () const |
| DString | absImgName () const |
| DString | relImgName () const |
Static Protected Member Functions | |
| static void | writeGraphHeader (TextStream &t, const DString &title=DString()) |
| static void | writeGraphFooter (TextStream &t) |
| static void | computeGraph (DotNode *root, GraphType gt, GraphOutputFormat format, const DString &rank, bool renderParents, bool backArrows, const DString &title, DString &graphStr) |
Protected Attributes | |
| GraphOutputFormat | m_graphFormat = GraphOutputFormat::BITMAP |
| EmbeddedOutputFormat | m_textFormat = EmbeddedOutputFormat::Html |
| Dir | m_dir |
| DString | m_fileName |
| DString | m_relPath |
| bool | m_generateImageMap = false |
| int | m_graphId = 0 |
| DString | m_absPath |
| DString | m_baseName |
| DString | m_theGraph |
| bool | m_regenerate = false |
| bool | m_doNotAddImageToIndex = false |
| bool | m_noDivTag = false |
| bool | m_zoomable = true |
| bool | m_urlOnly = false |
Private Member Functions | |
| bool | prepareDotFile () |
| void | generateCode (TextStream &t) |
Private Attributes | |
| int | m_curNodeNumber = 0 |
| int | m_curEdgeNumber = 0 |
Friends | |
| class | DotNode |
A dot graph.
Definition at line 34 of file dotgraph.h.
|
inline |
Definition at line 38 of file dotgraph.h.
References m_doNotAddImageToIndex, m_noDivTag, m_urlOnly, and m_zoomable.
Referenced by ~DotGraph().
|
virtualdefault |
References DotGraph(), and NON_COPYABLE.
|
inlineprotected |
Definition at line 78 of file dotgraph.h.
References m_absPath, and m_baseName.
Referenced by generateCode(), prepareDotFile(), and DotLegendGraph::writeGraph().
|
inlineprotected |
Definition at line 79 of file dotgraph.h.
References m_absPath, and m_baseName.
Referenced by prepareDotFile().
|
inlineprotected |
Definition at line 81 of file dotgraph.h.
References imgName(), and m_absPath.
Referenced by generateCode(), prepareDotFile(), and DotLegendGraph::writeGraph().
|
inlineprotectedvirtual |
Definition at line 72 of file dotgraph.h.
References m_absPath, and m_baseName.
Referenced by generateCode(), and prepareDotFile().
|
staticprotected |
Definition at line 299 of file dotgraph.cpp.
References CallGraph, DotNode::clearWriteFlag(), Dependency, DotNode, DString::empty(), DotNode::parents(), TextStream::str(), DotNode::write(), DotNode::writeArrow(), writeGraphFooter(), and writeGraphHeader().
Referenced by DotCallGraph::computeTheGraph(), DotClassGraph::computeTheGraph(), and DotInclDepGraph::computeTheGraph().
|
protectedpure virtual |
Implemented in DotCallGraph, DotClassGraph, DotDirDeps, DotGfxHierarchyTable, DotGroupCollaboration, DotInclDepGraph, and DotLegendGraph.
Referenced by writeGraph().
|
private |
Definition at line 204 of file dotgraph.cpp.
References absBaseName(), absImgName(), absMapName(), BITMAP, DocBook, DString::DString(), EPS, getDotImageExtension(), getImgAltText(), getMapLabel(), insertMapFile(), DotManager::instance(), m_baseName, m_fileName, m_generateImageMap, m_graphFormat, m_graphId, m_noDivTag, m_regenerate, m_relPath, m_textFormat, m_urlOnly, m_zoomable, DotFilePatcher::mapLabelToId(), relImgName(), DotFilePatcher::writeSVGFigureLink(), and DotFilePatcher::writeVecGfxFigure().
Referenced by writeGraph().
|
protectedpure virtual |
Implemented in DotCallGraph, DotClassGraph, DotDirDeps, DotGfxHierarchyTable, DotGroupCollaboration, DotInclDepGraph, and DotLegendGraph.
Referenced by writeGraph().
|
inlineprotectedvirtual |
Reimplemented in DotClassGraph, and DotDirDeps.
Definition at line 74 of file dotgraph.h.
Referenced by generateCode().
|
protectedpure virtual |
Implemented in DotCallGraph, DotClassGraph, DotDirDeps, DotGfxHierarchyTable, DotGroupCollaboration, DotInclDepGraph, and DotLegendGraph.
Referenced by generateCode().
|
inlineprotected |
returns the edge number.
Definition at line 47 of file dotgraph.h.
References m_curEdgeNumber.
Referenced by DotNode::writeArrow().
|
inlineprotected |
|
protected |
Definition at line 106 of file dotgraph.cpp.
References BITMAP, Config_getBool, getDotImageExtension(), m_baseName, and m_graphFormat.
Referenced by absImgName(), relImgName(), and writeGraph().
|
private |
Definition at line 150 of file dotgraph.cpp.
References absBaseName(), absDotName(), absImgName(), absMapName(), DotManager::addJob(), BITMAP, Config_getBool, Config_getEnumAsString, deliverablesPresent(), DotJob::DotJob(), DString::DString(), EPS, err, Dir::exists(), DotManager::instance(), m_absPath, m_baseName, m_dir, m_generateImageMap, m_graphFormat, m_theGraph, md5str(), Portable::openOutputStream(), Dir::path(), sameMd5Signature(), DString::size(), term, and DString::view().
Referenced by writeGraph().
|
inlineprotected |
Definition at line 82 of file dotgraph.h.
References imgName(), and m_relPath.
Referenced by generateCode().
|
protected |
Definition at line 114 of file dotgraph.cpp.
References Dir::absPath(), IndexList::addImageFile(), computeTheGraph(), Dir::Dir(), g_dotIndexListMutex, generateCode(), getBaseName(), imgName(), Doxygen::indexList, m_absPath, m_baseName, m_dir, m_doNotAddImageToIndex, m_fileName, m_generateImageMap, m_graphFormat, m_graphId, m_regenerate, m_relPath, m_textFormat, prepareDotFile(), and DString::str().
Referenced by DotGfxHierarchyTable::createGraph(), DotCallGraph::writeGraph(), DotClassGraph::writeGraph(), DotDirDeps::writeGraph(), DotGroupCollaboration::writeGraph(), DotInclDepGraph::writeGraph(), and DotLegendGraph::writeGraph().
|
staticprotected |
Definition at line 294 of file dotgraph.cpp.
Referenced by computeGraph(), DotDirDeps::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotGroupCollaboration::computeTheGraph(), and DotLegendGraph::computeTheGraph().
|
staticprotected |
Definition at line 269 of file dotgraph.cpp.
References Config_getBool, Config_getString, convertToXML(), and DString::empty().
Referenced by computeGraph(), DotDirDeps::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotLegendGraph::computeTheGraph(), and DotGroupCollaboration::writeGraphHeader().
|
friend |
Definition at line 36 of file dotgraph.h.
References DotNode.
Referenced by DotClassGraph::addClass(), DotGfxHierarchyTable::addClassList(), DotGroupCollaboration::addCollaborationMember(), DotGroupCollaboration::addEdge(), DotGfxHierarchyTable::addHierarchy(), DotCallGraph::buildGraph(), DotClassGraph::buildGraph(), DotGroupCollaboration::buildGraph(), DotInclDepGraph::buildGraph(), computeGraph(), DotLegendGraph::computeTheGraph(), DotGfxHierarchyTable::createGraph(), DotCallGraph::determineTruncatedNodes(), DotClassGraph::determineTruncatedNodes(), DotInclDepGraph::determineTruncatedNodes(), DotCallGraph::determineVisibleNodes(), DotClassGraph::determineVisibleNodes(), DotInclDepGraph::determineVisibleNodes(), DotInclDepGraph::diskName(), DotNode, DotGroupCollaboration::Edge::Edge(), and DotGfxHierarchyTable::~DotGfxHierarchyTable().
|
protected |
Definition at line 93 of file dotgraph.h.
Referenced by absBaseName(), absDotName(), absImgName(), absMapName(), prepareDotFile(), and writeGraph().
|
protected |
Definition at line 94 of file dotgraph.h.
Referenced by absBaseName(), absDotName(), absMapName(), generateCode(), DotCallGraph::getMapLabel(), DotDirDeps::getMapLabel(), DotGroupCollaboration::getMapLabel(), imgName(), prepareDotFile(), and writeGraph().
|
private |
Definition at line 108 of file dotgraph.h.
Referenced by getNextEdgeNumber().
|
private |
Definition at line 107 of file dotgraph.h.
Referenced by getNextNodeNumber().
|
protected |
Definition at line 87 of file dotgraph.h.
Referenced by prepareDotFile(), and writeGraph().
|
protected |
Definition at line 97 of file dotgraph.h.
Referenced by DotGraph(), DotCallGraph::writeGraph(), DotClassGraph::writeGraph(), DotDirDeps::writeGraph(), writeGraph(), DotGroupCollaboration::writeGraph(), and DotInclDepGraph::writeGraph().
|
protected |
Definition at line 88 of file dotgraph.h.
Referenced by generateCode(), and writeGraph().
|
protected |
Definition at line 90 of file dotgraph.h.
Referenced by generateCode(), prepareDotFile(), and writeGraph().
|
protected |
Definition at line 85 of file dotgraph.h.
Referenced by DotCallGraph::computeTheGraph(), DotClassGraph::computeTheGraph(), DotGroupCollaboration::computeTheGraph(), DotInclDepGraph::computeTheGraph(), generateCode(), imgName(), prepareDotFile(), and writeGraph().
|
protected |
Definition at line 91 of file dotgraph.h.
Referenced by generateCode(), and writeGraph().
|
protected |
Definition at line 98 of file dotgraph.h.
Referenced by DotGfxHierarchyTable::createGraph(), DotGraph(), and generateCode().
|
protected |
Definition at line 96 of file dotgraph.h.
Referenced by generateCode(), and writeGraph().
|
protected |
Definition at line 89 of file dotgraph.h.
Referenced by generateCode(), relImgName(), and writeGraph().
|
protected |
Definition at line 86 of file dotgraph.h.
Referenced by generateCode(), and writeGraph().
|
protected |
Definition at line 95 of file dotgraph.h.
Referenced by DotCallGraph::computeTheGraph(), DotClassGraph::computeTheGraph(), DotDirDeps::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotGroupCollaboration::computeTheGraph(), DotInclDepGraph::computeTheGraph(), DotLegendGraph::computeTheGraph(), and prepareDotFile().
|
protected |
Definition at line 100 of file dotgraph.h.
Referenced by DotGraph(), generateCode(), and DotDirDeps::writeGraph().
|
protected |
Definition at line 99 of file dotgraph.h.
Referenced by DotGfxHierarchyTable::createGraph(), DotGraph(), and generateCode().