extern "C" void setup_c0x2eplane(void) { t_eclass *c; c = eclass_new("c.plane", (method)plane_new, (method)plane_free, (short)sizeof(t_plane), 0L, A_GIMME, 0); eclass_init(c, 0); eclass_addmethod(c, (method) plane_assist, "assist", A_CANT, 0); eclass_addmethod(c, (method) plane_paint, "paint", A_CANT, 0); eclass_addmethod(c, (method) plane_notify, "notify", A_CANT, 0); eclass_addmethod(c, (method) plane_getdrawparams, "getdrawparams", A_CANT, 0); eclass_addmethod(c, (method) plane_oksize, "oksize", A_CANT, 0); eclass_addmethod(c, (method) plane_set, "set", A_GIMME,0); eclass_addmethod(c, (method) plane_list, "list", A_GIMME,0); eclass_addmethod(c, (method) plane_output, "bang", A_CANT, 0); eclass_addmethod(c, (method) plane_mousedrag, "mousedown", A_CANT, 0); eclass_addmethod(c, (method) plane_mousedrag, "mousedrag", A_CANT, 0); eclass_addmethod(c, (method) plane_preset, "preset", A_CANT, 0); CLASS_ATTR_INVISIBLE (c, "fontname", 1); CLASS_ATTR_INVISIBLE (c, "fontweight", 1); CLASS_ATTR_INVISIBLE (c, "fontslant", 1); CLASS_ATTR_INVISIBLE (c, "fontsize", 1); CLASS_ATTR_DEFAULT (c, "size", 0, "120 120"); CLASS_ATTR_FLOAT_ARRAY (c, "bound", 0, t_plane, f_boundaries, 4); CLASS_ATTR_LABEL (c, "bound", 0, "Boundaries"); CLASS_ATTR_ACCESSORS (c, "bound", NULL, plane_bound_set); CLASS_ATTR_ORDER (c, "bound", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bound", 0, "-1. -1. 1. 1."); CLASS_ATTR_FLOAT (c, "ptsize", 0, t_plane, f_size); CLASS_ATTR_LABEL (c, "ptsize", 0, "Point size"); CLASS_ATTR_ORDER (c, "ptsize", 0, "3"); CLASS_ATTR_FILTER_CLIP (c, "ptsize", 5., 50.f); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptsize", 0, "5"); CLASS_ATTR_STYLE (c, "ptsize", 0, "number"); CLASS_ATTR_STEP (c, "ptsize", 0.5); CLASS_ATTR_RGBA (c, "bgcolor", 0, t_plane, f_color_background); CLASS_ATTR_LABEL (c, "bgcolor", 0, "Background Color"); CLASS_ATTR_ORDER (c, "bgcolor", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bgcolor", 0, "0.75 0.75 0.75 1."); CLASS_ATTR_STYLE (c, "bgcolor", 0, "color"); CLASS_ATTR_RGBA (c, "bdcolor", 0, t_plane, f_color_border); CLASS_ATTR_LABEL (c, "bdcolor", 0, "Border Color"); CLASS_ATTR_ORDER (c, "bdcolor", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bdcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "bdcolor", 0, "color"); CLASS_ATTR_RGBA (c, "ptcolor", 0, t_plane, f_color_point); CLASS_ATTR_LABEL (c, "ptcolor", 0, "Point Color"); CLASS_ATTR_ORDER (c, "ptcolor", 0, "3"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptcolor", 0, "0. 0. 0. 1"); CLASS_ATTR_STYLE (c, "ptcolor", 0, "color"); eclass_register(CLASS_BOX, c); cicm_post(); plane_class = c; }
extern "C" void setup_c0x2escope_tilde(void) { t_eclass *c; c = eclass_new("c.scope~", (method)scope_new, (method)scope_free, (short)sizeof(t_scope), 0L, A_GIMME, 0); eclass_dspinit(c); eclass_init(c, 0); eclass_addmethod(c, (method) scope_dsp, "dsp", A_CANT, 0); eclass_addmethod(c, (method) scope_assist, "assist", A_CANT, 0); eclass_addmethod(c, (method) scope_paint, "paint", A_CANT, 0); eclass_addmethod(c, (method) scope_notify, "notify", A_CANT, 0); eclass_addmethod(c, (method) scope_getdrawparams, "getdrawparams", A_CANT, 0); eclass_addmethod(c, (method) scope_oksize, "oksize", A_CANT, 0); CLASS_ATTR_INVISIBLE (c, "fontname", 1); CLASS_ATTR_INVISIBLE (c, "fontweight", 1); CLASS_ATTR_INVISIBLE (c, "fontslant", 1); CLASS_ATTR_INVISIBLE (c, "fontsize", 1); CLASS_ATTR_INVISIBLE (c, "send", 1); CLASS_ATTR_DEFAULT (c, "size", 0, "125 100"); CLASS_ATTR_LONG (c, "bufdis", 0, t_scope, f_display_size); CLASS_ATTR_ORDER (c, "bufdis", 0, "1"); CLASS_ATTR_LABEL (c, "bufdis", 0, "Display Buffer Size"); CLASS_ATTR_FILTER_CLIP (c, "bufdis", 2, 8092); CLASS_ATTR_DEFAULT (c, "bufdis", 0, "256"); CLASS_ATTR_SAVE (c, "bufdis", 1); CLASS_ATTR_STYLE (c, "bufdis", 0, "number"); CLASS_ATTR_LONG (c, "bufsig", 0, t_scope, f_signal_size); CLASS_ATTR_ORDER (c, "bufsig", 0, "2"); CLASS_ATTR_LABEL (c, "bufsig", 0, "Signal Buffer Size"); CLASS_ATTR_FILTER_CLIP (c, "bufsig", 2, 8092); CLASS_ATTR_DEFAULT (c, "bufsig", 0, "256"); CLASS_ATTR_SAVE (c, "bufsig", 1); CLASS_ATTR_STYLE (c, "bufsig", 0, "number"); CLASS_ATTR_FLOAT_ARRAY (c, "range", 0, t_scope, f_range, 2); CLASS_ATTR_ORDER (c, "range", 0, "2"); CLASS_ATTR_LABEL (c, "range", 0, "Range"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "range", 0, "-1 1"); CLASS_ATTR_LONG (c, "xymode", 0, t_scope, f_mode); CLASS_ATTR_ORDER (c, "xymode", 0, "2"); CLASS_ATTR_LABEL (c, "xymode", 0, "XY Mode"); CLASS_ATTR_FILTER_CLIP (c, "xymode", 0, 1); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "xymode", 0, "0."); CLASS_ATTR_STYLE (c, "xymode", 0, "onoff"); CLASS_ATTR_RGBA (c, "bgcolor", 0, t_scope, f_color_background); CLASS_ATTR_LABEL (c, "bgcolor", 0, "Background Color"); CLASS_ATTR_ORDER (c, "bgcolor", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bgcolor", 0, "0.75 0.75 0.75 1."); CLASS_ATTR_STYLE (c, "bgcolor", 0, "color"); CLASS_ATTR_RGBA (c, "bdcolor", 0, t_scope, f_color_border); CLASS_ATTR_LABEL (c, "bdcolor", 0, "Border Color"); CLASS_ATTR_ORDER (c, "bdcolor", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bdcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "bdcolor", 0, "color"); CLASS_ATTR_RGBA (c, "sicolor", 0, t_scope, f_color_signal); CLASS_ATTR_LABEL (c, "sicolor", 0, "Signal Color"); CLASS_ATTR_ORDER (c, "sicolor", 0, "3"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "sicolor", 0, "0. 0.6 0. 0.8"); CLASS_ATTR_STYLE (c, "sicolor", 0, "color"); eclass_register(CLASS_BOX, c); scope_class = c; }
extern "C" void setup_c0x2eplane(void) { t_eclass *c = eclass_new("c.plane", (method)plane_new, (method)ebox_free, (short)sizeof(t_plane), CLASS_NOINLET, A_GIMME, 0); if(c) { eclass_guiinit(c, 0); eclass_addmethod(c, (method) plane_paint, "paint", A_NULL, 0); eclass_addmethod(c, (method) plane_notify, "notify", A_NULL, 0); eclass_addmethod(c, (method) plane_getdrawparams, "getdrawparams", A_NULL, 0); eclass_addmethod(c, (method) plane_oksize, "oksize", A_NULL, 0); eclass_addmethod(c, (method) plane_bang, "bang", A_FLOAT,0); eclass_addmethod(c, (method) plane_float, "float", A_FLOAT,0); eclass_addmethod(c, (method) plane_set, "set", A_GIMME,0); eclass_addmethod(c, (method) plane_list, "list", A_GIMME,0); eclass_addmethod(c, (method) plane_output, "bang", A_NULL, 0); eclass_addmethod(c, (method) plane_mousedown, "mousedown", A_NULL, 0); eclass_addmethod(c, (method) plane_mousedrag, "mousedrag", A_NULL, 0); eclass_addmethod(c, (method) plane_mouseup, "mouseup", A_NULL, 0); CLASS_ATTR_DEFAULT (c, "size", 0, "120 120"); CLASS_ATTR_FLOAT_ARRAY (c, "bounds", 0, t_plane, f_dummy, 4); CLASS_ATTR_LABEL (c, "bounds", 0, "Boundaries"); CLASS_ATTR_ACCESSORS (c, "bounds", plane_bounds_get, plane_bounds_set); CLASS_ATTR_ORDER (c, "bounds", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bounds", 0, "-1. -1. 1. 1."); CLASS_ATTR_FLOAT (c, "ptsize", 0, t_plane, f_size); CLASS_ATTR_LABEL (c, "ptsize", 0, "Point size"); CLASS_ATTR_ORDER (c, "ptsize", 0, "3"); CLASS_ATTR_FILTER_CLIP (c, "ptsize", 1., 50.f); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptsize", 0, "5"); CLASS_ATTR_STYLE (c, "ptsize", 0, "number"); CLASS_ATTR_STEP (c, "ptsize", 0.5); CLASS_ATTR_RGBA (c, "bgcolor", 0, t_plane, f_color_background); CLASS_ATTR_LABEL (c, "bgcolor", 0, "Background Color"); CLASS_ATTR_ORDER (c, "bgcolor", 0, "1"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bgcolor", 0, "0.75 0.75 0.75 1."); CLASS_ATTR_STYLE (c, "bgcolor", 0, "color"); CLASS_ATTR_RGBA (c, "bdcolor", 0, t_plane, f_color_border); CLASS_ATTR_LABEL (c, "bdcolor", 0, "Border Color"); CLASS_ATTR_ORDER (c, "bdcolor", 0, "2"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "bdcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "bdcolor", 0, "color"); CLASS_ATTR_RGBA (c, "ptcolor", 0, t_plane, f_color_point); CLASS_ATTR_LABEL (c, "ptcolor", 0, "Point Color"); CLASS_ATTR_ORDER (c, "ptcolor", 0, "3"); CLASS_ATTR_DEFAULT_SAVE_PAINT (c, "ptcolor", 0, "0.5 0.5 0.5 1."); CLASS_ATTR_STYLE (c, "ptcolor", 0, "color"); eclass_register(CLASS_BOX, c); plane_class = c; } }