break;
case 1:
/* single graphic to render, output as top level shape */
- PrintOuterShape(job, _graphics[0]);
+ PrintOuterShape(job, *_graphics[0]);
outerShapeId = _shapeId;
break;
default:
EDGE_TYPE(agroot(edge))))
firstConnector = false;
else
- PrintOuterShape(job, *nextGraphic);
+ PrintOuterShape(job, **nextGraphic);
}
ClearGraphicsAndTexts();
_graphics.push_back(graphic);
else
/* if outside, output immediately */
- PrintOuterShape(job, graphic);
+ PrintOuterShape(job, *graphic);
}
void Render::AddText(GVJ_t* job, const Text* text)
_hyperlinks.push_back(hyperlink);
}
- void Render::PrintOuterShape(GVJ_t* job, const Graphic* graphic)
+ void Render::PrintOuterShape(GVJ_t* job, const Graphic &graphic)
{
- boxf bounds = graphic->GetBounds();
+ boxf bounds = graphic.GetBounds();
gvprintf(job, "<Shape ID='%d' Type='Shape'>\n", ++_shapeId);
PrintTexts(job);
/* output Line, Fill, Geom */
- graphic->Print(job, bounds.LL, bounds.UR, true);
+ graphic.Print(job, bounds.LL, bounds.UR, true);
gvputs(job, "</Shape>\n");
}
void AddHyperlink(GVJ_t* job, const Hyperlink* hyperlink);
/* output the graphic as top level shape */
- void PrintOuterShape(GVJ_t* job, const Graphic* graphic);
+ void PrintOuterShape(GVJ_t* job, const Graphic &graphic);
/* output the graphic as a subshape of a top level shape, given its id and bounds */
void PrintInnerShape(GVJ_t* job, const Graphic* graphic, unsigned int outerId, boxf outerBounds);