#include "boxes.hh"
Go to the source code of this file.
Functions | |
void | drawSchema (Tree bd, const char *projname, const char *dev) |
The entry point to generate from a block diagram as a set of svg files stored in the directory "<projname>-svg/" or "<projname>-ps/" depending of <dev>. |
void drawSchema | ( | Tree | bd, | |
const char * | projname, | |||
const char * | dev | |||
) |
The entry point to generate from a block diagram as a set of svg files stored in the directory "<projname>-svg/" or "<projname>-ps/" depending of <dev>.
Definition at line 158 of file drawschema.cpp.
References boxComplexity(), cholddir(), gDevSuffix, gFoldThreshold, mkchdir(), pendingDrawing(), scheduleDrawing(), sFoldingFlag, and writeSchemaFile().
Referenced by main(), and printDocDgm().
00159 { 00160 gDevSuffix = dev; 00161 sFoldingFlag = boxComplexity(bd) > gFoldThreshold; 00162 00163 mkchdir(projname); // create a directory to store files 00164 00165 scheduleDrawing(bd); // schedule the initial drawing 00166 00167 Tree t; while (pendingDrawing(t)) { 00168 writeSchemaFile(t); // generate all the pending drawing 00169 } 00170 00171 cholddir(); // return to current directory 00172 }