diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-06-07 11:47:47 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-06-07 11:47:47 (GMT) |
commit | 0aa47e2a30513b04d1041d528f468d3434a81558 (patch) | |
tree | f17d17b67fdefdfdf992328f3f51dd90812c156e /src/dot.h | |
parent | 35c2baedaa68519999af733a87d8e6ff9a89358c (diff) | |
download | Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.zip Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.gz Doxygen-0aa47e2a30513b04d1041d528f468d3434a81558.tar.bz2 |
Release-1.3.1-20030607
Diffstat (limited to 'src/dot.h')
-rw-r--r-- | src/dot.h | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -29,6 +29,7 @@ class FileDef; class QTextStream; class DotNodeList; class ClassSDict; +class MemberDef; enum GraphOutputFormat { BITMAP , EPS }; @@ -48,7 +49,7 @@ struct EdgeInfo class DotNode { public: - enum GraphType { Dependency, Inheritance, Collaboration, Hierarchy }; + enum GraphType { Dependency, Inheritance, Collaboration, Hierarchy, CallGraph }; DotNode(int n,const char *lab,const char *url,int distance = 0,bool rootNode=FALSE,ClassDef *cd=0); ~DotNode(); void addChild(DotNode *n, @@ -96,6 +97,7 @@ class DotNode friend class DotClassGraph; friend class DotInclDepGraph; friend class DotNodeList; + friend class DotCallGraph; friend void writeDotGraph( DotNode *root, GraphType gt, @@ -175,6 +177,25 @@ class DotInclDepGraph int m_recDepth; }; +class DotCallGraph +{ + public: + DotCallGraph(MemberDef *md,int maxRecursionDepth); + ~DotCallGraph(); + QCString writeGraph(QTextStream &t, GraphOutputFormat f, + const char *path,bool writeImageMap=TRUE); + void buildGraph(DotNode *n,MemberDef *md,int distance); + bool isTrivial() const; + + private: + DotNode *m_startNode; + static int m_curNodeNumber; + QDict<DotNode> *m_usedNodes; + int m_maxDistance; + int m_recDepth; + QCString m_diskName; +}; + void generateGraphLegend(const char *path); void writeDotGraphFromFile(const char *inFile,const char *outDir, const char *outFile,GraphOutputFormat format); |