1 #include <../../nrnconf.h> 8 #include <InterViews/printer.h> 9 #include <InterViews/image.h> 13 extern Image* gif_image(
const char*);
54 g->append_viewfixed(ggi);
57 g->move(g->count()-1, x, y);
277 t.translate(a.
x(), a.
y());
293 gif_ = gif_image(file);
313 const Coord p0 = 1.00000000 * r;
314 const Coord p1 = 0.89657547 * r;
315 const Coord p2 = 0.70710678 * r;
316 const Coord p3 = 0.51763809 * r;
317 const Coord p4 = 0.26794919 * r;
320 curve_to(x+p2, y+p2, x+p0, y+p4, x+p1, y+p3);
321 curve_to(x, y+p0, x+p3, y+p1, x+p4, y+p0);
322 curve_to(x-p2, y+p2, x-p4, y+p0, x-p3, y+p1);
323 curve_to(x-p0, y, x-p1, y + p3, x-p0, y+p4);
324 curve_to(x-p2, y-p2, x-p0, y-p4, x-p1, y-p3);
325 curve_to(x, y-p0, x-p3, y-p1, x-p4, y-p0);
326 curve_to(x+p2, y-p2, x+p4, y-p0, x+p3, y-p1);
327 curve_to(x+p0, y, x+p1, y-p3, x+p0, y-p4);
395 c->transformer().transform(x, y);
double max(double a, double b)
static Object ** g_circle(void *v)
virtual void draw(Canvas *, const Allocation &) const
void set(Canvas *, const Allocation &)
virtual void print(Printer *, const Allocation &) const
#define TRY_GUI_REDIRECT_NO_RETURN(name, obj)
static Object ** g_move_to(void *v)
Symbol * hoc_lookup(const char *)
virtual void draw(Canvas *, const Allocation &) const
float get_val(int i) const
check_obj_type(o, "SectionList")
const Requirement & x_requirement() const
#define TRY_GUI_REDIRECT_ACTUAL_DOUBLE(name, obj)
void curve_to(Coord, Coord, Coord, Coord, Coord, Coord)
static void destruct(void *v)
double gr_addglyph(void *v)
static Object ** g_line_to(void *v)
const Requirement & y_requirement() const
void class2oc(const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
static Object ** g_new_path(void *v)
static Object ** g_fill(void *v)
double(* nrnpy_object_to_double_)(Object *)
virtual void request(Requisition &) const
Member_ret_obj_func objmembers[]
const Brush * brush(int) const
virtual void unref() const
static Object ** g_curve_to(void *v)
void control_point(Coord, Coord)
GrGlyphItem(Glyph *g, float scalex, float scaley, float rot)
static void * cons(Object *o)
static Object ** g_control_point(void *v)
#define TRY_GUI_REDIRECT_OBJ(name, obj)
static Object ** g_erase(void *v)
void line_to(Coord, Coord)
static Object ** g_stroke(void *v)
void circle(Coord x, Coord y, Coord r)
#define TRY_GUI_REDIRECT_ACTUAL_OBJ(name, obj)
Object ** hoc_temp_objptr(Object *)
virtual void allocate(Canvas *, const Allocation &, Extension &)
void stroke(int color, int brush)
Object ** hoc_objgetarg(int)
const Color * color(int) const
void move_to(Coord, Coord)
double chkarg(int, double low, double high)
static Object ** g_close_path(void *v)
static Object ** g_gif(void *v)