Doxygen
|
Represents a graphical class hierarchy. More...
#include <src/dotgfxhierarchytable.h>
Public Member Functions | |
DotGfxHierarchyTable (const QCString &prefix="", ClassDef::CompoundType ct=ClassDef::Class) | |
~DotGfxHierarchyTable () override=default | |
void | createGraph (DotNode *rootNode, TextStream &t, const QCString &path, const QCString &fileName, int id) |
void | writeGraph (TextStream &t, const QCString &path, const QCString &fileName) |
const std::vector< DotNode * > | subGraphs () const |
Public Member Functions inherited from DotGraph | |
DotGraph () | |
virtual | ~DotGraph ()=default |
Protected Member Functions | |
QCString | getBaseName () const override |
QCString | getMapLabel () const override |
void | computeTheGraph () override |
Protected Member Functions inherited from DotGraph | |
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 | absMapName () const |
virtual QCString | getImgAltText () const |
QCString | absBaseName () const |
QCString | absDotName () const |
QCString | imgName () const |
QCString | absImgName () const |
QCString | 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 |
QCString | 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 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 inherited from DotGraph | |
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 |
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 QCString & | prefix = "", |
ClassDef::CompoundType | ct = ClassDef::Class ) |
Definition at line 226 of file dotgfxhierarchytable.cpp.
References addClassList(), Doxygen::classLinkedMap, FALSE, Doxygen::hiddenClassLinkedMap, m_classType, m_prefix, m_rootNodes, m_rootSubgraphs, prefix, and TRUE.
Referenced by ~DotGfxHierarchyTable().
|
overridedefault |
References DotGfxHierarchyTable(), and DotGraph::DotNode.
|
private |
Definition at line 179 of file dotgfxhierarchytable.cpp.
References addHierarchy(), classHasVisibleRoot(), Config_getBool, VhdlDocGen::convert(), DotGraph::DotNode, VhdlDocGen::ENTITYCLASS, m_classType, m_rootNodes, m_usedNodes, and VHDL.
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, Definition::getOutputFileBase(), Definition::getReference(), QCString::isEmpty(), Definition::isHidden(), Definition::isLinkable(), ClassDef::isVisibleInHierarchy(), m_usedNodes, Definition::name(), EdgeInfo::protectionToColor(), QCString::str(), and ClassDef::subClasses().
Referenced by addClassList(), and addHierarchy().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 37 of file dotgfxhierarchytable.cpp.
References BITMAP, FALSE, Hierarchy, m_rootNodes, m_rootSubgraphNode, DotGraph::m_theGraph, TextStream::str(), theTranslator, TRUE, DotGraph::writeGraphFooter(), and DotGraph::writeGraphHeader().
void DotGfxHierarchyTable::createGraph | ( | DotNode * | rootNode, |
TextStream & | t, | ||
const QCString & | path, | ||
const QCString & | fileName, | ||
int | id ) |
Definition at line 65 of file dotgfxhierarchytable.cpp.
References BITMAP, DotGraph::DotNode, FALSE, Html, m_graphId, DotGraph::m_noDivTag, m_rootSubgraphNode, DotGraph::m_zoomable, TRUE, and DotGraph::writeGraph().
Referenced by writeGraph().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 27 of file dotgfxhierarchytable.cpp.
References m_graphId, m_prefix, qPrint(), and QCString::sprintf().
|
overrideprotectedvirtual |
Implements DotGraph.
Definition at line 60 of file dotgfxhierarchytable.cpp.
References escapeCharsInString(), FALSE, and m_rootSubgraphNode.
|
inline |
void DotGfxHierarchyTable::writeGraph | ( | TextStream & | t, |
const QCString & | path, | ||
const QCString & | fileName ) |
Definition at line 75 of file dotgfxhierarchytable.cpp.
References createGraph(), Dir::exists(), m_rootSubgraphs, qPrint(), QCString::str(), and term.
Referenced by HtmlGenerator::writeGraphicalHierarchy().
|
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().