summaryrefslogtreecommitdiff
path: root/vodaviz.pde
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-02-06 15:00:11 +0000
committerTim Redfern <tim@eclectronics.org>2012-02-06 15:00:11 +0000
commit98a2dad141368b4d4f8efd2b6ef4dd2b4b1cb9bd (patch)
tree367e74e998a0d7e862f4d1a9aa6dd3c9ae8be4ab /vodaviz.pde
parentf3a0b05359bf2a834872713f69fd374b29d0029f (diff)
ready to load csv
Diffstat (limited to 'vodaviz.pde')
-rw-r--r--vodaviz.pde18
1 files changed, 13 insertions, 5 deletions
diff --git a/vodaviz.pde b/vodaviz.pde
index f95ee14..9a4272f 100644
--- a/vodaviz.pde
+++ b/vodaviz.pde
@@ -88,24 +88,30 @@ int whichChild,numChildren;
String mode;
+csvloader data;
+calldata calls;
+
void setup(){
println("vodaviz v0.11");
RG.init(this);
-
- mode="PDF";
+
+ //mode="PDF";
size(832,220); //,PDF, "testoutput.pdf"); //P3D); //832,220); //nb pdf is 800x600
smooth();
float m = millis();
- shp = RG.loadShape("world_countries_outlines_culled.svg"); //test_drawing.svg"); //world_countries_outlines_split.svg");
-
+ shp = RG.loadShape("countries_named_mercator.svg"); //test_drawing.svg"); //world_countries_outlines_split.svg");
shpmap = new pointMapper(26,736,90,390);
RG.ignoreStyles();
println("loaded svg in "+((millis()-m)*.001)+" seconds");
numChildren=shp.children.length;
whichChild=0;
+
+ data=new csvloader("calls.csv");
+ calls=new calldata(data.data);
+
}
void draw() {
@@ -129,6 +135,7 @@ void draw() {
//public boolean contains(RPoint p)
+
/*
//find a random point inside shape
RPoint tl=shp.children[i].getTopLeft();
@@ -142,6 +149,8 @@ void draw() {
}
*/
+
+
beginShape();
for (int k=0;k<shp.children[i].paths[j].commands.length;k++) {
RPoint sp=shp.children[i].paths[j].commands[k].startPoint;
@@ -165,4 +174,3 @@ void mousePressed() {
-