Skip to content

Commit 7de71e6

Browse files
committed
Output.send now Output.setValue
and Select tests moved to Donatello
1 parent f5c3470 commit 7de71e6

28 files changed

+40
-343
lines changed

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/Canvas.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public Canvas() {
3737
public void update() {
3838
var w = Math.max(1,width.getValue());
3939
var h = Math.max(1,height.getValue());
40-
outx.send(-w/2);
41-
outy.send(-h/2);
42-
outw.send(w);
43-
outh.send(h);
40+
outx.setValue(-w/2);
41+
outy.setValue(-h/2);
42+
outw.setValue(w);
43+
outh.setValue(h);
4444
}
4545

4646

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/points/GridOfPoints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ public void update() {
8585
list.add(new Point2d(p.x, p.y));
8686
});
8787
});
88-
output.send(list);
88+
output.setValue(list);
8989
}
9090
}

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/points/PatternAtPoints.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void update() {
4343

4444
if(points.isEmpty()) {
4545
setComplete(100);
46-
output.send(result);
46+
output.setValue(result);
4747
return;
4848
}
4949

@@ -80,6 +80,6 @@ public void update() {
8080
e.printStackTrace();
8181
}
8282
setComplete(100);
83-
output.send(result);
83+
output.setValue(result);
8484
}
8585
}

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/points/TurtleToPoints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public void update() {
3030
}
3131
}
3232

33-
points.send(out);
33+
points.setValue(out);
3434
}
3535
}

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/turtle/AddTurtles.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public void update() {
2626
Turtle b = turtleB.getValue();
2727
Turtle sum = new Turtle(a);
2828
sum.add(b);
29-
output.send(sum);
29+
output.setValue(sum);
3030
}
3131
}

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/turtle/ColorTurtle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ public void update() {
3838
}
3939
}
4040
// TODO could have redundant tool changes that should be removed.
41-
output.send(moved);
41+
output.setValue(moved);
4242
}
4343
}

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/turtle/CropToRectangle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public void update() {
3636
var height = h.getValue();
3737
Rectangle2D.Double rectangle = new Rectangle2D.Double(0, 0, width, height);
3838
CropTurtle.run(result, rectangle);
39-
output.send(result);
39+
output.setValue(result);
4040
}
4141
}

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/turtle/DetectEdges.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void update() {
4444
FilterExtendedDifferenceOfGaussians dog = new FilterExtendedDifferenceOfGaussians(img3,img4,20);
4545
var img5 = dog.filter();
4646

47-
output.send(marchingSquares(img5.getSourceImage(),edge));
47+
output.setValue(marchingSquares(img5.getSourceImage(),edge));
4848
}
4949

5050
Turtle marchingSquares(BufferedImage img,int edge) {

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/turtle/FlowField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void update() {
5656
}
5757

5858
setComplete(100);
59-
result.send(turtle);
59+
result.setValue(turtle);
6060
}
6161

6262
/**

src/main/java/com/marginallyclever/makelangelo/donatelloimpl/nodes/turtle/GradientNoise.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void update() {
7171
}
7272
}
7373

74-
output.send(img);
74+
output.setValue(img);
7575
this.updateBounds();
7676
}
7777
}

0 commit comments

Comments
 (0)