A dot graph
更多...
#include <dotgraph.h>
A dot graph
在文件 dotgraph.h 第 32 行定义.
◆ DotGraph() [1/2]
◆ ~DotGraph()
virtual DotGraph::~DotGraph |
( |
| ) |
|
|
inlinevirtual |
◆ DotGraph() [2/2]
◆ absBaseName()
QCString DotGraph::absBaseName |
( |
| ) |
const |
|
inlineprotected |
◆ absDotName()
◆ absImgName()
◆ absMapName()
virtual QCString DotGraph::absMapName |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ computeGraph()
在文件 dotgraph.cpp 第 305 行定义.
319 md5stream <<
" rankdir=\"" << rank <<
"\";\n";
325 for (
const auto &pn : root->
parents())
329 const auto &children = pn->children();
330 auto child_it = std::find(children.begin(),children.end(),root);
331 size_t index = child_it - children.begin();
336 &pn->edgeInfo()[index],
352 graphStr=md5stream.
str();
引用了 CallGraph, DotNode::clearWriteFlag(), Dependency, FALSE, QCString::isEmpty(), DotNode::parents(), TextStream::str(), TRUE, DotNode::write(), DotNode::writeArrow(), writeGraphFooter() , 以及 writeGraphHeader().
被这些函数引用 DotClassGraph::computeTheGraph(), DotInclDepGraph::computeTheGraph() , 以及 DotCallGraph::computeTheGraph().
◆ computeTheGraph()
virtual void DotGraph::computeTheGraph |
( |
| ) |
|
|
protectedpure virtual |
◆ generateCode()
在文件 dotgraph.cpp 第 204 行定义.
210 t <<
" <informalfigure>\n";
211 t <<
" <mediaobject>\n";
212 t <<
" <imageobject>\n";
214 t <<
" width=\"50%\" align=\"center\" valign=\"middle\" scalefit=\"0\" fileref=\"" <<
m_relPath <<
m_baseName <<
"." << imgExt <<
"\">";
215 t <<
"</imagedata>\n";
216 t <<
" </imageobject>\n";
217 t <<
" </mediaobject>\n";
218 t <<
" </informalfigure>\n";
225 if (!
m_noDivTag) t <<
"<div class=\"center\">";
237 t <<
"<!-- SVG " << mapId <<
" -->\n";
243 if (!
m_noDivTag) t <<
"<div class=\"center\">";
252 t <<
"<!-- MAP " << mapId <<
" -->\n";
263 t <<
"\n% FIG " << figId <<
"\n";
引用了 absBaseName(), absImgName(), absMapName(), correctId(), EOF_DocBook, FALSE, getDotImageExtension(), getImgAltText(), getMapLabel(), GOF_BITMAP, GOF_EPS, 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() , 以及 DotFilePatcher::writeVecGfxFigure().
被这些函数引用 writeGraph().
◆ getBaseName()
virtual QCString DotGraph::getBaseName |
( |
| ) |
const |
|
protectedpure virtual |
◆ getImgAltText()
virtual QCString DotGraph::getImgAltText |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ getMapLabel()
virtual QCString DotGraph::getMapLabel |
( |
| ) |
const |
|
protectedpure virtual |
◆ getNextNodeNumber()
int DotGraph::getNextNodeNumber |
( |
| ) |
|
|
inlineprotected |
returns node numbers.
The Counter is reset by the constructor
在文件 dotgraph.h 第 41 行定义.
引用了 m_curNodeNumber.
被这些函数引用 DotClassGraph::addClass(), DotGfxHierarchyTable::addClassList(), DotGroupCollaboration::addCollaborationMember(), DotGfxHierarchyTable::addHierarchy(), DotInclDepGraph::buildGraph(), DotCallGraph::buildGraph(), DotGroupCollaboration::buildGraph(), DotCallGraph::DotCallGraph(), DotClassGraph::DotClassGraph(), DotGroupCollaboration::DotGroupCollaboration() , 以及 DotInclDepGraph::DotInclDepGraph().
◆ imgName()
◆ operator=()
◆ prepareDotFile()
bool DotGraph::prepareDotFile |
( |
| ) |
|
|
private |
在文件 dotgraph.cpp 第 143 行定义.
147 term(
"Output dir %s does not exist!\n",
m_dir.
path().c_str());
155 MD5SigToString(md5_sig, sigStr);
172 std::ofstream f(
absDotName().str(),std::ofstream::out | std::ofstream::binary);
引用了 absBaseName(), absDotName(), absImgName(), absMapName(), DotRunner::addJob(), Config_getBool, Config_getEnumAsString, DotManager::createRunner(), QCString::data(), deliverablesPresent(), err(), Dir::exists(), FALSE, GOF_BITMAP, GOF_EPS, DotManager::instance(), QCString::length(), m_dir, m_generateImageMap, m_graphFormat, m_theGraph, MAP_CMD, Dir::path(), qPrint(), sameMd5Signature(), term() , 以及 TRUE.
被这些函数引用 writeGraph().
◆ relImgName()
◆ writeGraph()
在文件 dotgraph.cpp 第 111 行定义.
引用了 Dir::absPath(), IndexList::addImageFile(), computeTheGraph(), 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() , 以及 QCString::str().
被这些函数引用 DotGfxHierarchyTable::createGraph(), DotGroupCollaboration::writeGraph(), DotInclDepGraph::writeGraph(), DotClassGraph::writeGraph(), DotLegendGraph::writeGraph(), DotDirDeps::writeGraph() , 以及 DotCallGraph::writeGraph().
◆ writeGraphFooter()
◆ writeGraphHeader()
在文件 dotgraph.cpp 第 268 行定义.
275 t <<
"\"Dot Graph\"";
285 t <<
" // INTERACTIVE_SVG=YES\n";
287 t <<
" // LATEX_PDF_SIZE\n";
290 t <<
" bgcolor=\"transparent\";\n";
292 t <<
" edge [fontname=\"" << fontName <<
"\","
293 "fontsize=\"" << fontSize <<
"\","
294 "labelfontname=\"" << fontName <<
"\","
295 "labelfontsize=\"" << fontSize <<
"\"];\n";
296 t <<
" node [fontname=\"" << fontName <<
"\","
297 "fontsize=\"" << fontSize <<
"\",shape=record];\n";
引用了 Config_getBool, Config_getInt, Config_getString, convertToXML() , 以及 QCString::isEmpty().
被这些函数引用 computeGraph(), DotLegendGraph::computeTheGraph(), DotGfxHierarchyTable::computeTheGraph() , 以及 DotDirDeps::computeTheGraph().
◆ m_absPath
◆ m_baseName
◆ m_curNodeNumber
int DotGraph::m_curNodeNumber = 0 |
|
private |
◆ m_dir
◆ m_doNotAddImageToIndex
bool DotGraph::m_doNotAddImageToIndex = false |
|
protected |
◆ m_fileName
◆ m_generateImageMap
bool DotGraph::m_generateImageMap = false |
|
protected |
◆ m_graphFormat
◆ m_graphId
int DotGraph::m_graphId = 0 |
|
protected |
◆ m_noDivTag
bool DotGraph::m_noDivTag = false |
|
protected |
◆ m_regenerate
bool DotGraph::m_regenerate = false |
|
protected |
◆ m_relPath
◆ m_textFormat
◆ m_theGraph
◆ m_urlOnly
bool DotGraph::m_urlOnly = false |
|
protected |
◆ m_zoomable
bool DotGraph::m_zoomable = true |
|
protected |
该类的文档由以下文件生成:
QCString getDotImageExtension()
static DotManager * instance()
const DotNodeRefVector & parents() const
bool m_doNotAddImageToIndex
Class representing a directory in the file system
Helper class to run dot from doxygen from multiple threads.
uint length() const
Returns the length of the string, not counting the 0-terminator.
virtual QCString getImgAltText() const
void write(TextStream &t, GraphType gt, GraphOutputFormat f, bool topDown, bool toChildren, bool backArrows) const
bool isEmpty() const
Returns TRUE iff the string is empty
QCString relImgName() const
static IndexList * indexList
DotRunner * createRunner(const QCString &absDotName, const QCString &md5Hash)
static bool writeVecGfxFigure(TextStream &out, const QCString &baseName, const QCString &figureName)
QCString absBaseName() const
virtual QCString getMapLabel() const =0
void generateCode(TextStream &t)
static void writeGraphFooter(TextStream &t)
QCString absDotName() const
void err(const char *fmt,...)
Text streaming class that buffers data.
static void writeGraphHeader(TextStream &t, const QCString &title=QCString())
void addJob(const QCString &format, const QCString &output, const QCString &srcFile, int srcLine)
Adds an additional job to the run.
virtual QCString absMapName() const
#define Config_getInt(name)
EmbeddedOutputFormat m_textFormat
void addImageFile(const QCString &name)
static bool deliverablesPresent(const QCString &file1, const QCString &file2)
std::string absPath() const
#define Config_getEnumAsString(name)
static bool writeSVGFigureLink(TextStream &out, const QCString &relPath, const QCString &baseName, const QCString &absImgName)
Check if a reference to a SVG figure can be written and do so if possible.
GraphOutputFormat m_graphFormat
std::string str() const
Return the contents of the buffer as a std::string object
void writeArrow(TextStream &t, GraphType gt, GraphOutputFormat f, const DotNode *cn, const EdgeInfo *ei, bool topDown, bool pointBack=TRUE) const
static bool insertMapFile(TextStream &out, const QCString &mapFile, const QCString &relPath, const QCString &mapLabel)
QCString absImgName() const
#define Config_getBool(name)
virtual void computeTheGraph()=0
void term(const char *fmt,...)
const char * qPrint(const char *s)
virtual QCString getBaseName() const =0
#define Config_getString(name)
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
QCString convertToXML(const QCString &s, bool keepEntities)
static bool sameMd5Signature(const QCString &baseName, const QCString &md5)
QCString correctId(const QCString &s)
This is an alternative implementation of QCString.