painter.drawPie( (MID_POINT_OUTER_X -40 ), (MID_POINT_OUTER_Y-70) ,
( OUTER_ELLIPSE_WIDTH - (6*INNER_ELLIPSE_WIDTH) ) ,
( OUTER_ELLIPSE_HEIGHT - (4.5*INNER_ELLIPSE_HEIGHT ) ) ,
90*16 , -90*16 );
painter.drawPie((MID_POINT_OUTER_X -40 ), (MID_POINT_OUTER_Y-68) ,
( OUTER_ELLIPSE_WIDTH - (6*INNER_ELLIPSE_WIDTH) ) ,
( OUTER_ELLIPSE_HEIGHT - (4*INNER_ELLIPSE_HEIGHT ) ) ,
0*16 , -90*16 );
..
painter.drawPie( (MID_POINT_OUTER_X -69 ), (MID_POINT_OUTER_Y-70) ,
( OUTER_ELLIPSE_WIDTH - (6*INNER_ELLIPSE_WIDTH) ) ,
( OUTER_ELLIPSE_HEIGHT - (4.5*INNER_ELLIPSE_HEIGHT ) ) ,
-180*16 , -90*16 );
painter.drawPie( (MID_POINT_OUTER_X -40 ), (MID_POINT_OUTER_Y-70) ,
( OUTER_ELLIPSE_WIDTH - (6*INNER_ELLIPSE_WIDTH) ) ,
( OUTER_ELLIPSE_HEIGHT - (4.5*INNER_ELLIPSE_HEIGHT ) ) ,
90*16 , -90*16 );
painter.drawPie((MID_POINT_OUTER_X -40 ), (MID_POINT_OUTER_Y-68) ,
( OUTER_ELLIPSE_WIDTH - (6*INNER_ELLIPSE_WIDTH) ) ,
( OUTER_ELLIPSE_HEIGHT - (4*INNER_ELLIPSE_HEIGHT ) ) ,
0*16 , -90*16 );
..
painter.drawPie( (MID_POINT_OUTER_X -69 ), (MID_POINT_OUTER_Y-70) ,
( OUTER_ELLIPSE_WIDTH - (6*INNER_ELLIPSE_WIDTH) ) ,
( OUTER_ELLIPSE_HEIGHT - (4.5*INNER_ELLIPSE_HEIGHT ) ) ,
-180*16 , -90*16 );
To copy to clipboard, switch view to plain text mode
what i require here is that some how i can build a single function and just pass painter pointer and the starting and ending angle as paramters to that fuction but the first four parameters of drawPie in my case dont follow any sensible pattern or sequence so i have to pass seven parameters and do some mess in function,which doesnt make any sense...any idea on this..
Bookmarks