/* output subshapes */
gvputs(job, "<Shapes>\n");
for (Graphics::const_iterator nextGraphic = _graphics.begin(), lastGraphic = _graphics.end(); nextGraphic != lastGraphic; ++nextGraphic)
- PrintInnerShape(job, *nextGraphic, outerShapeId, outerBounds);
+ PrintInnerShape(job, **nextGraphic, outerShapeId, outerBounds);
gvputs(job, "</Shapes>\n");
gvputs(job, "</Shape>\n");
gvputs(job, "</Shape>\n");
}
- void Render::PrintInnerShape(GVJ_t* job, const Graphic* graphic, unsigned int outerId, boxf outerBounds)
+ void Render::PrintInnerShape(GVJ_t* job, const Graphic &graphic, unsigned int outerId, boxf outerBounds)
{
- boxf innerBounds = graphic->GetBounds();
+ boxf innerBounds = graphic.GetBounds();
/* compute scale. if infinite, scale by 0 instead */
double xscale = 1.0 / (outerBounds.UR.x - outerBounds.LL.x);
gvputs(job, "</Misc>\n");
/* output Line, Fill, Geom */
- graphic->Print(job, innerBounds.LL, innerBounds.UR, true);
+ graphic.Print(job, innerBounds.LL, innerBounds.UR, true);
gvputs(job, "</Shape>\n");
}
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);
+ void PrintInnerShape(GVJ_t* job, const Graphic& graphic, unsigned int outerId, boxf outerBounds);
/* output the graphic as an edge connector, given the start and end node ids */
bool PrintEdgeShape(GVJ_t* job, const Graphic* graphic, unsigned int beginId, unsigned int endId, int edgeType);