3147 err(
"Output dir %s does not exist!\n",path); exit(1);
3162 mapName=
"inherit_map";
3174 QCString absDotName = absBaseName+
".dot";
3175 QCString absMapName = absBaseName+
".map";
3176 QCString absPdfName = absBaseName+
".pdf";
3177 QCString absEpsName = absBaseName+
".eps";
3178 QCString absImgName = absBaseName+
"."+imgExt;
3180 bool regenerate =
FALSE;
3191 usePDFLatex ? absPdfName : absEpsName,
3199 d.absPath().data(),
TRUE,absImgName);
3200 dotRun->
addJob(imgFmt,absImgName);
3205 else if (graphFormat==
GOF_EPS)
3210 dotRun->
addJob(
"pdf",absPdfName);
3214 dotRun->
addJob(
"ps",absEpsName);
3223 out <<
"<para>" <<
endl;
3224 out <<
" <figure>" <<
endl;
3229 out <<
"Collaboration graph";
3232 out <<
"Inheritance graph";
3238 out <<
"</title>" <<
endl;
3239 out <<
" <mediaobject>" <<
endl;
3240 out <<
" <imageobject>" <<
endl;
3241 out <<
" <imagedata";
3242 out <<
" width=\"50%\" align=\"center\" valign=\"middle\" scalefit=\"1\" fileref=\"" << relPath << baseName <<
"." << imgExt <<
"\">";
3243 out <<
"</imagedata>" <<
endl;
3244 out <<
" </imageobject>" <<
endl;
3245 out <<
" </mediaobject>" <<
endl;
3246 out <<
" </figure>" <<
endl;
3247 out <<
"</para>" <<
endl;
3249 else if (graphFormat==
GOF_BITMAP && generateImageMap)
3255 out <<
"<div class=\"center\">";
3263 out <<
"<!-- SVG " << mapId <<
" -->" <<
endl;
3265 out <<
"</div>" <<
endl;
3269 out <<
"<div class=\"center\">";
3270 out <<
"<img src=\"" << relPath << baseName <<
"." 3271 << imgExt <<
"\" border=\"0\" usemap=\"#" 3272 << mapLabel <<
"\" alt=\"";
3276 out <<
"Collaboration graph";
3279 out <<
"Inheritance graph";
3286 out <<
"</div>" <<
endl;
3287 if (regenerate || !
insertMapFile(out,absMapName,relPath,mapLabel))
3291 out <<
"<!-- MAP " << mapId <<
" -->" <<
endl;
3295 else if (graphFormat==
GOF_EPS)
3300 out << endl <<
"% FIG " << figId <<
endl;
Traverses directory structures and contents in a platform-independent way.
int addSVGConversion(const QCString &file, const QCString &relPath, bool urlOnly, const QCString &context, bool zoomable, int graphId)
QCString escapeCharsInString(const char *name, bool allowDots, bool allowUnderscore)
static bool insertMapFile(FTextStream &out, const QCString &mapFile, const QCString &relPath, const QCString &mapLabel)
static bool checkDeliverables(const QCString &file1, const QCString &file2=QCString())
static DotManager * instance()
int addMap(const QCString &file, const QCString &mapFile, const QCString &relPath, bool urlOnly, const QCString &context, const QCString &label)
#define Config_getEnum(val)
static void removeDotGraph(const QCString &dotName)
static bool updateDotGraph(DotNode *root, DotNode::GraphType gt, const QCString &baseName, GraphOutputFormat format, bool lrRank, bool renderParents, bool backArrows, const QCString &title=QCString())
static bool writeVecGfxFigure(FTextStream &out, const QCString &baseName, const QCString &figureName)
int addFigure(const QCString &file, const QCString &baseName, const QCString &figureName, bool heightCheck)
void addImageFile(const char *name)
#define Config_getBool(val)
QCString getDotImageExtension(void)
QCString diskName() const
void err(const char *fmt,...)
int addSVGObject(const QCString &file, const QCString &baseName, const QCString &figureNAme, const QCString &relPath)
void addJob(const char *format, const char *output)
static bool writeSVGFigureLink(FTextStream &out, const QCString &relPath, const QCString &baseName, const QCString &absImgName)
QCString convertNameToFile(const char *name, bool allowDots, bool allowUnderscore)
QCString m_label
label text
void addRun(DotRunner *run)
static IndexList * indexList
QTextStream & endl(QTextStream &s)
DotNode::GraphType m_graphType