dot.cpp File Reference

#include <stdlib.h>
#include "dot.h"
#include "doxygen.h"
#include "message.h"
#include "util.h"
#include "config.h"
#include "language.h"
#include "defargs.h"
#include "docparser.h"
#include "debug.h"
#include "pagedef.h"
#include "portable.h"
#include "dirdef.h"
#include <qdir.h>
#include <qfile.h>
#include <qtextstream.h>
#include <md5.h>

Go to the source code of this file.

Classes

class  DotNodeList

Defines

#define MAP_CMD   "cmap"
#define FONTNAME   "FreeSans"

Functions

int reNumberNode (int number, bool doReNumbering)
QCString computeMd5Signature (DotNode *root, DotNode::GraphType gt, GraphOutputFormat format, bool lrRank, bool renderParents, bool backArrows, QCString &graphStr)
void generateGraphLegend (const char *path)
void writeDotGraphFromFile (const char *inFile, const char *outDir, const char *outFile, GraphOutputFormat format)
QString getDotImageMapFromFile (const QString &inFile, const QString &outDir, const QCString &relPath, const QString &context)
void writeDotDirDepGraph (QTextStream &t, DirDef *dd)


Define Documentation

#define FONTNAME   "FreeSans"

Definition at line 46 of file dot.cpp.

Referenced by generateGraphLegend(), and writeDotDirDepGraph().

#define MAP_CMD   "cmap"

Definition at line 44 of file dot.cpp.

Referenced by getDotImageMapFromFile(), DotGroupCollaboration::writeGraph(), DotDirDeps::writeGraph(), DotCallGraph::writeGraph(), DotInclDepGraph::writeGraph(), DotClassGraph::writeGraph(), and DotGfxHierarchyTable::writeGraph().


Function Documentation

QCString computeMd5Signature ( DotNode root,
DotNode::GraphType  gt,
GraphOutputFormat  format,
bool  lrRank,
bool  renderParents,
bool  backArrows,
QCString &  graphStr 
)

Computes a 16 byte md5 checksum for a given dot graph. The md5 checksum is returned as a 32 character ASCII string.

Definition at line 1680 of file dot.cpp.

References DotNode::CallGraph, DotNode::clearWriteFlag(), DotNode::Dependency, DotNode::isVisible(), DotNode::m_children, DotNode::m_edgeInfo, DotNode::m_parents, DotNode::write(), and DotNode::writeArrow().

void generateGraphLegend ( const char *  path  ) 

Generated a graphs legend page

Definition at line 2714 of file dot.cpp.

References DotRunner::addJob(), Config_getEnum, convertToQCString(), err(), FONTNAME, Doxygen::htmlFileExtension, and DotRunner::run().

Referenced by writeGraphInfo().

QString getDotImageMapFromFile ( const QString &  inFile,
const QString &  outDir,
const QCString &  relPath,
const QString &  context 
)

Marco Dalla Gasperina [marcodg@attbi.com] added this to allow dotfiles to generate image maps.

Parameters:
inFile just the basename part of the filename
outDir output directory
relPath relative path the to root of the output dir
context the scope in which this graph is found (for resolving links)
Returns:
a string which is the HTML image map (without the <map></map>)

Definition at line 2839 of file dot.cpp.

References DotRunner::addJob(), convertToQCString(), MAP_CMD, and DotRunner::run().

int reNumberNode ( int  number,
bool  doReNumbering 
) [inline]

Definition at line 201 of file dot.cpp.

void writeDotDirDepGraph ( QTextStream &  t,
DirDef dd 
)

Definition at line 3287 of file dot.cpp.

References SDict< T >::append(), Config_getBool, SDict< T >::count(), UsedDir::dir(), DirDef::dirCount(), Doxygen::dirRelations, UsedDir::filePairs(), FONTNAME, DirDef::getOutputFileBase(), Doxygen::htmlFileExtension, UsedDir::inherited(), DirDef::isCluster(), DirDef::isParentOf(), DirDef::parent(), DirDef::shortName(), DirDef::subDirs(), and DirDef::usedDirs().

Referenced by DirDef::writeDepGraph().

void writeDotGraphFromFile ( const char *  inFile,
const char *  outDir,
const char *  outFile,
GraphOutputFormat  format 
)

Definition at line 2770 of file dot.cpp.

References DotRunner::addJob(), BITMAP, Config_getBool, Config_getEnum, convertToQCString(), EPS, err(), portable_getenv(), portable_pathSeparator(), portable_setenv(), portable_system(), portable_unsetenv(), QCString, and DotRunner::run().



Generated on Mon Mar 31 10:58:52 2008 by  doxygen 1.5.1