24 #include <QPainterPath>
41 static QPointF
toPoint(pointf p, qreal gheight);
42 static QPointF
toPoint(point p, qreal gheight);
43 static QPointF
centerToOrigin(
const QPointF &p, qreal width, qreal height);
44 static QPolygonF
toPolygon(
const polygon_t* poly, qreal width,
47 static QPainterPath
toPath(
const char *type,
const polygon_t *poly,
48 qreal width, qreal height);
49 static QPainterPath
toPath(
const splines* spl, qreal gheight);
51 static Qt::BrushStyle
toBrushStyle(
const QString &style);
52 static Qt::PenStyle
toPenStyle(
const QString &style);
53 static QColor
toColor(
const QString &color);
61 static int memiofread(
void *chan,
char *buf,
int bufsize)
69 if (bufsize == 0)
return 0;
70 s =
static_cast<rdr_t *
>(chan);
79 }
while (c && (c !=
'\n') && (l < bufsize));
92 memIoDisc.putstr = AgIoDisc.putstr;
93 memIoDisc.flush = AgIoDisc.flush;
98 disc.mem = &AgMemDisc;
100 disc.io = &memIoDisc;
101 g = agread(&rdr, &disc);
int cur
Definition: QGVCore.h:58
static QPointF centerToOrigin(const QPointF &p, qreal width, qreal height)
static QPolygonF toPolygon(const polygon_t *poly, qreal width, qreal height)
static qreal graphHeight(Agraph_t *graph)
const qreal DotDefaultDPI
Definition: QGVCore.h:31
static Qt::PenStyle toPenStyle(const QString &style)
static QPainterPath toPath(const char *type, const polygon_t *poly, qreal width, qreal height)
const char * data
Definition: QGVCore.h:56
static int memiofread(void *chan, char *buf, int bufsize)
Definition: QGVCore.h:61
GraphViz to GraphicsScene conversions.
Definition: QGVCore.h:37
int len
Definition: QGVCore.h:57
static QPointF toPoint(pointf p, qreal gheight)
static QColor toColor(const QString &color)
static Qt::BrushStyle toBrushStyle(const QString &style)
static Agraph_t * agmemread2(const char *cp)
Definition: QGVCore.h:84