|
Doxygen
|
Represents a graphical class hierarchy. More...
#include <src/dotgfxhierarchytable.h>
Public Member Functions | |
| DotGfxHierarchyTable (const DString &prefix="", ClassDef::CompoundType ct=ClassDef::Class) | |
| ~DotGfxHierarchyTable () override=default | |
| void | createGraph (DotNode *rootNode, TextStream &t, const DString &path, const DString &fileName, int id) |
| void | writeGraph (TextStream &t, const DString &path, const DString &fileName) |
| const std::vector< DotNode * > | subGraphs () const |
| Public Member Functions inherited from DotGraph | |
| DotGraph () | |
| virtual | ~DotGraph ()=default |
Protected Member Functions | |
| DString | getBaseName () const override |
| DString | getMapLabel () const override |
| void | computeTheGraph () override |
| Protected Member Functions inherited from DotGraph | |
| 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 | absMapName () const |
| virtual DString | getImgAltText () const |
| DString | absBaseName () const |
| DString | absDotName () const |
| DString | imgName () const |
| DString | absImgName () const |
| DString | relImgName () const |
Private Types | |
| using | DotNodeMap = std::unordered_multimap< std::string, std::unique_ptr<DotNode> > |
Private Member Functions | |
| void | addHierarchy (DotNode *n, const ClassDef *cd, ClassDefSet &visited) |
| void | addClassList (const ClassLinkedMap &cl, ClassDefSet &visited) |
Private Attributes | |
| int | m_graphId |
| DString | m_prefix |
| ClassDef::CompoundType | m_classType |
| std::vector< DotNode * > | m_rootNodes |
| DotNodeMap | m_usedNodes |
| std::vector< DotNode * > | m_rootSubgraphs |
| DotNode * | m_rootSubgraphNode |
Additional Inherited Members | |
| Static Protected Member Functions inherited from DotGraph | |
| 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 inherited from DotGraph | |
| 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 |
Represents a graphical class hierarchy.
Definition at line 31 of file dotgfxhierarchytable.h.
|
private |
Definition at line 52 of file dotgfxhierarchytable.h.
| DotGfxHierarchyTable::DotGfxHierarchyTable | ( | const DString & | prefix = "", |
| ClassDef::CompoundType | ct = ClassDef::Class ) |
Definition at line 226 of file dotgfxhierarchytable.cpp.
References addClassList(), Doxygen::classLinkedMap, Doxygen::hiddenClassLinkedMap, m_classType, m_prefix, m_rootNodes, m_rootSubgraphs, and prefix.
Referenced by ~DotGfxHierarchyTable().
|
overridedefault |
References createGraph(), DotGfxHierarchyTable(), DotGraph::DotNode, NON_COPYABLE, and writeGraph().
|
private |
Definition at line 179 of file dotgfxhierarchytable.cpp.
References addHierarchy(), classHasVisibleRoot(), Config_getBool, VhdlDocGen::convert(), DotGraph::DotNode, VhdlDocGen::ENTITYCLASS, m_classType, m_rootNodes, and m_usedNodes.
Referenced by DotGfxHierarchyTable().
|
private |
Definition at line 105 of file dotgfxhierarchytable.cpp.
References DotNode::addChild(), addHierarchy(), Definition::anchor(), ClassDef::baseClasses(), Definition::briefDescriptionAsTooltip(), DotNode::children(), classHasVisibleRoot(), Definition::displayName(), DotGraph::DotNode, DString::empty(), Definition::getOutputFileBase(), Definition::getReference(), Definition::isHidden(), Definition::isLinkable(), ClassDef::isVisibleInHierarchy(), m_usedNodes, Definition::name(), EdgeInfo::protectionToColor(), DString::str(), and ClassDef::subClasses().
Referenced by addClassList(), and addHierarchy().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 37 of file dotgfxhierarchytable.cpp.
References BITMAP, Hierarchy, m_rootNodes, m_rootSubgraphNode, DotGraph::m_theGraph, TextStream::str(), DotNode::subgraphId(), theTranslator, Translator::trGraphicalHierarchy(), DotGraph::writeGraphFooter(), and DotGraph::writeGraphHeader().
| void DotGfxHierarchyTable::createGraph | ( | DotNode * | rootNode, |
| TextStream & | t, | ||
| const DString & | path, | ||
| const DString & | fileName, | ||
| int | id ) |
Definition at line 65 of file dotgfxhierarchytable.cpp.
References BITMAP, DotGraph::DotNode, Html, m_graphId, DotGraph::m_noDivTag, m_rootSubgraphNode, DotGraph::m_zoomable, and DotGraph::writeGraph().
Referenced by writeGraph(), and ~DotGfxHierarchyTable().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 27 of file dotgfxhierarchytable.cpp.
References DString::empty(), m_graphId, m_prefix, qPrint(), and DString::sprintf().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 60 of file dotgfxhierarchytable.cpp.
References escapeCharsInString(), DotNode::label(), and m_rootSubgraphNode.
|
inline |
| void DotGfxHierarchyTable::writeGraph | ( | TextStream & | t, |
| const DString & | path, | ||
| const DString & | fileName ) |
Definition at line 75 of file dotgfxhierarchytable.cpp.
References createGraph(), Dir::exists(), m_rootSubgraphs, DString::str(), and term.
Referenced by HtmlGenerator::writeGraphicalHierarchy(), and ~DotGfxHierarchyTable().
|
private |
Definition at line 55 of file dotgfxhierarchytable.h.
Referenced by addClassList(), and DotGfxHierarchyTable().
|
private |
Definition at line 53 of file dotgfxhierarchytable.h.
Referenced by createGraph(), and getBaseName().
|
private |
Definition at line 54 of file dotgfxhierarchytable.h.
Referenced by DotGfxHierarchyTable(), and getBaseName().
|
private |
Definition at line 56 of file dotgfxhierarchytable.h.
Referenced by addClassList(), computeTheGraph(), and DotGfxHierarchyTable().
|
private |
Definition at line 59 of file dotgfxhierarchytable.h.
Referenced by computeTheGraph(), createGraph(), and getMapLabel().
|
private |
Definition at line 58 of file dotgfxhierarchytable.h.
Referenced by DotGfxHierarchyTable(), subGraphs(), and writeGraph().
|
private |
Definition at line 57 of file dotgfxhierarchytable.h.
Referenced by addClassList(), and addHierarchy().