From: <ai...@us...> - 2012-08-13 21:02:43
|
Revision: 12207 http://plplot.svn.sourceforge.net/plplot/?rev=12207&view=rev Author: airwin Date: 2012-08-13 21:02:37 +0000 (Mon, 13 Aug 2012) Log Message: ----------- rev ==> alt_hue_path in the PLControlPt struct and its examplar, plsc->cmap1cp[n]. Modified Paths: -------------- trunk/bindings/ada/plplot_thin.ads trunk/bindings/d/plplot.d trunk/bindings/octave/plplot_octave.h.in trunk/bindings/tk/plframe.c trunk/bindings/tk/plr.c trunk/bindings/tk-x-plat/plplotter.c trunk/drivers/tk.c trunk/include/plplot.h trunk/src/plctrl.c Modified: trunk/bindings/ada/plplot_thin.ads =================================================================== --- trunk/bindings/ada/plplot_thin.ads 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/bindings/ada/plplot_thin.ads 2012-08-13 21:02:37 UTC (rev 12207) @@ -468,7 +468,7 @@ l : PLFLT; -- lightness s : PLFLT; -- saturation p : PLFLT; -- position - rev : Integer; -- if set, interpolate through h=0 + alt_hue_path : Integer; -- if set, interpolate through h=0 end record; -- A PLBufferingCB is a control block for interacting with devices Modified: trunk/bindings/d/plplot.d =================================================================== --- trunk/bindings/d/plplot.d 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/bindings/d/plplot.d 2012-08-13 21:02:37 UTC (rev 12207) @@ -1240,7 +1240,7 @@ PLFLT s; PLFLT p; PLFLT a; - int rev; + int alt_hue_path; } alias _N10 PLControlPt; Modified: trunk/bindings/octave/plplot_octave.h.in =================================================================== --- trunk/bindings/octave/plplot_octave.h.in 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/bindings/octave/plplot_octave.h.in 2012-08-13 21:02:37 UTC (rev 12207) @@ -361,7 +361,7 @@ PLFLT l; // lightness PLFLT s; // saturation PLFLT p; // position - int rev; // if set, interpolate through h=0 + int alt_hue_path; // if set, interpolate through h=0 } PLControlPt; // A PLBufferingCB is a control block for interacting with devices Modified: trunk/bindings/tk/plframe.c =================================================================== --- trunk/bindings/tk/plframe.c 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/bindings/tk/plframe.c 2012-08-13 21:02:37 UTC (rev 12207) @@ -1897,13 +1897,13 @@ ( pls->cmap1cp[i].l != l ) || ( pls->cmap1cp[i].s != s ) || ( pls->cmap1cp[i].p != p ) || - ( pls->cmap1cp[i].rev != reverse ) ) + ( pls->cmap1cp[i].alt_hue_path != reverse ) ) { pls->cmap1cp[i].h = h; pls->cmap1cp[i].l = l; pls->cmap1cp[i].s = s; pls->cmap1cp[i].p = p; - pls->cmap1cp[i].rev = reverse; + pls->cmap1cp[i].alt_hue_path = reverse; *p_changed = 1; } return TCL_OK; @@ -2023,7 +2023,7 @@ sprintf( str, "%02d", (int) ( 100 * pls->cmap1cp[i].p ) ); Tcl_AppendElement( interp, str ); - sprintf( str, "%01d", (int) ( pls->cmap1cp[i].rev ) ); + sprintf( str, "%01d", (int) ( pls->cmap1cp[i].alt_hue_path ) ); Tcl_AppendElement( interp, str ); } result = TCL_OK; Modified: trunk/bindings/tk/plr.c =================================================================== --- trunk/bindings/tk/plr.c 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/bindings/tk/plr.c 2012-08-13 21:02:37 UTC (rev 12207) @@ -508,7 +508,7 @@ plsc->cmap1cp[i].h = h; plsc->cmap1cp[i].l = l; plsc->cmap1cp[i].s = s; - plsc->cmap1cp[i].rev = rev; + plsc->cmap1cp[i].alt_hue_path = rev; } plP_state( PLSTATE_CMAP1 ); break; Modified: trunk/bindings/tk-x-plat/plplotter.c =================================================================== --- trunk/bindings/tk-x-plat/plplotter.c 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/bindings/tk-x-plat/plplotter.c 2012-08-13 21:02:37 UTC (rev 12207) @@ -1692,13 +1692,13 @@ ( pls->cmap1cp[i].l != l ) || ( pls->cmap1cp[i].s != s ) || ( pls->cmap1cp[i].p != p ) || - ( pls->cmap1cp[i].rev != reverse ) ) + ( pls->cmap1cp[i].alt_hue_path != reverse ) ) { pls->cmap1cp[i].h = h; pls->cmap1cp[i].l = l; pls->cmap1cp[i].s = s; pls->cmap1cp[i].p = p; - pls->cmap1cp[i].rev = reverse; + pls->cmap1cp[i].alt_hue_path = reverse; *p_changed = 1; } return TCL_OK; @@ -1812,7 +1812,7 @@ sprintf( str, "%02d", (int) ( 100 * pls->cmap1cp[i].p ) ); Tcl_AppendElement( interp, str ); - sprintf( str, "%01d", (int) ( pls->cmap1cp[i].rev ) ); + sprintf( str, "%01d", (int) ( pls->cmap1cp[i].alt_hue_path ) ); Tcl_AppendElement( interp, str ); } result = TCL_OK; Modified: trunk/drivers/tk.c =================================================================== --- trunk/drivers/tk.c 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/drivers/tk.c 2012-08-13 21:02:37 UTC (rev 12207) @@ -521,7 +521,7 @@ tk_wr( pdf_wr_ieeef( pls->pdfs, (float) pls->cmap1cp[i].h ) ); tk_wr( pdf_wr_ieeef( pls->pdfs, (float) pls->cmap1cp[i].l ) ); tk_wr( pdf_wr_ieeef( pls->pdfs, (float) pls->cmap1cp[i].s ) ); - tk_wr( pdf_wr_1byte( pls->pdfs, (U_CHAR) pls->cmap1cp[i].rev ) ); + tk_wr( pdf_wr_1byte( pls->pdfs, (U_CHAR) pls->cmap1cp[i].alt_hue_path ) ); } break; } Modified: trunk/include/plplot.h =================================================================== --- trunk/include/plplot.h 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/include/plplot.h 2012-08-13 21:02:37 UTC (rev 12207) @@ -466,7 +466,7 @@ PLFLT s; // saturation PLFLT p; // position PLFLT a; // alpha (or transparency) - int rev; // if set, interpolate through h=0 + int alt_hue_path; // if set, interpolate through h=0 } PLControlPt; // A PLBufferingCB is a control block for interacting with devices Modified: trunk/src/plctrl.c =================================================================== --- trunk/src/plctrl.c 2012-08-13 20:27:59 UTC (rev 12206) +++ trunk/src/plctrl.c 2012-08-13 21:02:37 UTC (rev 12207) @@ -694,9 +694,9 @@ plsc->cmap1cp[n].a = 1.0; if ( rev == NULL ) - plsc->cmap1cp[n].rev = 0; + plsc->cmap1cp[n].alt_hue_path = 0; else - plsc->cmap1cp[n].rev = rev[n]; + plsc->cmap1cp[n].alt_hue_path = rev[n]; } // Calculate and set color map @@ -775,9 +775,9 @@ plsc->cmap1cp[n].a = a[n]; if ( rev == NULL ) - plsc->cmap1cp[n].rev = 0; + plsc->cmap1cp[n].alt_hue_path = 0; else - plsc->cmap1cp[n].rev = rev[n]; + plsc->cmap1cp[n].alt_hue_path = rev[n]; } // Calculate and set color map @@ -815,7 +815,7 @@ // Adjust dh if we are to go around "the back side" - if ( plsc->cmap1cp[n].rev ) + if ( plsc->cmap1cp[n].alt_hue_path ) dh = ( dh > 0 ) ? dh - 360 : dh + 360; // Loop over all color cells. Only interested in cells located (in This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |