Commit a198b35f authored by Pascal Noisette's avatar Pascal Noisette

export container ok

parent d2bd1d36
......@@ -4,6 +4,8 @@ using namespace std;
void Svg::init(const char *path){
container_width_max = 0;
container_height_min = 1280;
_svg_file.open(path , std::ofstream::out | std::ofstream::trunc);
if (_svg_file.is_open()==false){
......@@ -26,7 +28,7 @@ void Svg::init(const char *path){
_buffer << "<?xml version='1.0' encoding='utf-8' standalone='no'?>\n"
<< "<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 20010904//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>\n"
<< "<svg xmlns='http://www.w3.org/2000/svg' x='0' y='0' width='1280' height='728' id='svg2' style='background-color:#c1e9ed;' >\n"
<< "<svg xmlns='http://www.w3.org/2000/svg' x='0' y='0' id='svg2' style='background-color:#c1e9ed;' >\n"
<< "\t<style type='text/css' id='stylecss' >\n"
<< "\t\trect:hover\n"
<< "\t\t\t{\n"
......
......@@ -7,7 +7,7 @@
#include <fstream>
#define BUFFER_SIZE 10 //character number stored before flush the _buffer
#define LEVEL 110 //distance between two containers
#define LEVEL 20 //distance between two containers
#define MARGIN 10 //distance between two object
#define ARROWSIZE 4 //spike size
......@@ -15,10 +15,14 @@
#define INIT 1
#define WAIT_FOR_POINT 2
#include "render.hpp"
#include "resource.hpp"
#define max(a,b) (a>b?a:b);
#define min(a,b) (a>b?b:a);
class Svg : public Render{
......@@ -28,6 +32,9 @@ private:
std::ostringstream _chronogramme;
int _chronogramme_state;
std::ofstream _svg_file;
Element_pos container_width_max;
Element_pos container_height_min;
inline void print();
inline void rectangle(const char* name,Element_pos w, Element_pos h,Element_pos x1,Element_pos y1, unsigned int r, unsigned int g, unsigned int b );
inline void line(const char* name, Element_pos x1, Element_pos y1, Element_pos x2, Element_pos y2);
......@@ -134,6 +141,8 @@ inline void Svg::start_draw_counter(){
inline void Svg::draw_counter(const Element_pos x, const Element_pos y){
std::cout<<"s.draw_counter("<<x<<","<<y<<");\n";
if (_chronogramme_state==INIT)
{
if (x==0)
......@@ -231,22 +240,45 @@ inline void Svg::line(const char* name, Element_pos x1, Element_pos y1, Element_
}
inline void Svg::draw_arrow(const Element_pos start_time, const Element_pos end_time, const Element_pos start_height, const Element_pos end_height){
Svg::line("arrow",start_time,start_height,end_time,end_height);
Svg::triangle("arrow",end_time,end_height+ARROWSIZE,end_time,end_height-ARROWSIZE,end_time+ARROWSIZE,end_height);//spike
std::cout<<"s.draw_arrow("<<start_time<<","<<end_time<<","<<start_height<<","<< end_height<<");\n";
Svg::line("arrow",start_time+ container_width_max ,start_height,end_time+ container_width_max ,end_height);
Svg::triangle("arrow",end_time+ container_width_max ,end_height+ARROWSIZE,end_time+ container_width_max ,end_height-ARROWSIZE,end_time+ARROWSIZE+ container_width_max ,end_height);//spike
}
inline void Svg::draw_container(const Element_pos x, const Element_pos y, const Element_pos w, const Element_pos h){
Svg::rectangle("container",w, h, x, y, 0xff, 0x44, 0xcc);
Element_pos xprime,yprime,wprime,hprime;
wprime = LEVEL*w;
hprime = LEVEL*h;
yprime = LEVEL*y;
xprime = LEVEL*x;
std::cout<<"s.draw_container("<<x<<","<<y<<","<<w<<","<< h<<");\n";
Svg::rectangle("container",wprime, hprime, xprime, yprime, 0xff, 0x44, 0xcc);
container_width_max = max(wprime+xprime+ MARGIN,container_width_max);
container_height_min = min(hprime,container_height_min);
}
inline void Svg::draw_state(const Element_pos start , const Element_pos end, const Element_pos level, const Element_pos height, const Element_col r, const Element_col g, const Element_col b){
Svg::rectangle("state",end-start,LEVEL - MARGIN, start,level*LEVEL,r , g, b);
std::cout<<"s.draw_state("<<start<<","<<end<<","<<level<<","<< height<<","<<r<<","<<g<<","<< b <<");\n";
Svg::rectangle("state",end-start, container_height_min, start + container_width_max ,level*LEVEL,r , g, b);
}
inline void Svg::draw_event(const Element_pos time, const Element_pos height, const Element_pos container_height){
Svg::rectangle("event",MARGIN,container_height, time, height, 0xff, 0xff, 0xff);
std::cout<<"s.draw_event("<<time<<","<< height<<","<<container_height<<");\n";
Svg::rectangle("event",MARGIN,container_height, time + container_width_max , height, 0xff, 0xff, 0xff);
}
#endif // RENDER_SVG
#include "../../src/interface/render_svg.hpp"
using namespace std;
......@@ -9,40 +8,379 @@ int main()
Svg s;
s.init("./out.svg");
s.draw_container(0,LEVEL*1,50,100);
s.draw_container(0,LEVEL*2,50,100);
s.draw_container(0,LEVEL*3,50,100);
s.draw_state(100, 750.87, 1,NULL, 0xff,0xcc,33);
s.draw_state(400, 750, 2,NULL, 0xff,0xcc,33);
s.draw_state(70.756, 300, 3,NULL, 0xff,0xcc,33);
s.draw_arrow(100,700,LEVEL*1,LEVEL*3);
s.draw_arrow(200,400,LEVEL*2,LEVEL*2);
s.draw_event(200,LEVEL*1,100);
s.draw_event(220,LEVEL*1,100);
s.draw_event(320,LEVEL*1,100);
s.start_draw_counter();
s.draw_counter(0,10);
s.draw_counter(20,15);
s.draw_counter(40,25);
s.draw_counter(0,10);
s.draw_counter(0,30);
s.draw_counter(20,40);
s.draw_counter(40,50);
s.draw_counter(50,70);
s.draw_counter(0,100);
s.end_draw_counter();
s.draw_container(5.2,0.2,2.5,1.2);
s.draw_container(5.2,1.6,2.5,1.2);
s.draw_container(5.2,3,2.5,1.2);
s.draw_container(5.2,4.4,2.5,1.2);
s.draw_container(5.2,5.8,2.5,1.2);
s.draw_container(5.2,7.2,2.5,1.2);
s.draw_container(5.2,8.6,2.5,1.2);
s.draw_container(5.2,10,2.5,1.2);
s.draw_container(2.6,0.2,2.5,11);
s.draw_container(0,0.2,2.5,11);
s.draw_state(0.000115,0.000206,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.000206,0.000212,0.2,1.2,0,0,0);
s.draw_state(0.000212,0.001984,0.2,1.2,1,0,0);
s.draw_state(0.001984,0.001996,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.001996,0.002001,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.002001,0.002005,0.2,1.2,0,0,0);
s.draw_state(0.002005,0.00418,0.2,1.2,1,0,0);
s.draw_state(0.00418,0.0042,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.0042,0.004205,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.004205,0.00421,0.2,1.2,0,0,0);
s.draw_state(0.00421,0.006211,0.2,1.2,1,0,0);
s.draw_state(0.006211,0.006224,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.006224,0.006229,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.006229,0.006233,0.2,1.2,0,0,0);
s.draw_state(0.006233,0.007022,0.2,1.2,1,0,0);
s.draw_state(0.007022,0.00703,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.00703,0.007035,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.007035,0.007039,0.2,1.2,0,0,0);
s.draw_state(0.007039,0.008172,0.2,1.2,1,0,0);
s.draw_state(0.008172,0.008181,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.008181,0.008185,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.008185,0.008189,0.2,1.2,0,0,0);
s.draw_state(0.008189,0.014728,0.2,1.2,1,0,0);
s.draw_state(0.014728,0.014759,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.014759,0.014764,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.014764,0.014769,0.2,1.2,0,0,0);
s.draw_state(0.014769,0.01948,0.2,1.2,1,0,0);
s.draw_state(0.01948,0.019511,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.019511,0.019515,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.019515,0.01952,0.2,1.2,0,0,0);
s.draw_state(0.01952,0.022347,0.2,1.2,1,0,0);
s.draw_state(0.022347,0.022366,0.2,1.2,0.5,0.5,0.5);
s.draw_state(0.022366,0.02237,0.2,1.2,0.2,0.8,0.2);
s.draw_state(0.02237,240.823,0.2,1.2,0,0,0);
s.draw_state(240.823,240.832,0.2,1.2,1,0,0);
s.draw_state(3.6e-05,0.00017,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.00017,0.000177,1.6,1.2,0,0,0);
s.draw_state(0.000177,0.002007,1.6,1.2,1,0,0);
s.draw_state(0.002007,0.002017,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.002017,0.002021,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.002021,0.002025,1.6,1.2,0,0,0);
s.draw_state(0.002025,0.002607,1.6,1.2,1,0,0);
s.draw_state(0.002607,0.002614,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.002614,0.002618,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.002618,0.002622,1.6,1.2,0,0,0);
s.draw_state(0.002622,0.007234,1.6,1.2,1,0,0);
s.draw_state(0.007234,0.00726,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.00726,0.007265,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.007265,0.007269,1.6,1.2,0,0,0);
s.draw_state(0.007269,0.008548,1.6,1.2,1,0,0);
s.draw_state(0.008548,0.008557,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.008557,0.008561,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.008561,0.008565,1.6,1.2,0,0,0);
s.draw_state(0.008565,0.009748,1.6,1.2,1,0,0);
s.draw_state(0.009748,0.009756,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.009756,0.00976,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.00976,0.009764,1.6,1.2,0,0,0);
s.draw_state(0.009764,0.01359,1.6,1.2,1,0,0);
s.draw_state(0.01359,0.013615,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.013615,0.013619,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.013619,0.013624,1.6,1.2,0,0,0);
s.draw_state(0.013624,0.014041,1.6,1.2,1,0,0);
s.draw_state(0.014041,0.014047,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.014047,0.014052,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.014052,0.014056,1.6,1.2,0,0,0);
s.draw_state(0.014056,0.014439,1.6,1.2,1,0,0);
s.draw_state(0.014439,0.014445,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.014445,0.014449,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.014449,0.014453,1.6,1.2,0,0,0);
s.draw_state(0.014453,0.015227,1.6,1.2,1,0,0);
s.draw_state(0.015227,0.015233,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.015233,0.015238,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.015238,0.015242,1.6,1.2,0,0,0);
s.draw_state(0.015242,0.015762,1.6,1.2,1,0,0);
s.draw_state(0.015762,0.015769,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.015769,0.015773,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.015773,0.015777,1.6,1.2,0,0,0);
s.draw_state(0.015777,0.019412,1.6,1.2,1,0,0);
s.draw_state(0.019412,0.019436,1.6,1.2,0.5,0.5,0.5);
s.draw_state(0.019436,0.019441,1.6,1.2,0.2,0.8,0.2);
s.draw_state(0.019441,0.019445,1.6,1.2,0,0,0);
s.draw_state(0.019445,240.797,1.6,1.2,1,0,0);
s.draw_state(240.797,240.797,1.6,1.2,0.2,0.8,0.2);
s.draw_state(240.797,240.835,1.6,1.2,0,0,0);
s.draw_state(240.835,240.836,1.6,1.2,1,0,0);
s.draw_state(2.9e-05,0.000172,3,1.2,0.2,0.8,0.2);
s.draw_state(0.000172,0.000179,3,1.2,0,0,0);
s.draw_state(0.000179,0.0014,3,1.2,1,0,0);
s.draw_state(0.0014,0.001408,3,1.2,0.5,0.5,0.5);
s.draw_state(0.001408,0.001412,3,1.2,0.2,0.8,0.2);
s.draw_state(0.001412,0.001416,3,1.2,0,0,0);
s.draw_state(0.001416,0.002485,3,1.2,1,0,0);
s.draw_state(0.002485,0.002493,3,1.2,0.5,0.5,0.5);
s.draw_state(0.002493,0.002498,3,1.2,0.2,0.8,0.2);
s.draw_state(0.002498,0.002502,3,1.2,0,0,0);
s.draw_state(0.002502,0.002985,3,1.2,1,0,0);
s.draw_state(0.002985,0.002991,3,1.2,0.5,0.5,0.5);
s.draw_state(0.002991,0.002995,3,1.2,0.2,0.8,0.2);
s.draw_state(0.002995,0.003,3,1.2,0,0,0);
s.draw_state(0.003,0.003543,3,1.2,1,0,0);
s.draw_state(0.003543,0.003549,3,1.2,0.5,0.5,0.5);
s.draw_state(0.003549,0.003553,3,1.2,0.2,0.8,0.2);
s.draw_state(0.003553,0.003557,3,1.2,0,0,0);
s.draw_state(0.003557,0.005828,3,1.2,1,0,0);
s.draw_state(0.005828,0.005841,3,1.2,0.5,0.5,0.5);
s.draw_state(0.005841,0.005846,3,1.2,0.2,0.8,0.2);
s.draw_state(0.005846,0.00585,3,1.2,0,0,0);
s.draw_state(0.00585,0.006249,3,1.2,1,0,0);
s.draw_state(0.006249,0.006256,3,1.2,0.5,0.5,0.5);
s.draw_state(0.006256,0.00626,3,1.2,0.2,0.8,0.2);
s.draw_state(0.00626,0.006265,3,1.2,0,0,0);
s.draw_state(0.006265,0.008728,3,1.2,1,0,0);
s.draw_state(0.008728,0.008741,3,1.2,0.5,0.5,0.5);
s.draw_state(0.008741,0.008746,3,1.2,0.2,0.8,0.2);
s.draw_state(0.008746,0.00875,3,1.2,0,0,0);
s.draw_state(0.00875,0.009617,3,1.2,1,0,0);
s.draw_state(0.009617,0.009623,3,1.2,0.5,0.5,0.5);
s.draw_state(0.009623,0.009627,3,1.2,0.2,0.8,0.2);
s.draw_state(0.009627,0.009632,3,1.2,0,0,0);
s.draw_state(0.009632,0.01134,3,1.2,1,0,0);
s.draw_state(0.01134,0.011348,3,1.2,0.5,0.5,0.5);
s.draw_state(0.011348,0.011353,3,1.2,0.2,0.8,0.2);
s.draw_state(0.011353,0.011357,3,1.2,0,0,0);
s.draw_state(0.011357,0.014826,3,1.2,1,0,0);
s.draw_state(0.014826,0.014847,3,1.2,0.5,0.5,0.5);
s.draw_state(0.014847,0.014852,3,1.2,0.2,0.8,0.2);
s.draw_state(0.014852,0.014856,3,1.2,0,0,0);
s.draw_state(0.014856,0.016071,3,1.2,1,0,0);
s.draw_state(0.016071,0.016078,3,1.2,0.5,0.5,0.5);
s.draw_state(0.016078,0.016083,3,1.2,0.2,0.8,0.2);
s.draw_state(0.016083,0.01609,3,1.2,0,0,0);
s.draw_state(0.01609,0.017651,3,1.2,1,0,0);
s.draw_state(0.017651,0.017661,3,1.2,0.5,0.5,0.5);
s.draw_state(0.017661,0.017665,3,1.2,0.2,0.8,0.2);
s.draw_state(0.017665,0.017669,3,1.2,0,0,0);
s.draw_state(0.017669,0.019001,3,1.2,1,0,0);
s.draw_state(0.019001,0.019009,3,1.2,0.5,0.5,0.5);
s.draw_state(0.019009,0.019014,3,1.2,0.2,0.8,0.2);
s.draw_state(0.019014,0.019018,3,1.2,0,0,0);
s.draw_state(0.019018,0.021432,3,1.2,1,0,0);
s.draw_state(0.021432,0.021456,3,1.2,0.5,0.5,0.5);
s.draw_state(0.021456,0.02146,3,1.2,0.2,0.8,0.2);
s.draw_state(0.02146,0.021465,3,1.2,0,0,0);
s.draw_state(0.021465,240.803,3,1.2,1,0,0);
s.draw_state(240.803,240.824,3,1.2,1,0,0);
s.draw_state(5.4e-05,0.000175,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.000175,0.00018,4.4,1.2,0,0,0);
s.draw_state(0.00018,0.003187,4.4,1.2,1,0,0);
s.draw_state(0.003187,0.003203,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.003203,0.003208,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.003208,0.003212,4.4,1.2,0,0,0);
s.draw_state(0.003212,0.006096,4.4,1.2,1,0,0);
s.draw_state(0.006096,0.006112,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.006112,0.006117,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.006117,0.006122,4.4,1.2,0,0,0);
s.draw_state(0.006122,0.007182,4.4,1.2,1,0,0);
s.draw_state(0.007182,0.007189,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.007189,0.007194,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.007194,0.007198,4.4,1.2,0,0,0);
s.draw_state(0.007198,0.008245,4.4,1.2,1,0,0);
s.draw_state(0.008245,0.008251,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.008251,0.008256,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.008256,0.00826,4.4,1.2,0,0,0);
s.draw_state(0.00826,0.009387,4.4,1.2,1,0,0);
s.draw_state(0.009387,0.009395,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.009395,0.009399,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.009399,0.009404,4.4,1.2,0,0,0);
s.draw_state(0.009404,0.014976,4.4,1.2,1,0,0);
s.draw_state(0.014976,0.014998,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.014998,0.015003,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.015003,0.015008,4.4,1.2,0,0,0);
s.draw_state(0.015008,0.018239,4.4,1.2,1,0,0);
s.draw_state(0.018239,0.018258,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.018258,0.018263,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.018263,0.018268,4.4,1.2,0,0,0);
s.draw_state(0.018268,0.019134,4.4,1.2,1,0,0);
s.draw_state(0.019134,0.01914,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.01914,0.019145,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.019145,0.019149,4.4,1.2,0,0,0);
s.draw_state(0.019149,0.019785,4.4,1.2,1,0,0);
s.draw_state(0.019785,0.019793,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.019793,0.019797,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.019797,0.019802,4.4,1.2,0,0,0);
s.draw_state(0.019802,0.021385,4.4,1.2,1,0,0);
s.draw_state(0.021385,0.021396,4.4,1.2,0.5,0.5,0.5);
s.draw_state(0.021396,0.0214,4.4,1.2,0.2,0.8,0.2);
s.draw_state(0.0214,0.021405,4.4,1.2,0,0,0);
s.draw_state(0.021405,240.83,4.4,1.2,1,0,0);
s.draw_state(240.83,240.835,4.4,1.2,1,0,0);
s.draw_state(2.1e-05,0.000164,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.000164,0.000171,5.8,1.2,0,0,0);
s.draw_state(0.000171,0.002489,5.8,1.2,1,0,0);
s.draw_state(0.002489,0.0025,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.0025,0.002504,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.002504,0.002508,5.8,1.2,0,0,0);
s.draw_state(0.002508,0.00356,5.8,1.2,1,0,0);
s.draw_state(0.00356,0.003569,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.003569,0.003573,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.003573,0.003577,5.8,1.2,0,0,0);
s.draw_state(0.003577,0.004075,5.8,1.2,1,0,0);
s.draw_state(0.004075,0.004081,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.004081,0.004086,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.004086,0.00409,5.8,1.2,0,0,0);
s.draw_state(0.00409,0.005634,5.8,1.2,1,0,0);
s.draw_state(0.005634,0.005642,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.005642,0.005646,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.005646,0.00565,5.8,1.2,0,0,0);
s.draw_state(0.00565,0.008035,5.8,1.2,1,0,0);
s.draw_state(0.008035,0.008053,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.008053,0.008057,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.008057,0.008062,5.8,1.2,0,0,0);
s.draw_state(0.008062,0.009474,5.8,1.2,1,0,0);
s.draw_state(0.009474,0.009482,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.009482,0.009487,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.009487,0.009491,5.8,1.2,0,0,0);
s.draw_state(0.009491,0.010095,5.8,1.2,1,0,0);
s.draw_state(0.010095,0.010102,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.010102,0.010106,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.010106,0.01011,5.8,1.2,0,0,0);
s.draw_state(0.01011,0.010431,5.8,1.2,1,0,0);
s.draw_state(0.010431,0.010437,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.010437,0.010441,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.010441,0.010445,5.8,1.2,0,0,0);
s.draw_state(0.010445,0.011485,5.8,1.2,1,0,0);
s.draw_state(0.011485,0.011491,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.011491,0.011495,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.011495,0.011499,5.8,1.2,0,0,0);
s.draw_state(0.011499,0.013253,5.8,1.2,1,0,0);
s.draw_state(0.013253,0.013262,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.013262,0.013266,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.013266,0.01327,5.8,1.2,0,0,0);
s.draw_state(0.01327,0.01409,5.8,1.2,1,0,0);
s.draw_state(0.01409,0.014096,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.014096,0.0141,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.0141,0.014104,5.8,1.2,0,0,0);
s.draw_state(0.014104,0.015295,5.8,1.2,1,0,0);
s.draw_state(0.015295,0.015304,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.015304,0.015308,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.015308,0.015312,5.8,1.2,0,0,0);
s.draw_state(0.015312,0.018958,5.8,1.2,1,0,0);
s.draw_state(0.018958,0.018982,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.018982,0.018986,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.018986,0.01899,5.8,1.2,0,0,0);
s.draw_state(0.01899,0.020989,5.8,1.2,1,0,0);
s.draw_state(0.020989,0.021001,5.8,1.2,0.5,0.5,0.5);
s.draw_state(0.021001,0.021005,5.8,1.2,0.2,0.8,0.2);
s.draw_state(0.021005,0.021009,5.8,1.2,0,0,0);
s.draw_state(0.021009,240.815,5.8,1.2,1,0,0);
s.draw_state(240.815,240.829,5.8,1.2,1,0,0);
s.draw_state(1.7e-05,0.000163,7.2,1.2,0.2,0.8,0.2);
s.draw_state(0.000163,0.00017,7.2,1.2,0,0,0);
s.draw_state(0.00017,0.001621,7.2,1.2,1,0,0);
s.draw_state(0.001621,0.001629,7.2,1.2,0.5,0.5,0.5);
s.draw_state(0.001629,0.001633,7.2,1.2,0.2,0.8,0.2);
s.draw_state(0.001633,0.001637,7.2,1.2,0,0,0);
s.draw_state(0.001637,0.002766,7.2,1.2,1,0,0);
s.draw_state(0.002766,0.002774,7.2,1.2,0.5,0.5,0.5);
s.draw_state(0.002774,0.002778,7.2,1.2,0.2,0.8,0.2);
s.draw_state(0.002778,0.002783,7.2,1.2,0,0,0);
s.draw_state(0.002783,0.006234,7.2,1.2,1,0,0);
s.draw_state(0.006234,0.006257,7.2,1.2,0.5,0.5,0.5);
s.draw_state(0.006257,0.006262,7.2,1.2,0.2,0.8,0.2);
s.draw_state(0.006262,0.006267,7.2,1.2,0,0,0);
s.draw_state(0.006267,0.007448,7.2,1.2,1,0,0);
s.draw_state(0.007448,0.007456,7.2,1.2,0.5,0.5,0.5);
s.draw_state(0.007456,0.007461,7.2,1.2,0.2,0.8,0.2);
s.draw_state(0.007461,0.007465,7.2,1.2,0,0,0);
s.draw_state(0.007465,0.014291,7.2,1.2,1,0,0);
s.draw_state(0.014291,0.014319,7.2,1.2,0.5,0.5,0.5);
s.draw_state(0.014319,0.014323,7.2,1.2,0.2,0.8,0.2);
s.draw_state(0.014323,0.014328,7.2,1.2,0,0,0);
s.draw_state(0.014328,240.813,7.2,1.2,1,0,0);
s.draw_state(0,7.3e-05,8.6,1.2,0.2,0.8,0.2);
s.draw_state(7.3e-05,8e-05,8.6,1.2,0,0,0);
s.draw_state(8e-05,0.00118,8.6,1.2,1,0,0);
s.draw_state(0.00118,0.001187,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.001187,0.001192,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.001192,0.001196,8.6,1.2,0,0,0);
s.draw_state(0.001196,0.001655,8.6,1.2,1,0,0);
s.draw_state(0.001655,0.00166,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.00166,0.001664,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.001664,0.001669,8.6,1.2,0,0,0);
s.draw_state(0.001669,0.003583,8.6,1.2,1,0,0);
s.draw_state(0.003583,0.003594,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.003594,0.003599,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.003599,0.003603,8.6,1.2,0,0,0);
s.draw_state(0.003603,0.004002,8.6,1.2,1,0,0);
s.draw_state(0.004002,0.004008,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.004008,0.004012,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.004012,0.004017,8.6,1.2,0,0,0);
s.draw_state(0.004017,0.005661,8.6,1.2,1,0,0);
s.draw_state(0.005661,0.00567,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.00567,0.005674,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.005674,0.005679,8.6,1.2,0,0,0);
s.draw_state(0.005679,0.009429,8.6,1.2,1,0,0);
s.draw_state(0.009429,0.009454,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.009454,0.009459,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.009459,0.009463,8.6,1.2,0,0,0);
s.draw_state(0.009463,0.011001,8.6,1.2,1,0,0);
s.draw_state(0.011001,0.011009,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.011009,0.011014,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.011014,0.011018,8.6,1.2,0,0,0);
s.draw_state(0.011018,0.012922,8.6,1.2,1,0,0);
s.draw_state(0.012922,0.012931,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.012931,0.012936,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.012936,0.012941,8.6,1.2,0,0,0);
s.draw_state(0.012941,0.013352,8.6,1.2,1,0,0);
s.draw_state(0.013352,0.013358,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.013358,0.013362,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.013362,0.013367,8.6,1.2,0,0,0);
s.draw_state(0.013367,0.014455,8.6,1.2,1,0,0);
s.draw_state(0.014455,0.014461,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.014461,0.014465,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.014465,0.01447,8.6,1.2,0,0,0);
s.draw_state(0.01447,0.016659,8.6,1.2,1,0,0);
s.draw_state(0.016659,0.016674,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.016674,0.016678,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.016678,0.016683,8.6,1.2,0,0,0);
s.draw_state(0.016683,0.018859,8.6,1.2,1,0,0);
s.draw_state(0.018859,0.01887,8.6,1.2,0.5,0.5,0.5);
s.draw_state(0.01887,0.018874,8.6,1.2,0.2,0.8,0.2);
s.draw_state(0.018874,0.018879,8.6,1.2,0,0,0);
s.draw_state(0.018879,240.806,8.6,1.2,1,0,0);
s.draw_state(1e-05,9.3e-05,10,1.2,0.2,0.8,0.2);
s.draw_state(9.3e-05,0.0001,10,1.2,0,0,0);
s.draw_state(0.0001,0.002105,10,1.2,1,0,0);
s.draw_state(0.002105,0.002115,10,1.2,0.5,0.5,0.5);
s.draw_state(0.002115,0.002119,10,1.2,0.2,0.8,0.2);
s.draw_state(0.002119,0.002124,10,1.2,0,0,0);
s.draw_state(0.002124,0.002654,10,1.2,1,0,0);
s.draw_state(0.002654,0.002661,10,1.2,0.5,0.5,0.5);
s.draw_state(0.002661,0.002665,10,1.2,0.2,0.8,0.2);
s.draw_state(0.002665,0.002669,10,1.2,0,0,0);
s.draw_state(0.002669,0.004793,10,1.2,1,0,0);
s.draw_state(0.004793,0.004803,10,1.2,0.5,0.5,0.5);
s.draw_state(0.004803,0.004808,10,1.2,0.2,0.8,0.2);
s.draw_state(0.004808,0.004812,10,1.2,0,0,0);
s.draw_state(0.004812,0.005882,10,1.2,1,0,0);
s.draw_state(0.005882,0.00589,10,1.2,0.5,0.5,0.5);
s.draw_state(0.00589,0.005894,10,1.2,0.2,0.8,0.2);
s.draw_state(0.005894,0.005899,10,1.2,0,0,0);
s.draw_state(0.005899,0.008584,10,1.2,1,0,0);
s.draw_state(0.008584,0.008599,10,1.2,0.5,0.5,0.5);
s.draw_state(0.008599,0.008604,10,1.2,0.2,0.8,0.2);
s.draw_state(0.008604,0.008609,10,1.2,0,0,0);
s.draw_state(0.008609,0.009442,10,1.2,1,0,0);
s.draw_state(0.009442,0.009448,10,1.2,0.5,0.5,0.5);
s.draw_state(0.009448,0.009453,10,1.2,0.2,0.8,0.2);
s.draw_state(0.009453,0.009457,10,1.2,0,0,0);
s.draw_state(0.009457,0.013054,10,1.2,1,0,0);
s.draw_state(0.013054,0.013072,10,1.2,0.5,0.5,0.5);
s.draw_state(0.013072,0.013077,10,1.2,0.2,0.8,0.2);
s.draw_state(0.013077,0.013082,10,1.2,0,0,0);
s.draw_state(0.013082,0.015947,10,1.2,1,0,0);
s.draw_state(0.015947,0.015961,10,1.2,0.5,0.5,0.5);
s.draw_state(0.015961,0.015966,10,1.2,0.2,0.8,0.2);
s.draw_state(0.015966,0.015971,10,1.2,0,0,0);
s.draw_state(0.015971,0.020779,10,1.2,1,0,0);
s.draw_state(0.020779,0.0208,10,1.2,0.5,0.5,0.5);
s.draw_state(0.0208,0.020805,10,1.2,0.2,0.8,0.2);
s.draw_state(0.020805,0.02081,10,1.2,0,0,0);
s.draw_state(0.02081,240.819,10,1.2,1,0,0);
s.end();
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment