Doxygen
Loading...
Searching...
No Matches
DotLegendGraph Class Reference

Representation of a legend explaining the meaning of boxes, arrows, and colors. More...

#include <src/dotlegendgraph.h>

+ Inheritance diagram for DotLegendGraph:
+ Collaboration diagram for DotLegendGraph:

Public Member Functions

void writeGraph (const QCString &path)
 
- Public Member Functions inherited from DotGraph
 DotGraph ()
 
virtual ~DotGraph ()=default
 

Private Member Functions

QCString getBaseName () const override
 
void computeTheGraph () override
 
QCString getMapLabel () const override
 

Additional Inherited Members

- 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
 
- 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
 

Detailed Description

Representation of a legend explaining the meaning of boxes, arrows, and colors.

Definition at line 22 of file dotlegendgraph.h.

Member Function Documentation

◆ computeTheGraph()

void DotLegendGraph::computeTheGraph ( )
overrideprivatevirtual

Implements DotGraph.

Definition at line 45 of file dotlegendgraph.cpp.

46{
47 TextStream md5stream;
49
50 DotNode{this,"Inherited", "", "", TRUE}.setNodeId(9).writeBox(md5stream, GraphType::CallGraph, GraphOutputFormat::BITMAP, false);
51 md5stream << " Node10 -> Node9 [dir=\"back\",color=\"steelblue1\",style=\"solid\" tooltip=\" \"];\n";
52 DotNode{this,"PublicBase", "", DotNode::placeholderUrl}.setNodeId(10).markHasDocumentation().writeBox(md5stream, GraphType::CallGraph, GraphOutputFormat::BITMAP, false);
53 md5stream << " Node11 -> Node10 [dir=\"back\",color=\"steelblue1\",style=\"solid\" tooltip=\" \"];\n";
54 DotNode{this,"Truncated", "", DotNode::placeholderUrl}.setNodeId(11).markAsTruncated().markHasDocumentation().writeBox(md5stream, GraphType::CallGraph, GraphOutputFormat::BITMAP, true);
55 md5stream << " Node13 -> Node9 [dir=\"back\",color=\"darkgreen\",style=\"solid\" tooltip=\" \"];\n";
56 md5stream << " Node13 [label=\"ProtectedBase\",color=\"gray40\",fillcolor=\"white\",style=\"filled\" tooltip=\" \"];\n";
57 md5stream << " Node14 -> Node9 [dir=\"back\",color=\"firebrick4\",style=\"solid\" tooltip=\" \"];\n";
58 md5stream << " Node14 [label=\"PrivateBase\",color=\"gray40\",fillcolor=\"white\",style=\"filled\" tooltip=\" \"];\n";
59 md5stream << " Node15 -> Node9 [dir=\"back\",color=\"steelblue1\",style=\"solid\" tooltip=\" \"];\n";
60 DotNode{this,"Undocumented", "", ""}.setNodeId(15).writeBox(md5stream, GraphType::CallGraph, GraphOutputFormat::BITMAP, false);
61 md5stream << " Node16 -> Node9 [dir=\"back\",color=\"steelblue1\",style=\"solid\" tooltip=\" \"];\n";
62 md5stream << " Node16 [label=\"Templ\\< int \\>\",color=\"gray40\",fillcolor=\"white\",style=\"filled\" tooltip=\" \"];\n";
63 md5stream << " Node17 -> Node16 [dir=\"back\",color=\"orange\",style=\"dashed\",label=\"< int >\",fontcolor=\"grey\" tooltip=\" \"];\n";
64 md5stream << " Node17 [label=\"Templ\\< T \\>\",color=\"gray40\",fillcolor=\"white\",style=\"filled\" tooltip=\" \"];\n";
65 md5stream << " Node18 -> Node9 [dir=\"back\",color=\"darkorchid3\",style=\"dashed\",label=\"m_usedClass\",fontcolor=\"grey\" tooltip=\" \"];\n";
66 md5stream << " Node18 [label=\"Used\",color=\"gray40\",fillcolor=\"white\",style=\"filled\" tooltip=\" \"];\n";
67 writeGraphFooter(md5stream);
68 m_theGraph = md5stream.str();
69}
static void writeGraphFooter(TextStream &t)
Definition dotgraph.cpp:301
static void writeGraphHeader(TextStream &t, const QCString &title=QCString())
Definition dotgraph.cpp:276
QCString m_theGraph
Definition dotgraph.h:95
friend class DotNode
Definition dotgraph.h:36
static constexpr auto placeholderUrl
Definition dotnode.h:70
std::string str() const
Return the contents of the buffer as a std::string object.
Definition textstream.h:229
virtual QCString trLegendTitle()=0
@ CallGraph
Definition dotgraph.h:31
Translator * theTranslator
Definition language.cpp:71
#define TRUE
Definition qcstring.h:37

References BITMAP, CallGraph, DotGraph::DotNode, DotGraph::m_theGraph, DotNode::placeholderUrl, TextStream::str(), theTranslator, TRUE, DotGraph::writeGraphFooter(), and DotGraph::writeGraphHeader().

◆ getBaseName()

QCString DotLegendGraph::getBaseName ( ) const
overrideprivatevirtual

Implements DotGraph.

Definition at line 40 of file dotlegendgraph.cpp.

41{
42 return "graph_legend";
43}

◆ getMapLabel()

QCString DotLegendGraph::getMapLabel ( ) const
overrideprivatevirtual

Implements DotGraph.

Definition at line 71 of file dotlegendgraph.cpp.

72{
73 return "";
74}

◆ writeGraph()

void DotLegendGraph::writeGraph ( const QCString & path)

Definition at line 27 of file dotlegendgraph.cpp.

28{
29 TextStream ts;
31
32 if (getDotImageExtension()=="svg")
33 {
35 createFilePatcher(absBaseName()+Config_getString(HTML_FILE_EXTENSION))->
36 addSVGObject("graph_legend", absImgName(),QCString());
37 }
38}
QCString absBaseName() const
Definition dotgraph.h:78
QCString absImgName() const
Definition dotgraph.h:81
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
Definition dotgraph.cpp:115
static DotManager * instance()
Definition dot.cpp:78
#define Config_getString(name)
Definition config.h:32
#define FALSE
Definition qcstring.h:34
QCString getDotImageExtension()
Definition util.cpp:6617

References DotGraph::absBaseName(), DotGraph::absImgName(), BITMAP, Config_getString, FALSE, getDotImageExtension(), Html, DotManager::instance(), and DotGraph::writeGraph().

Referenced by writeGraphInfo().


The documentation for this class was generated from the following files: