|
From: <sm...@us...> - 2009-05-05 06:14:42
|
Revision: 9911
http://plplot.svn.sourceforge.net/plplot/?rev=9911&view=rev
Author: smekal
Date: 2009-05-05 06:14:27 +0000 (Tue, 05 May 2009)
Log Message:
-----------
Added plctime declaration to the D bindings.
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2009-05-05 05:52:55 UTC (rev 9910)
+++ trunk/bindings/d/plplot.d 2009-05-05 06:14:27 UTC (rev 9911)
@@ -366,6 +366,7 @@
alias c_plcol1 plcol1;
alias c_plcont plcont;
alias c_plcpstrm plcpstrm;
+alias c_plctime plctime;
alias c_plend plend;
alias c_plend1 plend1;
alias c_plenv plenv;
@@ -604,9 +605,11 @@
void plfcont(PLFLT function(PLINT , PLINT , PLPointer )f2eval, PLPointer f2eval_data, PLINT nx, PLINT ny, PLINT kx, PLINT lx, PLINT ky, PLINT ly, PLFLT *clevel, PLINT nlevel, void function(PLFLT , PLFLT , PLFLT *, PLFLT *, PLPointer )pltr, PLPointer pltr_data);
/* Copies state parameters from the reference stream to the current stream. */
+void c_plcpstrm(PLINT iplsr, PLBOOL flags);
-void c_plcpstrm(PLINT iplsr, PLBOOL flags);
-
+/* Calculate continuous time from broken-down time for current stream. */
+void c_plctime(PLINT year, PLINT month, PLINT day, PLINT hour, PLINT min, PLFLT sec, PLFLT *ctime);
+
/* Converts input values from relative device coordinates to relative plot */
/* coordinates. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <sm...@us...> - 2009-08-13 09:08:49
|
Revision: 10237
http://plplot.svn.sourceforge.net/plplot/?rev=10237&view=rev
Author: smekal
Date: 2009-08-13 09:08:43 +0000 (Thu, 13 Aug 2009)
Log Message:
-----------
Added the plrand() function to the D bindings.
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2009-08-13 09:07:43 UTC (rev 10236)
+++ trunk/bindings/d/plplot.d 2009-08-13 09:08:43 UTC (rev 10237)
@@ -1232,6 +1232,7 @@
alias c_plpsty plpsty;
//alias c_plptex plptex;
//alias c_plptex3 plptex3;
+alias c_plrandd plrandd;
alias c_plreplot plreplot;
alias c_plrgb plrgb;
alias c_plrgb1 plrgb1;
@@ -1657,10 +1658,13 @@
/* Prints out "text" at world cooordinate (x,y,z). */
void c_plptex3(PLFLT wx, PLFLT wy, PLFLT wz, PLFLT dx, PLFLT dy, PLFLT dz, PLFLT sx, PLFLT sy, PLFLT sz, PLFLT just, char *text);
+/* Random number generator based on Mersenne Twister.
+ Obtain real random number in range [0,1]. */
+PLFLT c_plrandd();
+
/* Replays contents of plot buffer to current device/file. */
+void c_plreplot();
-void c_plreplot();
-
/* Set line color by red, green, blue from 0. to 1. */
void c_plrgb(PLFLT r, PLFLT g, PLFLT b);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
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.
|
|
From: <sm...@us...> - 2009-08-18 08:34:00
|
Revision: 10276
http://plplot.svn.sourceforge.net/plplot/?rev=10276&view=rev
Author: smekal
Date: 2009-08-18 08:33:44 +0000 (Tue, 18 Aug 2009)
Log Message:
-----------
Fixed interface to plimagefr. Added plbtime and plconfigtime functions.
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2009-08-18 08:13:58 UTC (rev 10275)
+++ trunk/bindings/d/plplot.d 2009-08-18 08:33:44 UTC (rev 10276)
@@ -640,16 +640,61 @@
/* plots a 2d image (or a matrix too large for plshade() ) */
void plimagefr(PLFLT[][] idata, PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax,
- PLFLT zmin, PLFLT zmax, PLFLT Dxmin, PLFLT Dxmax, PLFLT Dymin, PLFLT Dymax,
- PLFLT valuemin, PLFLT valuemax)
+ PLFLT zmin, PLFLT zmax, PLFLT valuemin, PLFLT valuemax,
+ pltr_func pltr=null, PLPointer pltr_data=null)
{
PLINT nx=idata.length;
PLINT ny=idata[0].length;
- c_plimagefr(convert_array(idata), nx, ny, xmin, xmax, ymin, ymax, zmin, zmax, Dxmin, Dxmax,
- Dymin, Dymax, valuemin, valuemax);
+ c_plimagefr(convert_array(idata), nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
+ valuemin, valuemax, pltr, pltr_data);
}
+/* plots a 2d image (or a matrix too large for plshade() ) */
+void plimagefr(PLFLT[][] idata, PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax,
+ PLFLT zmin, PLFLT zmax, PLFLT valuemin, PLFLT valuemax, PLcGrid cgrid)
+{
+ PLINT nx=idata.length;
+ PLINT ny=idata[0].length;
+
+ c_PLcGrid c;
+ c.xg = cgrid.xg.ptr;
+ c.nx = cgrid.xg.length;
+ c.yg = cgrid.yg.ptr;
+ c.ny = cgrid.yg.length;
+ c.zg = cgrid.zg.ptr;
+ c.nz = cgrid.zg.length;
+
+ c_plimagefr(convert_array(idata), nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
+ valuemin, valuemax, &pltr1, &c);
+}
+
+/* plots a 2d image (or a matrix too large for plshade() ) */
+void plimagefr(PLFLT[][] idata, PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax,
+ PLFLT zmin, PLFLT zmax, PLFLT valuemin, PLFLT valuemax, PLcGrid2 cgrid2)
+{
+ PLINT nx=idata.length;
+ PLINT ny=idata[0].length;
+
+ c_PLcGrid2 c2;
+ c2.xg = convert_array(cgrid2.xg);
+ c2.yg = convert_array(cgrid2.yg);
+ c2.zg = convert_array(cgrid2.zg);
+ c2.nx = cgrid2.xg.length;
+ c2.ny = cgrid2.xg[0].length;
+ if(cgrid2.yg) {
+ assert(c2.nx==cgrid2.yg.length, "plcont(): Arrays must be of same length!");
+ assert(c2.ny==cgrid2.yg[0].length, "plcont(): Arrays must be of same length!");
+ }
+ if(cgrid2.zg) {
+ assert(c2.nx==cgrid2.zg.length, "plcont(): Arrays must be of same length!");
+ assert(c2.ny==cgrid2.zg[0].length, "plcont(): Arrays must be of same length!");
+ }
+
+ c_plimagefr(convert_array(idata), nx, ny, xmin, xmax, ymin, ymax, zmin, zmax,
+ valuemin, valuemax, &pltr2, &c2);
+}
+
/* plots a 2d image (or a matrix too large for plshade() ) - colors
automatically scaled */
void plimage(PLFLT[][] idata, PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax,
@@ -1179,12 +1224,14 @@
alias c_plbop plbop;
//alias c_plbox plbox;
//alias c_plbox3 plbox3;
+alias c_plbtime plbtime;
alias c_plslabelfunc plslabelfunc;
alias c_plcalc_world plcalc_world;
alias c_plarc plarc;
alias c_plclear plclear;
alias c_plcol0 plcol0;
alias c_plcol1 plcol1;
+alias c_plconfigtime plconfigtime;
//alias c_plcont plcont;
alias c_plcpstrm plcpstrm;
alias c_plctime plctime;
@@ -1392,6 +1439,9 @@
char *ylabel, PLFLT ytick, PLINT nsuby, char *zopt, char *zlabel,
PLFLT ztick, PLINT nsubz);
+/* Calculate broken-down time from continuous time for current stream. */
+void c_plbtime(PLINT *year, PLINT *month, PLINT *day, PLINT *hour, PLINT *min, PLFLT *sec, PLFLT ctime);
+
/* Setup a user-provided custom labeling function */
void c_plslabelfunc(void function(PLINT, PLFLT, char*, PLINT, PLPointer) labelfunc,
PLPointer label_data);
@@ -1412,6 +1462,11 @@
/* Set color, map 1. Argument is a float between 0. and 1. */
void c_plcol1(PLFLT col1);
+/* Configure transformation between continuous and broken-down time (and
+ vice versa) for current stream. */
+void c_plconfigtime(PLFLT scale, PLFLT offset1, PLFLT offset2, PLINT ccontrol, PLBOOL ifbtime_offset,
+ PLINT year, PLINT month, PLINT day, PLINT hour, PLINT min, PLFLT sec);
+
/* Draws a contour plot from data in f(nx,ny). Is just a front-end to
* plfcont, with a particular choice for f2eval and f2eval_data.
*/
@@ -1882,8 +1937,8 @@
/* plots a 2d image (or a matrix too large for plshade() ) */
void c_plimagefr(PLFLT **idata, PLINT nx, PLINT ny, PLFLT xmin, PLFLT xmax, PLFLT ymin, PLFLT ymax,
- PLFLT zmin, PLFLT zmax, PLFLT Dxmin, PLFLT Dxmax, PLFLT Dymin, PLFLT Dymax,
- PLFLT valuemin, PLFLT valuemax);
+ PLFLT zmin, PLFLT zmax, PLFLT valuemin, PLFLT valuemax,
+ void function(PLFLT, PLFLT, PLFLT*, PLFLT*, PLPointer), PLPointer pltr_data);
/* plots a 2d image (or a matrix too large for plshade() ) - colors
automatically scaled */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2011-03-22 07:43:40
|
Revision: 11671
http://plplot.svn.sourceforge.net/plplot/?rev=11671&view=rev
Author: airwin
Date: 2011-03-22 07:43:34 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
Implement pllegend for D bindings. The resulting bindings build, but
pllegend has not been tested with a D example yet.
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2011-03-21 21:36:14 UTC (rev 11670)
+++ trunk/bindings/d/plplot.d 2011-03-22 07:43:34 UTC (rev 11671)
@@ -327,6 +327,62 @@
c_plline3( n, x.ptr, y.ptr, z.ptr );
}
+// Routine for drawing discrete line, symbol, or cmap0 legends
+
+void pllegend( PLFLT *p_legend_width, PLFLT *p_legend_height,
+ PLINT position, PLINT opt, PLFLT x, PLFLT y, PLFLT plot_width,
+ PLINT bg_color, PLINT bb_color, PLINT bb_style,
+ PLINT nrow, PLINT ncolumn,
+ PLINT[] opt_array,
+ PLFLT text_offset, PLFLT text_scale, PLFLT text_spacing,
+ PLFLT text_justification,
+ PLINT[] text_colors, string[] text,
+ PLINT[] box_colors, PLINT[] box_patterns,
+ PLFLT[] box_scales, PLINT[] box_line_widths,
+ PLINT[] line_colors, PLINT[] line_styles,
+ PLINT[] line_widths,
+ PLINT[] symbol_colors, PLFLT[] symbol_scales,
+ PLINT[] symbol_numbers, string[] symbols )
+{
+ PLINT nlegend = opt_array.length;
+ char*[] textz, symbolsz;
+ textz.length = nlegend;
+ symbolsz.length = nlegend;
+ for ( int i = 0; i < nlegend; i++ )
+ {
+ textz[i] = toStringz( text[i] );
+ symbolsz[i] = toStringz( symbols[i] );
+ }
+ assert( nlegend == text_colors.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == text.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == box_colors.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == box_patterns.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == box_scales.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == box_line_widths.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == line_colors.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == line_styles.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == line_widths.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == symbol_colors.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == symbol_scales.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == symbol_numbers.length, "pllegend(): Arrays must be of same length!" );
+ assert( nlegend == symbols.length, "pllegend(): Arrays must be of same length!" );
+ c_pllegend( p_legend_width, p_legend_height,
+ position, opt, x, y, plot_width,
+ bg_color, bb_color, bb_style,
+ nrow, ncolumn,
+ nlegend, opt_array.ptr,
+ text_offset, text_scale, text_spacing,
+ text_justification,
+ text_colors.ptr, textz.ptr,
+ box_colors.ptr, box_patterns.ptr,
+ box_scales.ptr, box_line_widths.ptr,
+ line_colors.ptr, line_styles.ptr,
+ line_widths.ptr,
+ symbol_colors.ptr, symbol_scales.ptr,
+ symbol_numbers.ptr, symbolsz.ptr );
+}
+
+
/* plot continental outline in world coordinates */
void plmap( mapform_func mapform, string type, PLFLT minlong, PLFLT maxlong,
PLFLT minlat, PLFLT maxlat )
@@ -1322,6 +1378,7 @@
alias c_plinit plinit;
alias c_pljoin pljoin;
//alias c_pllab pllab;
+//alias c_pllegend pllegend;
alias c_pllightsource pllightsource;
//alias c_plline plline;
//alias c_plline3 plline3;
@@ -1698,6 +1755,54 @@
/* Simple routine for labelling graphs. */
void c_pllab( char *xlabel, char *ylabel, char *tlabel );
+// Flags used for position argument of both pllegend and plcolorbar
+const PL_POSITION_LEFT = 1;
+const PL_POSITION_RIGHT = 2;
+const PL_POSITION_TOP = 4;
+const PL_POSITION_BOTTOM = 8;
+const PL_POSITION_INSIDE = 16;
+const PL_POSITION_OUTSIDE = 32;
+const PL_POSITION_VIEWPORT = 64;
+const PL_POSITION_SUBPAGE = 128;
+
+// Flags for pllegend
+const PL_LEGEND_NONE = 1;
+const PL_LEGEND_COLOR_BOX = 2;
+const PL_LEGEND_LINE = 4;
+const PL_LEGEND_SYMBOL = 8;
+const PL_LEGEND_TEXT_LEFT = 16;
+const PL_LEGEND_BACKGROUND = 32;
+const PL_LEGEND_BOUNDING_BOX = 64;
+const PL_LEGEND_ROW_MAJOR = 128;
+
+// Flags for plcolorbar
+const PL_COLORBAR_LABEL_LEFT = 1;
+const PL_COLORBAR_LABEL_RIGHT = 2;
+const PL_COLORBAR_LABEL_TOP = 4;
+const PL_COLORBAR_LABEL_BOTTOM = 8;
+const PL_COLORBAR_IMAGE = 16;
+const PL_COLORBAR_SHADE = 32;
+const PL_COLORBAR_GRADIENT = 64;
+const PL_COLORBAR_CAP_LOW = 128;
+const PL_COLORBAR_CAP_HIGH = 256;
+const PL_COLORBAR_SHADE_LABEL = 512;
+
+// Routine for drawing discrete line, symbol, or cmap0 legends
+void c_pllegend( PLFLT *p_legend_width, PLFLT *p_legend_height,
+ PLINT position, PLINT opt, PLFLT x, PLFLT y, PLFLT plot_width,
+ PLINT bg_color, PLINT bb_color, PLINT bb_style,
+ PLINT nrow, PLINT ncolumn,
+ PLINT nlegend, PLINT *opt_array,
+ PLFLT text_offset, PLFLT text_scale, PLFLT text_spacing,
+ PLFLT text_justification,
+ PLINT *text_colors, char **text,
+ PLINT *box_colors, PLINT *box_patterns,
+ PLFLT *box_scales, PLINT *box_line_widths,
+ PLINT *line_colors, PLINT *line_styles,
+ PLINT *line_widths,
+ PLINT *symbol_colors, PLFLT *symbol_scales,
+ PLINT *symbol_numbers, char **symbols );
+
/* Sets position of the light source */
void c_pllightsource( PLFLT x, PLFLT y, PLFLT z );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2011-03-22 18:18:06
|
Revision: 11672
http://plplot.svn.sourceforge.net/plplot/?rev=11672&view=rev
Author: airwin
Date: 2011-03-22 18:17:59 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
Tweak order of function definitions.
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2011-03-22 07:43:34 UTC (rev 11671)
+++ trunk/bindings/d/plplot.d 2011-03-22 18:17:59 UTC (rev 11672)
@@ -310,25 +310,7 @@
c_pllab( toStringz( xlabel ), toStringz( ylabel ), toStringz( tlabel ) );
}
-/* Draws line segments connecting a series of points. */
-void plline( PLFLT[] x, PLFLT[] y )
-{
- PLINT n = x.length;
- assert( n == y.length, "plline(): Arrays must be of same length!" );
- c_plline( n, x.ptr, y.ptr );
-}
-
-/* Draws a line in 3 space. */
-void plline3( PLFLT[] x, PLFLT[] y, PLFLT[] z )
-{
- PLINT n = x.length;
- assert( n == y.length, "plline3(): Arrays must be of same length!" );
- assert( n == z.length, "plline3(): Arrays must be of same length!" );
- c_plline3( n, x.ptr, y.ptr, z.ptr );
-}
-
// Routine for drawing discrete line, symbol, or cmap0 legends
-
void pllegend( PLFLT *p_legend_width, PLFLT *p_legend_height,
PLINT position, PLINT opt, PLFLT x, PLFLT y, PLFLT plot_width,
PLINT bg_color, PLINT bb_color, PLINT bb_style,
@@ -382,7 +364,23 @@
symbol_numbers.ptr, symbolsz.ptr );
}
+/* Draws line segments connecting a series of points. */
+void plline( PLFLT[] x, PLFLT[] y )
+{
+ PLINT n = x.length;
+ assert( n == y.length, "plline(): Arrays must be of same length!" );
+ c_plline( n, x.ptr, y.ptr );
+}
+/* Draws a line in 3 space. */
+void plline3( PLFLT[] x, PLFLT[] y, PLFLT[] z )
+{
+ PLINT n = x.length;
+ assert( n == y.length, "plline3(): Arrays must be of same length!" );
+ assert( n == z.length, "plline3(): Arrays must be of same length!" );
+ c_plline3( n, x.ptr, y.ptr, z.ptr );
+}
+
/* plot continental outline in world coordinates */
void plmap( mapform_func mapform, string type, PLFLT minlong, PLFLT maxlong,
PLFLT minlat, PLFLT maxlat )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <and...@us...> - 2012-01-16 12:27:46
|
Revision: 12132
http://plplot.svn.sourceforge.net/plplot/?rev=12132&view=rev
Author: andrewross
Date: 2012-01-16 12:27:40 +0000 (Mon, 16 Jan 2012)
Log Message:
-----------
Update plstransform in D bindings consistent with other functions (old version worked on some versions of gdc, but created warnings on newer versions).
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2012-01-16 11:35:11 UTC (rev 12131)
+++ trunk/bindings/d/plplot.d 2012-01-16 12:27:40 UTC (rev 12132)
@@ -12,6 +12,7 @@
alias void function( PLINT, PLFLT*, PLFLT* ) fill_func;
alias void function( PLFLT, PLFLT, PLFLT*, PLFLT*, PLPointer ) pltr_func;
alias void function( PLINT, PLFLT*, PLFLT* ) mapform_func;
+alias void function( PLFLT, PLFLT, PLFLT*, PLFLT*, PLPointer ) ct_func;
}
// D definition of PLcGrid and PLcGrid2
@@ -2082,7 +2083,7 @@
void c_plstart( char *devname, PLINT nx, PLINT ny );
// Set the coordinate transform
-void c_plstransform( void ( *coordinate_transform )( PLFLT, PLFLT, PLFLT*, PLFLT*, PLPointer ), PLPointer coordinate_transform_data );
+void c_plstransform( ct_func coordinate_transform = null , PLPointer coordinate_transform_data = null);
// Add a point to a stripchart.
void c_plstripa( PLINT id, PLINT pen, PLFLT x, PLFLT y );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <and...@us...> - 2013-11-28 11:58:01
|
Revision: 12775
http://sourceforge.net/p/plplot/code/12775
Author: andrewross
Date: 2013-11-28 11:57:58 +0000 (Thu, 28 Nov 2013)
Log Message:
-----------
Add plpath to d language bindings.
Modified Paths:
--------------
trunk/bindings/d/plplot.d
Modified: trunk/bindings/d/plplot.d
===================================================================
--- trunk/bindings/d/plplot.d 2013-11-28 06:10:49 UTC (rev 12774)
+++ trunk/bindings/d/plplot.d 2013-11-28 11:57:58 UTC (rev 12775)
@@ -1418,6 +1418,7 @@
//alias c_pllegend pllegend;
alias c_pllightsource pllightsource;
//alias c_plline plline;
+alias c_plpath plpath;
//alias c_plline3 plline3;
alias c_pllsty pllsty;
//alias c_plmap plmap;
@@ -1941,6 +1942,9 @@
// Set fill pattern directly.
void c_plpat( PLINT nlin, PLINT *inc, PLINT *del );
+// Draw a line connecting two points, accounting for coordinate transforms
+void c_plpath( PLINT n, PLFLT x1, PLFLT y1, PLFLT x2, PLFLT y2 );
+
// Plots array y against x for n points using ASCII code "code".
void c_plpoin( PLINT n, PLFLT *x, PLFLT *y, PLINT code );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|