[Gridflow-cvs] [svn] commit: r5952 - in /trunk: doc/flow_classes/#cast-help.pd doc/index.pd doc/make_index.tcl src/classes1.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Aug 4 17:05:43 EDT 2010


Author: matju
Date: Wed Aug  4 17:05:43 2010
New Revision: 5952

Log:
[#cast] has default argument "i" = "int32"

Modified:
    trunk/doc/flow_classes/#cast-help.pd
    trunk/doc/index.pd
    trunk/doc/make_index.tcl
    trunk/src/classes1.cxx

Modified: trunk/doc/flow_classes/#cast-help.pd
==============================================================================
--- trunk/doc/flow_classes/#cast-help.pd (original)
+++ trunk/doc/flow_classes/#cast-help.pd Wed Aug  4 17:05:43 2010
@@ -1,4 +1,4 @@
-#N canvas 629 22 632 642 10;
+#N canvas 596 22 632 642 10;
 #X obj 24 220 #print;
 #X obj 24 199 #cast float64;
 #X obj 279 219 #print;
@@ -25,36 +25,38 @@
 will be truncated.;
 #X obj 416 113 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
 -262144 -1 -1 45 256;
-#X text 232 358 Any grid;
-#X obj 14 490 doc_oo 0;
-#X obj 14 358 doc_ii 0;
+#X text 232 413 Any grid;
+#X obj 14 545 doc_oo 0;
+#X obj 14 413 doc_ii 0;
 #X obj 14 283 doc_cc 0;
-#X text 232 490 Produces a grid of the same dimensions containing all
+#X text 232 545 Produces a grid of the same dimensions containing all
 the same values after type conversion.;
-#X text 232 283 Number types are: uint8 \, int16 \, int32 \, int64
-\, float32 \, float64. see doc/numtype.pd for more info.;
 #X obj 316 154 #redim (2 2);
 #X obj 0 0 doc_h;
-#X obj 0 625 doc_f;
+#X obj 0 680 doc_f;
 #X obj 3 253 doc_c 1;
-#X obj 3 328 doc_i 1;
-#X obj 3 460 doc_o 1;
-#X obj 97 283 doc_m c0 symbol/numbertype;
-#X obj 97 358 doc_m i0 grid;
-#X obj 97 490 doc_m o0 grid;
-#X obj 97 380 doc_m i0 cast;
-#X text 232 525 Conversion from float truncates fractional part (rounds
+#X obj 3 383 doc_i 1;
+#X obj 3 515 doc_o 1;
+#X obj 97 413 doc_m i0 grid;
+#X obj 97 545 doc_m o0 grid;
+#X obj 97 435 doc_m i0 cast;
+#X text 232 580 Conversion from float truncates fractional part (rounds
 towards zero);
-#X text 232 560 Conversion to an int type may wrap (same as some #
+#X text 232 615 Conversion to an int type may wrap (same as some #
 & or some # %);
-#X text 232 380 \$1=number_type;
-#X text 232 402 Changes the number type dynamically;
-#X obj 3 605 doc_also;
-#X obj 232 424 doc_link numtype 1;
-#X obj 103 605 #import;
-#X obj 187 605 #type;
-#X obj 157 605 #in;
+#X text 232 435 \$1=number_type;
+#X text 232 457 Changes the number type dynamically;
+#X obj 3 660 doc_also;
+#X obj 232 479 doc_link numtype 1;
+#X obj 103 660 #import;
+#X obj 187 660 #type;
+#X obj 157 660 #in;
 #X msg 32 177 cast uint8;
+#X text 232 325 default is int32.;
+#X obj 232 347 doc_link numtype 1;
+#X text 232 290 Number types are: uint8 \, int16 \, int32 \, int64
+\, float32 \, float64. see doc/numtype.pd for more info.;
+#X obj 97 290 doc_m c0 symbol/numtype;
 #X connect 1 0 0 0;
 #X connect 4 0 2 0;
 #X connect 5 0 3 0;
@@ -64,20 +66,22 @@
 #X connect 9 0 12 0;
 #X connect 10 0 12 1;
 #X connect 11 0 4 0;
-#X connect 12 0 23 0;
+#X connect 12 0 22 0;
 #X connect 13 0 6 0;
 #X connect 14 0 7 0;
 #X connect 16 0 12 2;
-#X connect 23 0 11 1;
-#X connect 29 1 22 0;
-#X connect 30 1 17 0;
-#X connect 31 1 21 0;
-#X connect 31 1 33 0;
-#X connect 31 1 34 0;
-#X connect 32 1 36 0;
-#X connect 32 1 35 0;
-#X connect 32 1 38 0;
-#X connect 37 1 39 0;
-#X connect 37 1 41 0;
-#X connect 37 1 40 0;
-#X connect 42 0 1 0;
+#X connect 22 0 11 1;
+#X connect 28 1 17 0;
+#X connect 29 1 21 0;
+#X connect 29 1 31 0;
+#X connect 29 1 32 0;
+#X connect 30 1 34 0;
+#X connect 30 1 33 0;
+#X connect 30 1 36 0;
+#X connect 35 1 37 0;
+#X connect 35 1 39 0;
+#X connect 35 1 38 0;
+#X connect 40 0 1 0;
+#X connect 44 1 41 0;
+#X connect 44 1 42 0;
+#X connect 44 1 43 0;

Modified: trunk/doc/index.pd
==============================================================================
--- trunk/doc/index.pd (original)
+++ trunk/doc/index.pd Wed Aug  4 17:05:43 2010
@@ -28,7 +28,7 @@
 #X text 180 468 add padding on sides of a grid;
 #X obj 114 500 #camera;
 #X text 180 500 control panel for opening cameras;
-#X obj 114 532 #cast i;
+#X obj 126 532 #cast;
 #X text 180 532 convert grid from one number type to another;
 #X obj 102 564 #centroid;
 #X text 180 564 find centroid (weighted average) of the coordinates of a grid;

Modified: trunk/doc/make_index.tcl
==============================================================================
--- trunk/doc/make_index.tcl (original)
+++ trunk/doc/make_index.tcl Wed Aug  4 17:05:43 2010
@@ -40,7 +40,6 @@
 	if {$k == "#fold"}      {set k "$k +"}
 	if {$k == "#scan"}      {set k "$k +"}
 	if {$k == "#outer"}     {set k "$k +"}
-	if {$k == "#cast"}      {set k "$k i"}
 	if {$k == "#for"}       {set k "$k 0 4 1"}
 	if {$k == "#redim"}     {set k "$k ()"}
 	if {$k == "receives"}   {set k "$k \$0-"}

Modified: trunk/src/classes1.cxx
==============================================================================
--- trunk/src/classes1.cxx (original)
+++ trunk/src/classes1.cxx Wed Aug  4 17:05:43 2010
@@ -70,7 +70,7 @@
 //****************************************************************
 \class GridCast : FObject {
 	\attr NumberTypeE cast;
-	\constructor (NumberTypeE nt) {this->cast = nt;}
+	\constructor (NumberTypeE nt=int32_e) {this->cast = nt;}
 	\grin 0
 };
 GRID_INLET(0) {



More information about the Gridflow-cvs mailing list