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. | |
QCString | writeGraph (TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1) |
virtual QCString | getBaseName () const =0 |
virtual QCString | absMapName () const |
virtual QCString | getMapLabel () const =0 |
virtual QCString | getImgAltText () const |
virtual void | computeTheGraph ()=0 |
QCString | absBaseName () const |
QCString | absDotName () const |
QCString | imgName () const |
QCString | absImgName () const |
QCString | relImgName () const |
Static Protected Member Functions | |
static void | writeGraphHeader (TextStream &t, const QCString &title=QCString()) |
static void | writeGraphFooter (TextStream &t) |
static void | computeGraph (DotNode *root, GraphType gt, GraphOutputFormat format, const QCString &rank, bool renderParents, bool backArrows, const QCString &title, QCString &graphStr) |
Protected Attributes | |
GraphOutputFormat | m_graphFormat = GraphOutputFormat::BITMAP |
EmbeddedOutputFormat | m_textFormat = EmbeddedOutputFormat::Html |
Dir | m_dir |
QCString | m_fileName |
QCString | m_relPath |
bool | m_generateImageMap = false |
int | m_graphId = 0 |
QCString | m_absPath |
QCString | m_baseName |
QCString | 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 FALSE, m_doNotAddImageToIndex, m_noDivTag, m_urlOnly, m_zoomable, and TRUE.
Referenced by ~DotGraph().
|
virtualdefault |
References DotGraph().
|
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 306 of file dotgraph.cpp.
References CallGraph, DotNode::clearWriteFlag(), Dependency, DotNode, FALSE, QCString::isEmpty(), DotNode::parents(), TextStream::str(), TRUE, 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 212 of file dotgraph.cpp.
References absBaseName(), absImgName(), absMapName(), BITMAP, correctId(), DocBook, EPS, FALSE, 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, 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 |
|
inlineprotected |
|
protected |
Definition at line 107 of file dotgraph.cpp.
References BITMAP, Config_getBool, getDotImageExtension(), m_baseName, and m_graphFormat.
Referenced by absImgName(), relImgName(), and writeGraph().
|
private |
Definition at line 151 of file dotgraph.cpp.
References absBaseName(), absDotName(), absImgName(), absMapName(), DotRunner::addJob(), BITMAP, Config_getBool, Config_getEnumAsString, DotManager::createRunner(), deliverablesPresent(), EPS, err, FALSE, DotManager::instance(), m_dir, m_generateImageMap, m_graphFormat, m_theGraph, MAP_CMD, Portable::openOutputStream(), qPrint(), sameMd5Signature(), term, and TRUE.
Referenced by writeGraph().
|
inlineprotected |
Definition at line 82 of file dotgraph.h.
References imgName(), and m_relPath.
Referenced by generateCode().
|
protected |
Definition at line 115 of file dotgraph.cpp.
References computeTheGraph(), 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 QCString::str().
Referenced by DotGfxHierarchyTable::createGraph(), DotCallGraph::writeGraph(), DotClassGraph::writeGraph(), DotDirDeps::writeGraph(), DotGroupCollaboration::writeGraph(), DotInclDepGraph::writeGraph(), and DotLegendGraph::writeGraph().
|
staticprotected |
Definition at line 301 of file dotgraph.cpp.
Referenced by computeGraph(), DotDirDeps::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph(), DotGroupCollaboration::computeTheGraph(), and DotLegendGraph::computeTheGraph().
|
staticprotected |
Definition at line 276 of file dotgraph.cpp.
References Config_getBool, Config_getString, convertToXML(), and QCString::isEmpty().
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(), DotCallGraph::DotCallGraph(), DotClassGraph::DotClassGraph(), DotGroupCollaboration::DotGroupCollaboration(), DotInclDepGraph::DotInclDepGraph(), DotNode, DotGroupCollaboration::Edge::Edge(), and DotGfxHierarchyTable::~DotGfxHierarchyTable().
|
protected |
Definition at line 93 of file dotgraph.h.
Referenced by absBaseName(), absDotName(), absImgName(), absMapName(), and writeGraph().
|
protected |
Definition at line 94 of file dotgraph.h.
Referenced by absBaseName(), absDotName(), absMapName(), generateCode(), DotCallGraph::getMapLabel(), DotDirDeps::getMapLabel(), DotGroupCollaboration::getMapLabel(), imgName(), 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(), writeGraph(), and DotGroupCollaboration::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().