Ejemplo n.º 1
0
//------------------------------------------------------------------------------
void CircleTreeDrawer::DrawInternal (Node *p)
{
    NodePtr anc = p->GetAnc();
    if (anc)
    {
    	DrawLine (node_coordinates[p], node_backarc[p]);
		double left_angle = node_angle[p->GetChild()];
    	double right_angle = node_angle[p->GetChild()->GetRightMostSibling()];
#if USE_PS
		GPoint pt;
        pt.SetX((int)origin.x);
        pt.SetY((int)origin.y);
        Port.DrawArc (pt, node_radius[p], int(RADIANS_TO_DEGREES(left_angle)), RADIANS_TO_DEGREES(right_angle)); //added int() around Radians to Degrees to comply with GCC 4.0 (added by BCO)
#endif
    }
    DrawInternalLabel (p);
}