From: <hez...@us...> - 2011-03-20 23:08:19
|
Revision: 11663 http://plplot.svn.sourceforge.net/plplot/?rev=11663&view=rev Author: hezekiahcarty Date: 2011-03-20 23:08:13 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Add rotate parameter to plarc (not currently implemented) This commit updates the plarc function definition and C example 3. An actual update to implement arc rotation support will come later, but this gets the plarc API change in now so that it does not require another ABI bump. Modified Paths: -------------- trunk/examples/c/x03c.c trunk/include/plplot.h trunk/src/plarc.c Modified: trunk/examples/c/x03c.c =================================================================== --- trunk/examples/c/x03c.c 2011-03-20 22:44:44 UTC (rev 11662) +++ trunk/examples/c/x03c.c 2011-03-20 23:08:13 UTC (rev 11663) @@ -45,7 +45,7 @@ // Draw circles for polar grid for ( i = 1; i <= 10; i++ ) { - plarc( 0.0, 0.0, 0.1 * i, 0.1 * i, 0.0, 360.0, 0 ); + plarc( 0.0, 0.0, 0.1 * i, 0.1 * i, 0.0, 360.0, 0.0, 0 ); } plcol0( 2 ); Modified: trunk/include/plplot.h =================================================================== --- trunk/include/plplot.h 2011-03-20 22:44:44 UTC (rev 11662) +++ trunk/include/plplot.h 2011-03-20 23:08:13 UTC (rev 11663) @@ -853,7 +853,7 @@ PLDLLIMPEXP void c_plarc( PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, - PLBOOL fill ); + PLFLT rotate, PLBOOL fill ); // This functions similarly to plbox() except that the origin of the axes // is placed at the user-specified point (x0, y0). Modified: trunk/src/plarc.c =================================================================== --- trunk/src/plarc.c 2011-03-20 22:44:44 UTC (rev 11662) +++ trunk/src/plarc.c 2011-03-20 23:08:13 UTC (rev 11663) @@ -34,7 +34,7 @@ // //-------------------------------------------------------------------------- void -plarc_approx( PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, PLBOOL fill ) +plarc_approx( PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, PLFLT rotate, PLBOOL fill ) { PLINT i; PLFLT theta0, theta_step, theta, d_angle; @@ -106,7 +106,7 @@ // //-------------------------------------------------------------------------- void -c_plarc( PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, PLBOOL fill ) +c_plarc( PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, PLFLT rotate, PLBOOL fill ) { PLINT xscl[2], yscl[2]; PLINT clpxmi, clpxma, clpymi, clpyma; @@ -138,7 +138,7 @@ } else { - plarc_approx( x, y, a, b, angle1, angle2, fill ); + plarc_approx( x, y, a, b, angle1, angle2, rotate, fill ); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |