浏览该文件的文档.
60 tmp_url = d->getReference()+
"$"+d->getOutputFileBase();
61 QCString tooltip = d->briefDescriptionAsTooltip();
64 m_usedNodes.insert(std::make_pair(d->name().str(), nnode));
81 tmp_url = def->getReference()+
"$"+def->getOutputFileBase();
82 QCString tooltip = def->briefDescriptionAsTooltip();
85 m_usedNodes.insert(std::make_pair(def->name().str(), nnode));
105 if (!def->anchor().isEmpty())
107 tmp_url+=
"#"+def->anchor();
120 for (
const auto &def : gd->
getFiles())
127 for (
const auto &def : gd->
getPages())
136 for(
const auto def : gd->
getDirs())
146 if ( ml==0 || ml->
empty() )
return;
147 for (
const auto &def : *ml)
161 [&_pNStart,&_pNEnd,&_eType](
const auto &edge)
162 { return edge->pNStart==_pNStart && edge->pNEnd==_pNEnd && edge->eType==_eType; });
166 m_edges.emplace_back(std::make_unique<Edge>(_pNStart,_pNEnd,_eType));
172 (*it)->links.emplace_back(_label,_url);
192 tmp_str = d->getReference()+
"$"+d->getOutputFileBase();
193 QCString tooltip = d->briefDescriptionAsTooltip();
196 m_usedNodes.insert(std::make_pair(d->name().str(), nnode));
217 kv.second->clearWriteFlag();
227 for (
const auto &edge :
m_edges)
229 edge->write( md5stream );
245 bool generateImageMap,
int graphId)
249 return DotGraph::writeGraph(t, graphFormat, textFormat, path, fileName, relPath, generateImageMap, graphId);
254 const char* linkTypeColor[] = {
263 QCString arrowStyle =
"dir=\"none\", style=\"dashed\"";
268 t <<
" [shape=plaintext";
288 const int maxLabels = 10;
289 for (
const auto &link :
links)
291 if (first) first=
FALSE;
else t <<
"\\n";
295 if (count==maxLabels) t <<
"\\n...";
302 arrowStyle =
"dir=\"back\", style=\"solid\"";
305 t <<
", color=\"" << linkTypeColor[(int)
eType] <<
"\"";
308 t <<
", " << arrowStyle;
324 t <<
"\"Dot Graph\"";
334 t <<
" bgcolor=\"transparent\";\n";
336 t <<
" edge [fontname=\"" << fontName <<
"\",fontsize=\"" << fontSize <<
"\","
337 "labelfontname=\"" << fontName <<
"\",labelfontsize=\"" << fontSize <<
"\"];\n";
338 t <<
" node [fontname=\"" << fontName <<
"\",fontsize=\"" << fontSize <<
"\",shape=box];\n";
339 t <<
" rankdir=LR;\n";
void write(TextStream &t) const
std::vector< Link > links
virtual void computeTheGraph()
void addCollaborationMember(const Definition *def, QCString &url, EdgeType eType)
The common base class of all entity definitions found in the sources.
bool m_doNotAddImageToIndex
virtual QCString getMapLabel() const
virtual const ClassLinkedRefMap & getClasses() const =0
bool isEmpty() const
Returns TRUE iff the string is empty
@ MemberListType_allMembersList
virtual QCString groupTitle() const =0
virtual const FileList & getFiles() const =0
virtual MemberList * getMemberList(MemberListType lt) const =0
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
static void writeGraphFooter(TextStream &t)
void addMemberList(class MemberList *ml)
int getNextNodeNumber()
returns node numbers.
virtual const GroupList & getSubGroups() const =0
Text streaming class that buffers data.
void markAsVisible(bool b=TRUE)
A model of a group of symbols.
virtual QCString qualifiedName() const =0
QCString addHtmlExtensionIfMissing(const QCString &fName)
virtual const DirList & getDirs() const =0
#define Config_getInt(name)
virtual QCString name() const =0
GraphOutputFormat m_graphFormat
virtual const NamespaceLinkedRefMap & getNamespaces() const =0
void writeGraphHeader(TextStream &t, const QCString &title) const
std::string str() const
Return the contents of the buffer as a std::string object
virtual const GroupList & partOfGroups() const =0
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
Edge * addEdge(DotNode *_pNStart, DotNode *_pNEnd, EdgeType _eType, const QCString &_label, const QCString &_url)
virtual const PageLinkedRefMap & getPages() const =0
virtual QCString getReference() const =0
void buildGraph(const GroupDef *gd)
#define Config_getBool(name)
virtual QCString getOutputFileBase() const =0
QCString escapeCharsInString(const QCString &name, bool allowDots, bool allowUnderscore)
#define Config_getString(name)
virtual QCString getBaseName() const
QCString convertToXML(const QCString &s, bool keepEntities)
static QCString convertLabel(const QCString &l)
virtual QCString briefDescriptionAsTooltip() const =0
std::vector< std::unique_ptr< Edge > > m_edges
A bunch of utility functions.
A list of MemberDef objects as shown in documentation sections.
DotGroupCollaboration(const GroupDef *gd)
This is an alternative implementation of QCString.