From: <sm...@us...> - 2009-08-14 05:52:07
|
Revision: 10248 http://plplot.svn.sourceforge.net/plplot/?rev=10248&view=rev Author: smekal Date: 2009-08-14 05:51:58 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Added missing plpal0(), plpal1() and plslabelfunc() functions. Modified Paths: -------------- trunk/bindings/d/plplot.d Modified: trunk/bindings/d/plplot.d =================================================================== --- trunk/bindings/d/plplot.d 2009-08-13 23:48:59 UTC (rev 10247) +++ trunk/bindings/d/plplot.d 2009-08-14 05:51:58 UTC (rev 10248) @@ -445,6 +445,18 @@ c_plptex3(wx, wy, wz, dx, dy, dz, sx, sy, sz, just, toStringz(text)); } +/* Set the colors for color table 0 from a cmap0 file */ +void plspal0(string filename) +{ + c_plspal0(toStringz(filename)); +} + +/* Set the colors for color table 1 from a cmap1 file */ +void plspal1(string filename) +{ + c_plspal1(toStringz(filename)); +} + /* Set color map 0 colors by 8 bit RGB values */ void plscmap0(PLINT[] r, PLINT[] g, PLINT[] b) { @@ -855,6 +867,11 @@ const PLSWIN_DEVICE = 1; const PLSWIN_WORLD = 2; +/* Axis label tags */ +const PL_X_AXIS = 1; /* The x-axis */ +const PL_Y_AXIS = 2; /* The y-axis */ +const PL_Z_AXIS = 3; /* The z-axis */ + /* PLplot Option table & support constants */ /* Option-specific settings */ @@ -1155,6 +1172,7 @@ alias c_plbop plbop; //alias c_plbox plbox; //alias c_plbox3 plbox3; +alias c_plslabelfunc plslabelfunc; alias c_plcalc_world plcalc_world; alias c_plarc plarc; alias c_plclear plclear; @@ -1272,6 +1290,8 @@ alias c_plsmin plsmin; alias c_plsori plsori; alias c_plspage plspage; +// alias c_plspal0 plspal0; +// alias c_plspal1 plspal1; alias c_plspause plspause; alias c_plsstrm plsstrm; alias c_plssub plssub; @@ -1364,6 +1384,10 @@ char *ylabel, PLFLT ytick, PLINT nsuby, char *zopt, char *zlabel, PLFLT ztick, PLINT nsubz); +/* Setup a user-provided custom labeling function */ +void c_plslabelfunc(void function(PLINT, PLFLT, char*, PLINT, PLPointer) labelfunc, + PLPointer label_data); + /* Calculate world coordinates and subpage from relative device coordinates. */ void c_plcalc_world(PLFLT rx, PLFLT ry, PLFLT *wx, PLFLT *wy, PLINT *window); @@ -1809,13 +1833,17 @@ void c_plsori(PLINT ori); /* Set output device parameters. Usually ignored by the driver. */ +void c_plspage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT yoff); -void c_plspage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT yoff); +/* Set the colors for color table 0 from a cmap0 file */ +void c_plspal0(char* filename); +/* Set the colors for color table 1 from a cmap1 file */ +void c_plspal1(char *filename); + /* Set the pause (on end-of-page) status */ +void c_plspause(PLBOOL pause); -void c_plspause(PLBOOL pause); - /* Set stream number. */ void c_plsstrm(PLINT strm); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |