Subversion Repositories wimsdev

Rev

Rev 6718 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6718 Rev 6719
Line 18... Line 18...
18
circle @ name @ x_center @ y_center @ radius
18
circle @ name @ x_center @ y_center @ radius
19
line @ name @ slope @ constant   (e.g. : y = slope*x + constant)
19
line @ name @ slope @ constant   (e.g. : y = slope*x + constant)
20
line @ name @ perp @ x = number (e.g. : vertical line x=some_number)
20
line @ name @ perp @ x = number (e.g. : vertical line x=some_number)
21
polygon @ name @ surface_area @ A @ B @ C .... @ Z (e.g. : names of corners points)
21
polygon @ name @ surface_area @ A @ B @ C .... @ Z (e.g. : names of corners points)
22
 
22
 
23
remark:
23
remarks:
24
geogebra3 has some issues with frame closing, it will not respond to normal appletmethods stop(),destroy()
24
geogebra3 has some issues with frame closing, it will not respond to normal appletmethods stop(),destroy()
25
I will try to get hold of the source code  geogebra-2.7 ; and manually add the required new functions.
25
I will try to get hold of the source code  geogebra-2.7 ; and manually add the required new functions.
26
geogebra4 is much too heavy for normal usage (use a CAS in java applet ? )
26
geogebra4 is much too heavy for normal usage (use a CAS in java applet ? )
27
*/
27
*/
28
function geogebra2wims(list_of_things){
28
function geogebra2wims(list_of_things){
Line 58... Line 58...
58
    reply = reply.replace(/undefined/g,'');reply = reply.replace(/%C2%B/g,'^');reply = reply.replace(/%CE%B/g,'angle@');reply = reply.replace(/\^0/g,' degree');
58
    reply = reply.replace(/undefined/g,'');reply = reply.replace(/%C2%B/g,'^');reply = reply.replace(/%CE%B/g,'angle@');reply = reply.replace(/\^0/g,' degree');
59
    reply = total_object_count+','+point_count+','+circle_count+','+line_count+','+segment_count+','+polygon_count+','+conic_count+','+ellipse_count+','+hyperbola_count+','+angle_count+','+vector_count+','+function_count+','+polynomial_count+','+text_count+','+reply;
59
    reply = total_object_count+','+point_count+','+circle_count+','+line_count+','+segment_count+','+polygon_count+','+conic_count+','+ellipse_count+','+hyperbola_count+','+angle_count+','+vector_count+','+function_count+','+polynomial_count+','+text_count+','+reply;
60
    // if some inputareas are present called myinpu0....myinput100 ; read these as well         
60
    // if some inputareas are present called myinpu0....myinput100 ; read these as well         
61
    // and append it to the "geogebra string" as "text="+txt  
61
    // and append it to the "geogebra string" as "text="+txt  
62
    // we use @ as fieldseparator.   
62
    // we use @ as fieldseparator.   
63
    if(document.getElementById('myinput0') ){var p = 0;var t="";var txt="";while( document.getElementById('myinput'+p) ){ t = document.getElementById('myinput'+p).value; if( p == 0 ){ txt = t; } else { txt = txt +"@"+t;} p++;  } reply=reply+"text="+txt;}if(debug == 1){alert(reply);}
63
    if(document.getElementById('myinput0') ){var p = 0;var t="";var txt="";while( document.getElementById('myinput'+p) ){ t = document.getElementById('myinput'+p).value; if( p == 0 ){ txt = t; } else { txt = txt +"@"+t;} p++;  } reply=reply+",text="+txt;}if(debug == 1){alert(reply);}
64
    return reply;
64
    return reply;
65
}
65
}
66
 
66