|
From: <and...@us...> - 2013-11-05 14:23:10
|
Revision: 12656
http://sourceforge.net/p/plplot/code/12656
Author: andrewross
Date: 2013-11-05 14:23:03 +0000 (Tue, 05 Nov 2013)
Log Message:
-----------
Add plpath to C++, and all swig-generated bindings.
Modified Paths:
--------------
trunk/bindings/c++/plstream.cc
trunk/bindings/c++/plstream.h
trunk/bindings/swig-support/plplotcapi.i
Modified: trunk/bindings/c++/plstream.cc
===================================================================
--- trunk/bindings/c++/plstream.cc 2013-11-05 14:21:38 UTC (rev 12655)
+++ trunk/bindings/c++/plstream.cc 2013-11-05 14:23:03 UTC (rev 12656)
@@ -1232,6 +1232,15 @@
plpat( nlin, inc, del );
}
+// Draw a line connecting two points, accounting for coordinate transforms
+
+void plstream::path( PLINT n, PLFLT x1, PLFLT y1, PLFLT x2, PLFLT y2 )
+{
+ set_stream();
+
+ plpath( n, x1, y1, x2, y2 );
+}
+
// Plots array y against x for n points using ASCII code "code".
void plstream::poin( PLINT n, const PLFLT *x, const PLFLT *y, PLINT code )
Modified: trunk/bindings/c++/plstream.h
===================================================================
--- trunk/bindings/c++/plstream.h 2013-11-05 14:21:38 UTC (rev 12655)
+++ trunk/bindings/c++/plstream.h 2013-11-05 14:23:03 UTC (rev 12656)
@@ -547,6 +547,10 @@
void pat( PLINT nlin, const PLINT *inc, const PLINT *del );
+// Draw a line connecting two points, accounting for coordinate transforms
+
+ void path( PLINT n, PLFLT x1, PLFLT y1, PLFLT x2, PLFLT y2 );
+
// Plots array y against x for n points using ASCII code "code".
void poin( PLINT n, const PLFLT *x, const PLFLT *y, PLINT code );
Modified: trunk/bindings/swig-support/plplotcapi.i
===================================================================
--- trunk/bindings/swig-support/plplotcapi.i 2013-11-05 14:21:38 UTC (rev 12655)
+++ trunk/bindings/swig-support/plplotcapi.i 2013-11-05 14:23:03 UTC (rev 12656)
@@ -553,6 +553,9 @@
plpat( PLINT n, const PLINT *Array, const PLINT *ArrayCk );
void
+plpath( PLINT n, PLFLT x1, PLFLT y1, PLFLT x2, PLFLT y2 );
+
+void
plpoin( PLINT n, const PLFLT *Array, const PLFLT *ArrayCk, PLINT code );
void
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|