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