version 1.8, 2014/03/25 19:30:18 |
version 1.12, 2017/08/30 09:40:31 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/windows/engine2000/plot.c,v 1.7 2006/02/08 05:31:37 noro Exp $ |
* $OpenXM: OpenXM_contrib2/windows/engine2000/plot.c,v 1.11 2014/08/20 16:51:34 ohara Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 184 static void process_ox(int id, Obj obj, unsigned int s |
|
Line 184 static void process_ox(int id, Obj obj, unsigned int s |
|
ERR err; |
ERR err; |
int ret; |
int ret; |
extern char LastError[]; |
extern char LastError[]; |
extern int recv_intr; |
|
|
|
#if defined(VISUAL) |
check_intr(); |
if ( recv_intr ) { |
|
if ( recv_intr == 1 ) { |
|
recv_intr = 0; |
|
int_handler(SIGINT); |
|
} else { |
|
recv_intr = 0; |
|
ox_usr1_handler(0); |
|
} |
|
} |
|
#endif |
|
if ( do_message ) |
if ( do_message ) |
fprintf(stderr,"#%d Got %s",serial,name_of_id(id)); |
fprintf(stderr,"#%d Got %s",serial,name_of_id(id)); |
switch ( id ) { |
switch ( id ) { |
Line 235 static void process_ox(int id, Obj obj, unsigned int s |
|
Line 224 static void process_ox(int id, Obj obj, unsigned int s |
|
|
|
static void process_resize(struct canvas *can,POINT startp,POINT endp) |
static void process_resize(struct canvas *can,POINT startp,POINT endp) |
{ |
{ |
if ( can->mode == MODE_INTERACTIVE || can->mode == MODE_POLARPLOT ) |
if ( can->mode == modeNO(INTERACTIVE) || can->mode == modeNO(POLARPLOT) ) |
return; |
return; |
|
|
if ( can->mode == MODE_PLOT ) |
#if 0 |
|
if ( can->mode == modeNO(PLOT) ) |
plot_resize(can,startp,endp); |
plot_resize(can,startp,endp); |
else |
else |
ifplot_resize(can,startp,endp); |
ifplot_resize(can,startp,endp); |
|
#else |
|
plot_resize(can,startp,endp); |
|
#endif |
} |
} |
|
|
static void asir_do_cmd(unsigned int cmd,unsigned int serial) |
static void asir_do_cmd(unsigned int cmd,unsigned int serial) |
Line 321 static void asir_executeFunction(int serial) |
|
Line 314 static void asir_executeFunction(int serial) |
|
NEXT(n1) = 0; |
NEXT(n1) = 0; |
id = -1; |
id = -1; |
if ( !strcmp(func,"plot") ) { |
if ( !strcmp(func,"plot") ) { |
id = plot(n,MODE_PLOT); |
id = plot(n,modeNO(PLOT)); |
|
STOQ(id,ret); asir_push_one((Obj)ret); |
|
}else if ( !strcmp(func,"ifplot") ) { |
|
id = plot(n,modeNO(IFPLOT)); |
STOQ(id,ret); asir_push_one((Obj)ret); |
STOQ(id,ret); asir_push_one((Obj)ret); |
} else if ( !strcmp(func,"arrayplot") ) { |
} else if ( !strcmp(func,"arrayplot") ) { |
id = arrayplot(n); |
id = arrayplot(n); |